Spec-Zone.ru › PyTorch 1

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.Conv1d module with lazy initialization of the in_channels argument of the Conv1d that is inferred from the input.size(1). The attributes that will be lazily initialized are weight and bias.

Check the torch.nn.modules.lazy.LazyModuleMixin for 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

См. также

torch.nn.Conv1d и torch.nn.modules.lazy.LazyModuleMixin

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API