!42215 fix code check

Merge pull request !42215 from lianliguang/r1.9
This commit is contained in:
i-robot 2022-09-19 08:18:55 +00:00 committed by Gitee
commit 5c7bbd0074
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 2 deletions

View File

@ -57,8 +57,8 @@ abstract::ShapePtr InplaceOpV2InferShape(const PrimitivePtr &primitive,
auto indices = CheckAndConvertUtils::ConvertShapePtrToShapeMap(indices_shape_ptr)[kShape];
// check indices
(void)CheckAndConvertUtils::CheckValue<size_t>("size of indices", indices.at(0), kEqual, "v.shape[0]",
v_in_shape.at(0), primitive->name());
(void)CheckAndConvertUtils::CheckValue<size_t>("size of indices", LongToSize(indices.at(0)), kEqual, "v.shape[0]",
LongToSize(v_in_shape.at(0)), primitive->name());
return x_shape_ptr->cast<abstract::ShapePtr>();
}