已关闭
[Bug-Report|缺陷反馈]: SparseApplyAdagradV2屏蔽infershape1.0,在2.0中适配unknownRank/unknownShape #4668
renshuojian创建于  8月10日关闭于  8月10日
renshuojian
renshuojian
8月10日 创建

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

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 / 选填)

likedislike
CANN-robotCANN-robot成员
8月10日 关闭了 issue
CANN-robotCANN-robot成员
29 天前 添加了label:resolved