Browse Source

!12402 Change pack in functional

From: @liangzhibo
Reviewed-by: 
Signed-off-by:
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 5 years ago
parent
commit
91af321733
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      mindspore/ops/functional.py

+ 6
- 1
mindspore/ops/functional.py View File

@@ -97,8 +97,13 @@ gather_d = P.GatherD()
gather_nd = P.GatherNd()
scatter_update = P.ScatterUpdate()
scatter_nd_update = P.ScatterNdUpdate()
pack = P.Pack()
stack = P.Stack()

def pack(x):
print("WARNING: 'pack' is deprecated from version 1.1 and will be removed in a future version, use 'stack' instead"
".")
return stack(x)

partial = P.Partial()
# depend: mount a node to another node
depend = P.Depend()


Loading…
Cancel
Save