!48587 fix conjugate transpose core dump

Merge pull request !48587 from YingtongHu/master
This commit is contained in:
i-robot 2023-02-09 03:02:07 +00:00 committed by Gitee
commit 47d256b2f9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 0 deletions

View File

@ -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);