| GetDynamicDims RT2 infershape 迁移 Co-authored-by: zhaowenrui666<zhaowenrui7@huawei.com> # message auto-generated for no-merge-commit merge: !4272 merge migrate-get-dynamic-dims into master GetDynamicDims RT2 infershape 迁移 Created-by: zhaowenrui666 Commit-by: zhaowenrui666 Merged-by: cann-robot Description: ### 修改内容 - 新增 GetDynamicDims RT2 InferShape/InferDataType。 - 按 canndev 旧 GetDynamicDimsInfer 语义等价迁移:校验 N、统计 shape_info 中 -1 数量、输出 dims shape 为 [unknownDimsNum]、dtype 跟随 input0。 - 修复 AICPU UT 中 output_tensor 空指针断言由 EXPECT_NE 改为 ASSERT_NE。 ### 依据 - canndev: ops/built-in/op_proto/math_ops.cc GetDynamicDimsInfer - canndev: ops/built-in/op_proto/inc/math_ops.h REG_OP(GetDynamicDims) ### 验证 - git diff --check - bash build.sh -u --ophost --ops=get_dynamic_dims --noexec -j8 - ./build/tests/ut/op_host/math_op_host_ut --gtest_filter=GetDynamicDimsInfershapeTest.* - pre-commit run --files 相关 3 个文件 See merge request: cann/ops-math!4272 | 2 months ago |