Commit dbcfad2
committed
v2: Algorithm - don't initialize nn.Module if it already was initialized
Necessary to permit clean diamond inheritance, as nn.Module.__init__ uses setattr and overwrites members1 parent 8ed4fa2 commit dbcfad2
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
454 | 460 | | |
455 | 461 | | |
456 | 462 | | |
| |||
0 commit comments