Wrappers for Stateless Layers#
SpikingJelly 的 无状态层包装器 封装了 PyTorch 的标准层,并支持脉冲神经网络的时间步进模式。 欲获取更多信息,请查看 基本概念 。
SpikingJelly's stateless layer wrappers wrap PyTorch's standard layers and support the step mode of Spiking Neural Networks. See Basic Conception for more details.
- class spikingjelly.activation_based.layer.stateless_wrapper.Conv1d(in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, bias=True, padding_mode='zeros', step_mode='s')[源代码]#
基类:
Conv1d,StepModule
中文
- 参数:
其他的参数API参见
torch.nn.Conv1d
English
- 参数:
Refer to
torch.nn.Conv1dfor other parameters' API
- class spikingjelly.activation_based.layer.stateless_wrapper.Conv2d(in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, bias=True, padding_mode='zeros', step_mode='s')[源代码]#
基类:
Conv2d,StepModule
中文
- 参数:
其他的参数API参见
torch.nn.Conv2d
English
- 参数:
Refer to
torch.nn.Conv2dfor other parameters' API
- class spikingjelly.activation_based.layer.stateless_wrapper.Conv3d(in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, bias=True, padding_mode='zeros', step_mode='s')[源代码]#
基类:
Conv3d,StepModule
中文
- 参数:
其他的参数API参见
torch.nn.Conv3d
English
- 参数:
Refer to
torch.nn.Conv3dfor other parameters' API
- class spikingjelly.activation_based.layer.stateless_wrapper.Upsample(size=None, scale_factor=None, mode='nearest', align_corners=None, recompute_scale_factor=None, step_mode='s')[源代码]#
基类:
Upsample,StepModule
中文
- 参数:
其他的参数API参见
torch.nn.Upsample
English
- 参数:
Refer to
torch.nn.Upsamplefor other parameters' API
- class spikingjelly.activation_based.layer.stateless_wrapper.ConvTranspose1d(in_channels, out_channels, kernel_size, stride=1, padding=0, output_padding=0, groups=1, bias=True, dilation=1, padding_mode='zeros', step_mode='s')[源代码]#
基类:
ConvTranspose1d,StepModule
中文
- 参数:
其他的参数API参见
torch.nn.ConvTranspose1d
English
- 参数:
Refer to
torch.nn.ConvTranspose1dfor other parameters' API
- class spikingjelly.activation_based.layer.stateless_wrapper.ConvTranspose2d(in_channels, out_channels, kernel_size, stride=1, padding=0, output_padding=0, groups=1, bias=True, dilation=1, padding_mode='zeros', step_mode='s')[源代码]#
基类:
ConvTranspose2d,StepModule
中文
- 参数:
其他的参数API参见
torch.nn.ConvTranspose2d
English
- 参数:
Refer to
torch.nn.ConvTranspose2dfor other parameters' API
- class spikingjelly.activation_based.layer.stateless_wrapper.ConvTranspose3d(in_channels, out_channels, kernel_size, stride=1, padding=0, output_padding=0, groups=1, bias=True, dilation=1, padding_mode='zeros', step_mode='s')[源代码]#
基类:
ConvTranspose3d,StepModule
中文
- 参数:
其他的参数API参见
torch.nn.ConvTranspose3d
English
- 参数:
Refer to
torch.nn.ConvTranspose3dfor other parameters' API
- class spikingjelly.activation_based.layer.stateless_wrapper.GroupNorm(num_groups, num_channels, eps=1e-05, affine=True, step_mode='s')[源代码]#
基类:
GroupNorm,StepModule
中文
- 参数:
其他的参数API参见
torch.nn.GroupNorm
English
- 参数:
Refer to
torch.nn.GroupNormfor other parameters' API
- class spikingjelly.activation_based.layer.stateless_wrapper.MaxPool1d(kernel_size, stride=None, padding=0, dilation=1, return_indices=False, ceil_mode=False, step_mode='s')[源代码]#
基类:
MaxPool1d,StepModule
中文
- 参数:
其他的参数API参见
torch.nn.MaxPool1d
English
- 参数:
Refer to
torch.nn.MaxPool1dfor other parameters' API
- class spikingjelly.activation_based.layer.stateless_wrapper.MaxPool2d(kernel_size, stride=None, padding=0, dilation=1, return_indices=False, ceil_mode=False, step_mode='s')[源代码]#
基类:
MaxPool2d,StepModule
中文
- 参数:
其他的参数API参见
torch.nn.MaxPool2d
English
- 参数:
Refer to
torch.nn.MaxPool2dfor other parameters' API
- class spikingjelly.activation_based.layer.stateless_wrapper.MaxPool3d(kernel_size, stride=None, padding=0, dilation=1, return_indices=False, ceil_mode=False, step_mode='s')[源代码]#
基类:
MaxPool3d,StepModule
中文
- 参数:
其他的参数API参见
torch.nn.MaxPool3d
English
- 参数:
Refer to
torch.nn.MaxPool3dfor other parameters' API
- class spikingjelly.activation_based.layer.stateless_wrapper.AvgPool1d(kernel_size, stride=None, padding=0, ceil_mode=False, count_include_pad=True, step_mode='s')[源代码]#
基类:
AvgPool1d,StepModule
中文
- 参数:
其他的参数API参见
torch.nn.AvgPool1d
English
- 参数:
Refer to
torch.nn.AvgPool1dfor other parameters' API
- class spikingjelly.activation_based.layer.stateless_wrapper.AvgPool2d(kernel_size, stride=None, padding=0, ceil_mode=False, count_include_pad=True, divisor_override=None, step_mode='s')[源代码]#
基类:
AvgPool2d,StepModule
中文
- 参数:
其他的参数API参见
torch.nn.AvgPool2d
English
- 参数:
Refer to
torch.nn.AvgPool2dfor other parameters' API
- class spikingjelly.activation_based.layer.stateless_wrapper.AvgPool3d(kernel_size, stride=None, padding=0, ceil_mode=False, count_include_pad=True, divisor_override=None, step_mode='s')[源代码]#
基类:
AvgPool3d,StepModule
中文
- 参数:
其他的参数API参见
torch.nn.AvgPool3d
English
- 参数:
Refer to
torch.nn.AvgPool3dfor other parameters' API
- class spikingjelly.activation_based.layer.stateless_wrapper.AdaptiveAvgPool1d(output_size, step_mode='s')[源代码]#
基类:
AdaptiveAvgPool1d,StepModule
中文
其他的参数API参见
torch.nn.AdaptiveAvgPool1d
English
- 参数:
Refer to
torch.nn.AdaptiveAvgPool1dfor other parameters' API
- class spikingjelly.activation_based.layer.stateless_wrapper.AdaptiveAvgPool2d(output_size, step_mode='s')[源代码]#
基类:
AdaptiveAvgPool2d,StepModule
中文
- 参数:
其他的参数API参见
torch.nn.AdaptiveAvgPool2d
English
- 参数:
Refer to
torch.nn.AdaptiveAvgPool2dfor other parameters' API
- class spikingjelly.activation_based.layer.stateless_wrapper.AdaptiveAvgPool3d(output_size, step_mode='s')[源代码]#
基类:
AdaptiveAvgPool3d,StepModule
中文
- 参数:
其他的参数API参见
torch.nn.AdaptiveAvgPool3d
English
- 参数:
Refer to
torch.nn.AdaptiveAvgPool3dfor other parameters' API
- class spikingjelly.activation_based.layer.stateless_wrapper.Linear(in_features, out_features, bias=True, step_mode='s')[源代码]#
基类:
Linear,StepModule
中文
- 参数:
其他的参数API参见
torch.nn.Linear
English
- 参数:
Refer to
torch.nn.Linearfor other parameters' API
- class spikingjelly.activation_based.layer.stateless_wrapper.Flatten(start_dim=1, end_dim=-1, step_mode='s')[源代码]#
基类:
Flatten,StepModule
中文
其他的参数API参见
torch.nn.Flatten
English
- 参数:
Refer to
torch.nn.Flattenfor other parameters' API
- class spikingjelly.activation_based.layer.stateless_wrapper.WSConv2d(in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, bias=True, padding_mode='zeros', step_mode='s')[源代码]#
基类:
Conv2d
中文
- 参数:
其他的参数API参见
Conv2d
English
- 参数:
Refer to
Conv2dfor other parameters' API