!3459 fix bug ArgMinWithValue

Merge pull request !3459 from fangzehua/fix-argmin
This commit is contained in:
mindspore-ci-bot 2020-07-27 09:11:30 +08:00 committed by Gitee
commit 7e32f24feb
1 changed files with 2 additions and 1 deletions

View File

@ -1232,7 +1232,8 @@ class ArgMinWithValue(PrimitiveWithInfer):
"""init ArgMinWithValue"""
self.axis = axis
self.keep_dims = keep_dims
_check_infer_attr_reduce(axis, keep_dims, self.name)
validator.check_value_type('keep_dims', keep_dims, [bool], self.name)
validator.check_value_type('axis', axis, [int], self.name)
def infer_shape(self, x_shape):
axis = self.axis