!2745 fix invert permutation operator in pynative

Merge pull request !2745 from wangqiuliang/fix-invertpermutation-operator
This commit is contained in:
mindspore-ci-bot 2020-06-30 14:45:33 +08:00 committed by Gitee
commit 96c7399577
1 changed files with 1 additions and 0 deletions

View File

@ -971,6 +971,7 @@ class InvertPermutation(PrimitiveWithInfer):
@prim_attr_register
def __init__(self):
"""init InvertPermutation"""
self.const_value = True
def __infer__(self, x):
x_shp = x['shape']