forked from mindspore-Ecosystem/mindspore
!21413 Fix "Dynamic shape execution failed with an error cast failed"
Merge pull request !21413 from zhangzhaoju/master_dynamic_shape_cast_failure
This commit is contained in:
commit
054abd080b
|
@ -1203,7 +1203,7 @@ class Size(PrimitiveWithInfer):
|
|||
else:
|
||||
size = functools.reduce(lambda x, y: x * y, x['shape'])
|
||||
out = {'shape': None,
|
||||
'dtype': mstype.int32,
|
||||
'dtype': mstype.int64,
|
||||
'value': size}
|
||||
return out
|
||||
|
||||
|
|
Loading…
Reference in New Issue