LazyConv1d
- classtorch.nn.LazyConv1d(out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, bias=True, padding_mode='zeros', device=None, dtype=None)[源代码]
-
一个具有
in_channels
参数惰性初始化的torch.nn.Conv1d
模块。参数
in_channels
会从input.size(1)
推断得出。将被延迟初始化的属性是 weight 和 bias。查阅
torch.nn.modules.lazy.LazyModuleMixin
以了解更多关于延迟模块及其限制的文档。- 参数
- cls_to_become
-
别名:
Conv1d