Shortcuts

Class Conv1dImpl

Inheritance Relationships

Base Type

Class Documentation

class torch::nn::Conv1dImpl : public torch::nn::ConvNdImpl<1, Conv1dImpl>

Applies convolution over a 1-D input.

See https://pytorch.org/docs/master/nn.html#torch.nn.Conv1d to learn about the exact behavior of this module.

See the documentation for torch::nn::Conv1dOptions class to learn what constructor arguments are supported for this module.

Example:

Conv1d model(Conv1dOptions(3, 2, 3).stride(1).bias(false));

Public Functions

Conv1dImpl(int64_t input_channels, int64_t output_channels, ExpandingArray<1> kernel_size)
Conv1dImpl(Conv1dOptions options_)
Tensor forward(const Tensor &input)

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources