Browse Source

remove return self of enpand in class CellList

tags/v1.2.0-rc1
yepei6 4 years ago
parent
commit
e792fca5af
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      mindspore/nn/layer/container.py

+ 0
- 2
mindspore/nn/layer/container.py View File

@@ -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…
Cancel
Save