hxtorch.spiking.parameter.HXBaseParameter

class hxtorch.spiking.parameter.HXBaseParameter(hardware_value, model_value)

Bases: torch.nn.modules.module.Module

__init__(hardware_value, model_value)

Initialize internal Module state, shared by both nn.Module and ScriptModule.

Methods

__init__(hardware_value, model_value)

Initialize internal Module state, shared by both nn.Module and ScriptModule.

forward()

Define the computation performed at every call.

is_trainable()

make_trainable([set_on_chip_func])

set_on_chip(chip, neuron_coordinates)

Attributes

hardware_value

model_value

forward()

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

property hardware_value
is_trainable()
make_trainable(set_on_chip_func=None)
property model_value
set_on_chip(chip, neuron_coordinates)