diff --git a/mindspore/ops/operations/array_ops.py b/mindspore/ops/operations/array_ops.py index f59a3a37e5..532350e84a 100644 --- a/mindspore/ops/operations/array_ops.py +++ b/mindspore/ops/operations/array_ops.py @@ -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']