mirror of https://github.com/Jittor/Jittor
add append and module list
This commit is contained in:
parent
f4fe1ccf75
commit
0053692a00
|
@ -603,3 +603,7 @@ class Sequential(Module):
|
|||
parents.pop()
|
||||
if callback_leave:
|
||||
callback_leave(parents, k, self, n_children)
|
||||
def append(mod):
|
||||
self.layers.append(mod)
|
||||
|
||||
ModuleList = Sequential
|
||||
|
|
Loading…
Reference in New Issue