已合并
实际项目运行中,需要sympy等py库,增加requirements.txt #1096
songkai111创建于 2月3日
实际项目运行中,需要sympy等py库,增加requirements.txt #1096
已合并
共 4 个文件变更+50-51
| @@ -1,8 +1,15 @@ | |||
| 1 | eigen: | 1 | eigen: |
| 2 | version: 3.4.0 | 2 | version: 3.4.0 |
| 3 | + type: run | ||
| 3 | googletest: | 4 | googletest: |
| 4 | version: v1.14.0 | 5 | version: v1.14.0 |
| 6 | + type: test | ||
| 5 | makeself: | 7 | makeself: |
| 6 | version: release-2.5.0-patch1 | 8 | version: release-2.5.0-patch1 |
| 9 | + type: build | ||
| 7 | json: | 10 | json: |
| 8 | - version: v3.11.3 | 11 | + version: v3.11.3 |
| 12 | + type: run | ||
| 13 | +protobuf: | ||
| 14 | + version: v25.1 | ||
| 15 | + type: run | ||
| @@ -1,21 +0,0 @@ | |||
| 1 | -observability: | ||
| 2 | - googletest: | ||
| 3 | - cpeName: googletest | ||
| 4 | - groupId: | ||
| 5 | - url: https://github.com/google/googletest.git | ||
| 6 | - version: v1.14.0 | ||
| 7 | - eigen: | ||
| 8 | - cpeName: eigen | ||
| 9 | - groupId: | ||
| 10 | - url: https://github.com/libeigen/eigen.git | ||
| 11 | - version: 3.4.0 | ||
| 12 | - makeself: | ||
| 13 | - cpeName: makeself | ||
| 14 | - groupId: | ||
| 15 | - url: https://github.com/megastep/makeself.git | ||
| 16 | - version: release-2.5.0-patch1 | ||
| 17 | - json: | ||
| 18 | - cpeName: json | ||
| 19 | - groupId: | ||
| 20 | - url: https://github.com/nlohmann/json.git | ||
| 21 | - version: v3.11.3 | ||
| @@ -32,40 +32,50 @@ protected: | |||
| 32 | 32 | ||
| 33 | std::map<std::string, std::string> soc_version_infos = {{"Short_SoC_version", "Ascend910B"}}; | 33 | std::map<std::string, std::string> soc_version_infos = {{"Short_SoC_version", "Ascend910B"}}; |
| 34 | 34 | ||
| 35 | -TEST_F(AddExampleTiling, add_example_0) { | 35 | +TEST_F(AddExampleTiling, add_example_0) |
| 36 | - struct AddExampleCompileInfo {} compileInfo; | 36 | +{ |
| 37 | - gert::TilingContextPara tilingContextPara("AddExample", | 37 | + struct AddExampleCompileInfo { |
| 38 | - { | 38 | + } compileInfo; |
| 39 | - {{{1, 2, 8, 16}, {1, 2, 8, 16}}, ge::DT_FLOAT, ge::FORMAT_ND}, // input tensor1 | 39 | + gert::TilingContextPara tilingContextPara( |
| 40 | - {{{1, 2, 8, 16}, {1, 2, 8, 16}}, ge::DT_FLOAT, ge::FORMAT_ND}, // input tensor2 | 40 | + "AddExample", |
| 41 | - }, | 41 | + { |
| 42 | - { | 42 | + {{{1, 2, 8, 16}, {1, 2, 8, 16}}, ge::DT_FLOAT, ge::FORMAT_ND}, // input tensor1 |
| 43 | - {{{1, 2, 8, 16}, {1, 2, 8, 16}}, ge::DT_FLOAT, ge::FORMAT_ND}, // output tensor | 43 | + {{{1, 2, 8, 16}, {1, 2, 8, 16}}, ge::DT_FLOAT, ge::FORMAT_ND}, // input tensor2 |
| 44 | - }, | 44 | + }, |
| 45 | - { | 45 | + { |
| 46 | - /* attrs */ | 46 | + {{{1, 2, 8, 16}, {1, 2, 8, 16}}, ge::DT_FLOAT, ge::FORMAT_ND}, // output tensor |
| 47 | - }, | 47 | + }, |
| 48 | - &compileInfo); | 48 | + { |
| 49 | + /* attrs */ | ||
| 50 | + }, | ||
| 51 | + &compileInfo, | ||
| 52 | + 64, // number of cores obtained in the tiling phase | ||
| 53 | + 262144, // the ubsize obtained in the tiling phase, but the actual obtained value is 256 bytes less than the | ||
| 54 | + // specified value | ||
| 55 | + 4096); // specifies the maximum size of the tiling data in the tiling phase | ||
| 49 | uint64_t expectTilingKey = 0; | 56 | uint64_t expectTilingKey = 0; |
| 50 | string expectTilingData = "256 8 "; | 57 | string expectTilingData = "256 8 "; |
| 51 | std::vector<size_t> expectWorkspaces = {1024 * 1024 * 16}; | 58 | std::vector<size_t> expectWorkspaces = {1024 * 1024 * 16}; |
| 52 | ExecuteTestCase(tilingContextPara, ge::GRAPH_SUCCESS, expectTilingKey, expectTilingData, expectWorkspaces); | 59 | ExecuteTestCase(tilingContextPara, ge::GRAPH_SUCCESS, expectTilingKey, expectTilingData, expectWorkspaces); |
| 53 | } | 60 | } |
| 54 | 61 | ||
| 55 | -TEST_F(AddExampleTiling, add_example_1) { | 62 | +TEST_F(AddExampleTiling, add_example_1) |
| 56 | - struct AddExampleCompileInfo {} compileInfo; | 63 | +{ |
| 57 | - gert::TilingContextPara tilingContextPara("AddExample", | 64 | + struct AddExampleCompileInfo { |
| 58 | - { | 65 | + } compileInfo; |
| 59 | - {{{1, 2, 8, 16}, {1, 2, 8, 16}}, ge::DT_INT32, ge::FORMAT_ND}, // input tensor1 | 66 | + gert::TilingContextPara tilingContextPara( |
| 60 | - {{{1, 2, 8, 16}, {1, 2, 8, 16}}, ge::DT_INT32, ge::FORMAT_ND}, // input tensor2 | 67 | + "AddExample", |
| 61 | - }, | 68 | + { |
| 62 | - { | 69 | + {{{1, 2, 8, 16}, {1, 2, 8, 16}}, ge::DT_INT32, ge::FORMAT_ND}, // input tensor1 |
| 63 | - {{{1, 2, 8, 16}, {1, 2, 8, 16}}, ge::DT_INT32, ge::FORMAT_ND}, // output tensor | 70 | + {{{1, 2, 8, 16}, {1, 2, 8, 16}}, ge::DT_INT32, ge::FORMAT_ND}, // input tensor2 |
| 64 | - }, | 71 | + }, |
| 65 | - { | 72 | + { |
| 66 | - /* attrs */ | 73 | + {{{1, 2, 8, 16}, {1, 2, 8, 16}}, ge::DT_INT32, ge::FORMAT_ND}, // output tensor |
| 67 | - }, | 74 | + }, |
| 68 | - &compileInfo); | 75 | + { |
| 76 | + /* attrs */ | ||
| 77 | + }, | ||
| 78 | + &compileInfo); | ||
| 69 | uint64_t expectTilingKey = 1; | 79 | uint64_t expectTilingKey = 1; |
| 70 | string expectTilingData = "256 8 "; | 80 | string expectTilingData = "256 8 "; |
| 71 | std::vector<size_t> expectWorkspaces = {1024 * 1024 * 16}; | 81 | std::vector<size_t> expectWorkspaces = {1024 * 1024 * 16}; |