spikingjelly.activation_based.spike_op package#
- spikingjelly.activation_based.cuda_kernel.spike_op.spike_linear(spike, weight, bias=None)[源代码]#
-
中文
torch.nn.functional.linear在输入为脉冲时的特例。备注
在CUDA设备上训练时拥有比
torch.nn.functional.linear更低的显存消耗。警告
spike 中的任何元素都必须为0或1。
English
A specific case of
torch.nn.functional.linearwith inputs are spikes.Note
This function has less memory consumption than
torch.nn.functional.linearwhen training on CUDA devices.Warning
Any element in spike must be 0 or 1.
- spikingjelly.activation_based.cuda_kernel.spike_op.spike_conv1d(spike, weight, bias=None, stride=1, padding='valid', dilation=1, groups=1)[源代码]#
-
中文
torch.nn.functional.conv1d在输入为脉冲时的特例。备注
在CUDA设备上训练时拥有比
torch.nn.functional.conv1d更低的显存消耗。警告
spike 中的任何元素都必须为0或1。
English
A specific case of
torch.nn.functional.conv1dwith inputs are spikes.Note
This function has less memory consumption than
torch.nn.functional.conv1dwhen training on CUDA devices.Warning
Any element in spike must be 0 or 1.
- spikingjelly.activation_based.cuda_kernel.spike_op.spike_conv2d(spike, weight, bias=None, stride=1, padding='valid', dilation=1, groups=1)[源代码]#
-
中文
torch.nn.functional.conv2d在输入为脉冲时的特例。备注
在CUDA设备上训练时拥有比
torch.nn.functional.conv2d更低的显存消耗。警告
spike 中的任何元素都必须为0或1。
English
A specific case of
torch.nn.functional.conv2dwith inputs are spikes.Note
This function has less memory consumption than
torch.nn.functional.conv2dwhen training on CUDA devices.Warning
Any element in spike must be 0 or 1.
- spikingjelly.activation_based.cuda_kernel.spike_op.spike_conv3d(spike, weight, bias=None, stride=1, padding='valid', dilation=1, groups=1)[源代码]#
-
中文
torch.nn.functional.conv3d在输入为脉冲时的特例。备注
在CUDA设备上训练时拥有比
torch.nn.functional.conv3d更低的显存消耗。警告
spike 中的任何元素都必须为0或1。
English
A specific case of
torch.nn.functional.conv3dwith inputs are spikes.Note
This function has less memory consumption than
torch.nn.functional.conv3dwhen training on CUDA devices.Warning
Any element in spike must be 0 or 1.
- class spikingjelly.activation_based.cuda_kernel.spike_op.SpikeLinear(in_features, out_features, bias=True, device=None, dtype=None)[源代码]#
基类:
Linear
中文
torch.nn.Linear在输入为脉冲时的特例。备注
在CUDA设备上运行时拥有比
torch.nn.Linear更低的显存消耗。警告
spike 中的任何元素都必须为0或1。
English
A specific case of
torch.nn.Linearwith inputs are spikes.Note
This function has less memory consumption than
torch.nn.Linearwhen training on CUDA devices.Warning
Any element in spike must be 0 or 1.
- class spikingjelly.activation_based.cuda_kernel.spike_op.SpikeConv1d(in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, bias=True, padding_mode='zeros', device=None, dtype=None)[源代码]#
基类:
Conv1d
中文
torch.nn.Conv1d在输入为脉冲时的特例。备注
在CUDA设备上运行时拥有比
torch.nn.Conv1d更低的显存消耗。警告
spike 中的任何元素都必须为0或1。
English
A specific case of
torch.nn.Conv1dwith inputs are spikes.Note
This function has less memory consumption than
torch.nn.Conv1dwhen training on CUDA devices.Warning
Any element in spike must be 0 or 1.
- class spikingjelly.activation_based.cuda_kernel.spike_op.SpikeConv2d(in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, bias=True, padding_mode='zeros', device=None, dtype=None)[源代码]#
基类:
Conv2d
中文
torch.nn.Conv2d在输入为脉冲时的特例。备注
在CUDA设备上运行时拥有比
torch.nn.Conv2d更低的显存消耗。警告
spike 中的任何元素都必须为0或1。
English
A specific case of
torch.nn.Conv2dwith inputs are spikes.Note
This function has less memory consumption than
torch.nn.Conv2dwhen training on CUDA devices.Warning
Any element in spike must be 0 or 1.
- class spikingjelly.activation_based.cuda_kernel.spike_op.SpikeConv3d(in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, bias=True, padding_mode='zeros', device=None, dtype=None)[源代码]#
基类:
Conv3d
中文
torch.nn.Conv3d在输入为脉冲时的特例。备注
在CUDA设备上运行时拥有比
torch.nn.Conv3d更低的显存消耗。警告
spike 中的任何元素都必须为0或1。
English
A specific case of
torch.nn.Conv3dwith inputs are spikes.Note
This function has less memory consumption than
torch.nn.Conv3dwhen training on CUDA devices.Warning
Any element in spike must be 0 or 1.