Browse Source

fix invertPermutation operator in pynative

tags/v0.6.0-beta
kingfo 5 years ago
parent
commit
9cfcdce8dc
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      mindspore/ops/operations/array_ops.py

+ 1
- 0
mindspore/ops/operations/array_ops.py View File

@@ -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