Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
SparseApplyAdagradV2屏蔽infershape1.0,在2.0中适配unknownRank/unknownShape
950
测试子仓的infershape
使用子仓的infershape2.0
TEST_F(SparseApplyAdagradV2Infershape, S009_AnyInputUnknownRank_VarAccumInconsistent_Case1) { gert::StorageShape var({-2}, {-2}); gert::StorageShape accum({-1, -1}, {-1, -1}); gert::StorageShape lr({-2}, {-2}); gert::StorageShape epsilon({1}, {1}); gert::StorageShape grad({-2}, {-2}); gert::StorageShape indices({1}, {1}); auto para = MakeInfershapePara(var, accum, lr, epsilon, grad, indices); std::vector<std::vector<int64_t>> expect = {{-2}, {-2}}; ExecuteTestCase(para, ge::GRAPH_SUCCESS, expect); }
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
SparseApplyAdagradV2屏蔽infershape1.0,在2.0中适配unknownRank/unknownShape
Environment / 环境信息 (Mandatory / 必填)
950
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
测试子仓的infershape
Describe the expected behavior / 预期结果 (Mandatory / 必填)
使用子仓的infershape2.0
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
TEST_F(SparseApplyAdagradV2Infershape, S009_AnyInputUnknownRank_VarAccumInconsistent_Case1)
{
gert::StorageShape var({-2}, {-2});
gert::StorageShape accum({-1, -1}, {-1, -1});
gert::StorageShape lr({-2}, {-2});
gert::StorageShape epsilon({1}, {1});
gert::StorageShape grad({-2}, {-2});
gert::StorageShape indices({1}, {1});
auto para = MakeInfershapePara(var, accum, lr, epsilon, grad, indices);
std::vector<std::vector<int64_t>> expect = {{-2}, {-2}};
ExecuteTestCase(para, ge::GRAPH_SUCCESS, expect);
}
Special notes for this issue/备注 (Optional / 选填)