Reset state variables of objects in network.
(self)
| 465 | self.connections[c].normalize() |
| 466 | |
| 467 | def reset_state_variables(self) -> None: |
| 468 | # language=rst |
| 469 | """ |
| 470 | Reset state variables of objects in network. |
| 471 | """ |
| 472 | for layer in self.layers: |
| 473 | self.layers[layer].reset_state_variables() |
| 474 | |
| 475 | for connection in self.connections: |
| 476 | self.connections[connection].reset_state_variables() |
| 477 | |
| 478 | for monitor in self.monitors: |
| 479 | self.monitors[monitor].reset_state_variables() |
| 480 | |
| 481 | def train(self, mode: bool = True) -> "torch.nn.Module": |
| 482 | # language=rst |