forked from mindspore-Ecosystem/mindspore
!1625 fix SequentialCell
Merge pull request !1625 from liuxiao78/master
This commit is contained in:
commit
0b4de00176
|
@ -105,6 +105,9 @@ class SequentialCell(Cell):
|
|||
self.insert_child_to_cell(name, cell)
|
||||
else:
|
||||
raise TypeError('Cells must be list or orderedDict')
|
||||
else:
|
||||
for index, cell in enumerate(args):
|
||||
self.insert_child_to_cell(str(index), cell)
|
||||
self.cell_list = list(self._cells.values())
|
||||
|
||||
def __getitem__(self, index):
|
||||
|
|
Loading…
Reference in New Issue