Cambricon / mlu-ops

Efficient operation implementation based on the Cambricon Machine Learning Unit (MLU) .
MIT License
103 stars 102 forks source link

[Feature](mluOpExecFFT): FFT operator completion #1045

Closed squidruge closed 3 months ago

squidruge commented 4 months ago

Thanks for your contribution and we appreciate it a lot. :rocket::rocket:

1. Motivation

FFT C2C code review

2. Modification

add two-level network implementation

3. Test Report

If you want to know how to do operator testing, you can see GTest-User-Guide-zh.

3.1 Modification Details

3.1.1 Accuracy Acceptance Standard

3.1.2 Operator Scheme checklist

3.2 Accuracy Test

3.2.1 Accuracy Test

If you have checked the following items, please tick the relevant box.

3.2.2 Parameter Check

Test Point-1: When a new operator is submitted, the test points are given and the test results are stated. Acceptance Standard: Normal error.

Please fill your test results(Error Message) in here, ...

Test Point-2: Whether illegal parameters are passed. Acceptance Standard: Normal error.

Test results...

3.3 Performance Test

See MLU-OPS™ Performance Acceptance Standard for details.

Platform:MLU370

Note: Google Test filter = fft [==========] Running 9 test cases from 1 test suite. [----------] Global test environment set-up. [2024-6-3 22:51:56] [MLUOP] [Warning]:mluOpInternalGetCommitId not found, use fallback method [2024-6-3 22:51:56] [MLUOP] [Warning]:mluOpInternalGetBranchInfo not found, use fallback method

[job_limit ]: [cluster_limit ]: [commit_id ]: commit d0dd5ea922db4535df64d07fdafcce97e02f60af [mluop_branch ]: * master

[----------] 9 tests from fft/TestSuite [ RUN ] fft/TestSuite.mluOp/0

[Diffs]: [output1] DIFF1: 5.697111e-06 5.698549e-06 DIFF2: 6.130045e-06 6.131343e-06 [^ OK ] ../../test/mlu_op_gtest/pb_gtest/src/zoo/fft/test_case/fft_2048_6000.prototxt [ OK ] fft/TestSuite.mluOp/0 (913 ms) [ RUN ] fft/TestSuite.mluOp/1

[Diffs]: [output1] DIFF1: 5.887155e-06 5.887104e-06 DIFF2: 6.328431e-06 6.328850e-06 [^ OK ] ../../test/mlu_op_gtest/pb_gtest/src/zoo/fft/test_case/fft_2048_7000.prototxt [ OK ] fft/TestSuite.mluOp/1 (911 ms) [ RUN ] fft/TestSuite.mluOp/2

[Diffs]: [output1] DIFF1: 5.740946e-06 5.740582e-06 DIFF2: 6.128789e-06 6.127179e-06 [^ OK ] ../../test/mlu_op_gtest/pb_gtest/src/zoo/fft/test_case/fft_2048_8000.prototxt [ OK ] fft/TestSuite.mluOp/2 (1102 ms) [ RUN ] fft/TestSuite.mluOp/3

[Diffs]: [output1] DIFF1: 5.947919e-06 5.948924e-06 DIFF2: 6.331446e-06 6.330591e-06 [^ OK ] ../../test/mlu_op_gtest/pb_gtest/src/zoo/fft/test_case/fft_2048_9000.prototxt [ OK ] fft/TestSuite.mluOp/3 (1290 ms) [ RUN ] fft/TestSuite.mluOp/4

[Diffs]: [output1] DIFF1: 5.799880e-06 5.801629e-06 DIFF2: 6.186158e-06 6.189400e-06 [^ OK ] ../../test/mlu_op_gtest/pb_gtest/src/zoo/fft/test_case/fft_2048_10000.prototxt [ OK ] fft/TestSuite.mluOp/4 (1346 ms) [ RUN ] fft/TestSuite.mluOp/5

[Diffs]: [output1] DIFF1: 6.965811e-06 6.966984e-06 DIFF2: 7.470853e-06 7.471314e-06 [^ OK ] ../../test/mlu_op_gtest/pb_gtest/src/zoo/fft/test_case/fft_2048_11000.prototxt [ OK ] fft/TestSuite.mluOp/5 (1458 ms) [ RUN ] fft/TestSuite.mluOp/6

[Diffs]: [output1] DIFF1: 6.694572e-06 6.691891e-06 DIFF2: 7.161582e-06 7.157658e-06 [^ OK ] ../../test/mlu_op_gtest/pb_gtest/src/zoo/fft/test_case/fft_2048_12000.prototxt [ OK ] fft/TestSuite.mluOp/6 (1683 ms) [ RUN ] fft/TestSuite.mluOp/7

[Diffs]: [output1] DIFF1: 6.343064e-06 6.340724e-06 DIFF2: 6.778493e-06 6.776561e-06 [^ OK ] ../../test/mlu_op_gtest/pb_gtest/src/zoo/fft/test_case/fft_2048_13000.prototxt [ OK ] fft/TestSuite.mluOp/7 (1720 ms) [ RUN ] fft/TestSuite.mluOp/8

[Diffs]: [output1] DIFF1: 7.087170e-06 7.091904e-06 DIFF2: 7.588693e-06 7.592199e-06 [^ OK ] ../../test/mlu_op_gtest/pb_gtest/src/zoo/fft/test_case/fft_2048_14000.prototxt [ OK ] fft/TestSuite.mluOp/8 (1952 ms) [----------] 9 tests from fft/TestSuite (12375 ms total)

[----------] Global test environment tear-down [ SUMMARY ] Total 9 cases of 1 op(s). ALL PASSED. [==========] 9 test cases from 1 test suite ran. (16498 ms total) [ PASSED ] 9 test cases.