spikingjelly.activation_based.memopt package#
用于自定义梯度检查点结构和应用论文预设的训练显存优化工具。
Training-memory tools for custom checkpoint structures and the paper preset.
Public API#
|
Checkpoint one callable and optionally compress its first tensor input. |
|
Wrap one module transparently, with optional temporal chunks. |
|
Apply the high-level progressive checkpoint preset. |
Spike Compressors#
将浮点数表示的脉冲张量转换为更紧凑的表示形式的压缩器。
Compressors that convert spike tensors represented in floating-point numbers into more compact representations.
|
Abstract base class for stateless compressors. |
|
Convert spike tensors to/from boolean tensors. |
|
Convert spike tensors to/from |
|
Converts spike tensors to/from bit representations. |
|
Convert spike tensors to/from sparse representations. |