qualia_plugin_snn.learningmodel.pytorch.layers.spikingjelly.QuantizedAdd module
Contain implementation of QuantizedAdd layer with support for SpikingJelly step_mode
.
- class qualia_plugin_snn.learningmodel.pytorch.layers.spikingjelly.QuantizedAdd.QuantizedAdd[source]
Bases:
QuantizedAdd
,StepModule
Add SpikingJelly’s
step_mode
support to Qualia’s QuantizedAdd layer.- __init__(quant_params: QuantizationConfigDict, step_mode: str = 's') None [source]
Construct
QuantizedAdd
.- Parameters:
step_mode (str) – SpikingJelly’s
step_mode
, either's'
or'm'
, seespikingjelly.activation_based.layer.Linear
quant_params (QuantizationConfigDict)
- Return type:
None