Shortcuts

Struct BilinearOptions

Page Contents

Struct Documentation

struct torch::nn::BilinearOptions

Options for the Bilinear module.

Example:

Bilinear model(BilinearOptions(3, 2, 4).bias(false));

Public Functions

BilinearOptions(int64_t in1_features, int64_t in2_features, int64_t out_features)
auto in1_features(const int64_t &new_in1_features) -> decltype(*this)

The number of features in input 1 (columns of the input1 matrix).

auto in1_features(int64_t &&new_in1_features) -> decltype(*this)
const int64_t &in1_features() const noexcept
int64_t &in1_features() noexcept
auto in2_features(const int64_t &new_in2_features) -> decltype(*this)

The number of features in input 2 (columns of the input2 matrix).

auto in2_features(int64_t &&new_in2_features) -> decltype(*this)
const int64_t &in2_features() const noexcept
int64_t &in2_features() noexcept
auto out_features(const int64_t &new_out_features) -> decltype(*this)

The number of output features to produce (columns of the output matrix).

auto out_features(int64_t &&new_out_features) -> decltype(*this)
const int64_t &out_features() const noexcept
int64_t &out_features() noexcept
auto bias(const bool &new_bias) -> decltype(*this)

Whether to learn and add a bias after the bilinear transformation.

auto bias(bool &&new_bias) -> decltype(*this)
const bool &bias() const noexcept
bool &bias() noexcept

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