LazyConvTranspose2d¶
- class torch.nn.LazyConvTranspose2d(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.ConvTranspose2d
模块,其in_channels
参数采用惰性初始化。ConvTranspose2d
的in_channels
参数从input.size(1)
推断。将被惰性初始化的属性是 weight 和 bias。请查看
torch.nn.modules.lazy.LazyModuleMixin
,获取更多关于惰性模块及其限制的文档。