LazyConv1d
-
class torch.nn.LazyConv1d(out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, bias=True, padding_mode='zeros', device=None, dtype=None)[source] -
A
torch.nn.Conv1dmodule with lazy initialization of thein_channelsargument of theConv1dthat is inferred from theinput.size(1). The attributes that will be lazily initialized areweightandbias.Check the
torch.nn.modules.lazy.LazyModuleMixinfor further documentation on lazy modules and their limitations.- Parameters:
-
- out_channels (int) – Количество каналов, производимых свёрткой
- kernel_size (int or tuple) – Размер свёрточного ядра
- stride (int or tuple, optional) – Шаг свёртки. По умолчанию: 1
- padding (int or tuple, optional) – Нулевое заполнение, добавляемое к обеим сторонам входных данных. По умолчанию: 0
-
padding_mode (str, optional) –
'zeros','reflect','replicate'или'circular'. По умолчанию:'zeros' - dilation (int or tuple, optional) – Расстояние между элементами ядра. По умолчанию: 1
- groups (int, optional) – Количество блокированных соединений от входных каналов к выходным каналам. По умолчанию: 1
-
bias (bool, optional) – Если
True, добавляет обучаемый смещение к выходу. По умолчанию:True
См. также
-
cls_to_become -
псевдоним
Conv1d
© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/1.13/generated/torch.nn.LazyConv1d.html