MCPcopy Create free account
hub / github.com/BindsNET/bindsnet / reset_state_variables

Method reset_state_variables

bindsnet/network/network.py:467–479  ·  view source on GitHub ↗

Reset state variables of objects in network.

(self)

Source from the content-addressed store, hash-verified

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

Callers 1

runMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected