fix invertPermutation operator in pynative

pull/2745/head
kingfo 5 years ago
parent bfa4f8f0dc
commit 9cfcdce8dc

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

Loading…
Cancel
Save