From fd2af88871ca6ff7419e503f92b90d267dfcc105 Mon Sep 17 00:00:00 2001 From: chenzomi Date: Tue, 12 May 2020 16:36:49 +0800 Subject: [PATCH] fix some Misspelling --- mindspore/nn/cell.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mindspore/nn/cell.py b/mindspore/nn/cell.py index f2b0da0817..5e97f15e11 100755 --- a/mindspore/nn/cell.py +++ b/mindspore/nn/cell.py @@ -61,7 +61,7 @@ class Cell: self._cells = OrderedDict() self.training = False self.pynative = False - self._param_perfix = '' + self._param_prefix = '' self._auto_prefix = auto_prefix self._scope = None self._phase = 'train' @@ -87,22 +87,22 @@ class Cell: return self._cell_init_args @property - def param_perfix(self): + def param_prefix(self): """ - Param perfix is the prfix of curent cell's direct child parameter. + Param prefix is the prefix of current cell's direct child parameter. """ - return self._param_perfix + return self._param_prefix def update_cell_prefix(self): """ Update the all child cells' self.param_prefix. - After invoked, can get all the cell's children's name perfix by '_param_perfix'. + After invoked, can get all the cell's children's name prefix by '_param_prefix'. """ cells = self.cells_and_names for cell_name, cell in cells: - cell._param_perfix = cell_name + cell._param_prefix = cell_name @cell_init_args.setter def cell_init_args(self, value):