This commit is contained in:
Dun Liang 2020-05-17 22:38:50 +08:00
parent 0053692a00
commit 725c9d3544
1 changed files with 1 additions and 1 deletions

View File

@ -603,7 +603,7 @@ class Sequential(Module):
parents.pop()
if callback_leave:
callback_leave(parents, k, self, n_children)
def append(mod):
def append(self, mod):
self.layers.append(mod)
ModuleList = Sequential