3 #include <torch/nn/cloneable.h> 4 #include <torch/nn/module.h> 5 #include <torch/nn/pimpl.h> 6 #include <torch/types.h> 17 TORCH_ARG(int64_t, in);
19 TORCH_ARG(int64_t, out);
21 TORCH_ARG(
bool, with_bias) =
true;
30 void reset()
override;
33 void pretty_print(std::ostream& stream)
const override;
Options for the Linear module.
Applies a linear transformation with optional bias.
Tensor bias
The learned bias.
Tensor weight
The learned weight.
LinearOptions options
The options used to configure this module.
The clone() method in the base Module class does not have knowledge of the concrete runtime type of i...