From 5d30875b276f3ef966eefe860197ac3b8515ea6f Mon Sep 17 00:00:00 2001 From: dinglinhe Date: Tue, 29 Jun 2021 11:09:40 +0800 Subject: [PATCH] Concat operator prompts incorrectly --- mindspore/ops/_utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/ops/_utils/utils.py b/mindspore/ops/_utils/utils.py index b13f1644520..a7a9274df61 100644 --- a/mindspore/ops/_utils/utils.py +++ b/mindspore/ops/_utils/utils.py @@ -85,7 +85,7 @@ def get_concat_offset(x_shp, x_type, axis, prim_name): for j in range(rank_base): if j != axis and v[j] != x_shp[0][j]: raise ValueError(f"The shape of the two input elements of the Concat operator do not match:" - f"shape[0] = {v} and shape[1] = {x_shp[0]}.") + f"shape[0] = {x_shp[0]} and shape[1] = {x_shp[1]}.") offset.append(all_shp) if all_shp == -1 or v[axis] == -1: all_shp = -1