From 0467bc55c4ccd2f43b7f02b4a5cd75842c04ed93 Mon Sep 17 00:00:00 2001 From: fengyihang <949144093@qq.com> Date: Thu, 31 Mar 2022 17:20:04 +0800 Subject: [PATCH] fix_cell_1063 --- mindspore/python/mindspore/nn/cell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/python/mindspore/nn/cell.py b/mindspore/python/mindspore/nn/cell.py index 07c856e1ce9..872e74897e3 100755 --- a/mindspore/python/mindspore/nn/cell.py +++ b/mindspore/python/mindspore/nn/cell.py @@ -1068,7 +1068,7 @@ class Cell(Cell_): """ if not child_name or '.' in child_name: raise KeyError("For 'insert_child_to_cell', the argument 'child_name' should not be None and " - "should not contain \".\"") + "should not contain '.'") if hasattr(self, child_name) and child_name not in self._cells: raise KeyError("For 'insert_child_to_cell', the {} child cell already exists in the network. Cannot " "insert another child cell with the same name.".format(child_name))