forked from mindspore-Ecosystem/mindspore
!48587 fix conjugate transpose core dump
Merge pull request !48587 from YingtongHu/master
This commit is contained in:
commit
47d256b2f9
|
@ -72,6 +72,7 @@ abstract::ShapePtr ConjugateTransposeInferShape(const PrimitivePtr &primitive,
|
|||
|
||||
for (auto i : p_value) {
|
||||
(void)CheckAndConvertUtils::CheckInteger("perm element", i, kLessThan, SizeToLong(p_value.size()), op_name);
|
||||
(void)CheckAndConvertUtils::CheckInteger("perm element", i, kGreaterEqual, 0, op_name);
|
||||
}
|
||||
|
||||
std::vector<int64_t> tmp(p_value);
|
||||
|
|
Loading…
Reference in New Issue