forked from mindspore-Ecosystem/mindspore
!12233 remove the return of func 'append()' of SequentialCell
From: @yepei6 Reviewed-by: @kisnwang Signed-off-by:
This commit is contained in:
commit
20905d452f
|
@ -167,7 +167,6 @@ class SequentialCell(Cell):
|
|||
if _valid_cell(cell):
|
||||
self._cells[str(len(self))] = cell
|
||||
self.cell_list = list(self._cells.values())
|
||||
return self
|
||||
|
||||
def construct(self, input_data):
|
||||
for cell in self.cell_list:
|
||||
|
@ -277,7 +276,6 @@ class CellList(_CellListBase, Cell):
|
|||
"""Appends a given cell to the end of the list."""
|
||||
if _valid_cell(cell):
|
||||
self._cells[str(len(self))] = cell
|
||||
return self
|
||||
|
||||
def set_grad(self, flag=True):
|
||||
self.requires_grad = flag
|
||||
|
|
Loading…
Reference in New Issue