From 88de02bd0cc812a76cf4622921783ae705289f4d Mon Sep 17 00:00:00 2001 From: l00591931 Date: Fri, 19 Feb 2021 09:26:21 +0800 Subject: [PATCH] Change pack in functional --- mindspore/ops/functional.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mindspore/ops/functional.py b/mindspore/ops/functional.py index 21d6c906c7..09d958aa0f 100644 --- a/mindspore/ops/functional.py +++ b/mindspore/ops/functional.py @@ -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()