spikingjelly.clock_driven.ann2snn package
Subpackages
Submodules
spikingjelly.clock_driven.ann2snn.modules module
- class spikingjelly.clock_driven.ann2snn.modules.VoltageHook(scale=1.0, momentum=0.1, mode='Max')[源代码]
基类:
Module
- 参数
VoltageHook
用于在ANN推理中确定激活的范围。- 参数
scale (float) – initial scaling value
momentum (float) – momentum value
mode (str, float) – The mode. Value “Max” means recording the maximum value of ANN activation, “99.9%” means recording the 99.9% precentile of ANN activation, and a float of 0-1 means recording the corresponding multiple of the maximum activation value.
VoltageHook
is used to determine the range of activations in ANN inference.