forked from mindspore-Ecosystem/mindspore
!32920 fix stack op infer shape
Merge pull request !32920 from fangzehua/master
This commit is contained in:
commit
bce742fd64
|
@ -149,7 +149,7 @@ AbstractBasePtr InferImplStack(const AnalysisEnginePtr &, const PrimitivePtr &pr
|
|||
|
||||
ValuePtr axis = primitive->GetAttr("axis");
|
||||
// Axis value should be in [-(rank_base + 1), rank_base).
|
||||
int64_t axis_value = CheckAxis(op_name, "axis", axis, -(rank_base + 1), rank_base, "input_x");
|
||||
int64_t axis_value = CheckAxis(op_name, "axis", axis, -(rank_base + 1), rank_base + 1, "input_x");
|
||||
|
||||
for (size_t i = 1; i < tuple_len; ++i) {
|
||||
AbstractTensorPtr tensor = nullptr;
|
||||
|
|
Loading…
Reference in New Issue