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

Method forward

bindsnet/network/nodes.py:211–221  ·  view source on GitHub ↗

On each simulation step, set the spikes of the population equal to the inputs. :param x: Inputs to the layer.

(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

209 )
210
211 def forward(self, x: torch.Tensor) -> None:
212 # language=rst
213 """
214 On each simulation step, set the spikes of the population equal to the inputs.
215
216 :param x: Inputs to the layer.
217 """
218 # Set spike occurrences to input values.
219 self.s = x
220
221 super().forward(x)
222
223 def reset_state_variables(self) -> None:
224 # language=rst

Callers

nothing calls this directly

Calls 1

forwardMethod · 0.45

Tested by

no test coverage detected