Class Conv1dImpl¶
Defined in File conv.h
Page Contents
Inheritance Relationships¶
Base Type¶
public torch::nn::ConvNdImpl< 1, Conv1dImpl >
(Template Class ConvNdImpl)
Class Documentation¶
-
class Conv1dImpl : public torch::nn::ConvNdImpl<1, Conv1dImpl>¶
Applies convolution over a 1-D input.
See https://pytorch.org/docs/main/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
-
inline Conv1dImpl(int64_t input_channels, int64_t output_channels, ExpandingArray<1> kernel_size)¶
-
explicit Conv1dImpl(Conv1dOptions options_)¶
-
Tensor forward(const Tensor &input)¶
-
inline Conv1dImpl(int64_t input_channels, int64_t output_channels, ExpandingArray<1> kernel_size)¶