From 9cfcdce8dc726f8b51f0fe780d7f47e25e386005 Mon Sep 17 00:00:00 2001 From: kingfo Date: Tue, 30 Jun 2020 11:59:36 +0800 Subject: [PATCH] fix invertPermutation operator in pynative --- mindspore/ops/operations/array_ops.py | 1 + 1 file changed, 1 insertion(+) 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']