Zero out the parameters of a module and return it.
(module)
| 65 | |
| 66 | |
| 67 | def zero_module(module): |
| 68 | """ |
| 69 | Zero out the parameters of a module and return it. |
| 70 | """ |
| 71 | for p in module.parameters(): |
| 72 | p.detach().zero_() |
| 73 | return module |
| 74 | |
| 75 | |
| 76 | def Normalize(in_channels): |