Zero out the parameters of a module and return it.
(module)
| 90 | |
| 91 | |
| 92 | def zero_module(module): |
| 93 | """ |
| 94 | Zero out the parameters of a module and return it. |
| 95 | """ |
| 96 | for p in module.parameters(): |
| 97 | p.detach().zero_() |
| 98 | return module |
| 99 | |
| 100 | |
| 101 | def normalization(channels): |