LazyConvTranspose3d¶
- class torch.nn.LazyConvTranspose3d(out_channels, kernel_size, stride=1, padding=0, output_padding=0, groups=1, bias=True, dilation=1, padding_mode='zeros', device=None, dtype=None)[source][source]¶
一个
torch.nn.ConvTranspose3d
模块,具有in_channels
参数的惰性初始化。ConvTranspose3d
的in_channels
参数从input.size(1)
推断而来。将惰性初始化的属性是 weight 和 bias。有关惰性模块及其限制的更多文档,请查看
torch.nn.modules.lazy.LazyModuleMixin
。- 参数
out_channels (int) – 卷积产生的通道数
kernel_size (int 或 tuple) – 卷积核的大小
stride (int 或 tuple, 可选) – 卷积的步幅。默认值:1
padding (int 或 tuple, 可选) – 将
dilation * (kernel_size - 1) - padding
零填充添加到输入的每个维度的两侧。默认值:0output_padding (int 或 tuple, 可选) – 添加到输出形状中每个维度一侧的额外大小。默认值:0
groups (int, 可选) – 从输入通道到输出通道的阻塞连接数。默认值:1
bias (bool, 可选) – 如果为
True
,则向输出添加可学习的偏置。默认值:True
dilation (int 或 tuple, 可选) – 内核元素之间的间距。默认值:1
- cls_to_become[source]¶
ConvTranspose3d
的别名