Struct BilinearOptions¶
Defined in File linear.h
Page Contents
Struct Documentation¶
-
struct 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)¶
-
inline auto in1_features(const int64_t &new_in1_features) -> decltype(*this)¶
The number of features in input 1 (columns of the input1 matrix).
-
inline auto in1_features(int64_t &&new_in1_features) -> decltype(*this)¶
-
inline const int64_t &in1_features() const noexcept¶
-
inline int64_t &in1_features() noexcept¶
-
inline auto in2_features(const int64_t &new_in2_features) -> decltype(*this)¶
The number of features in input 2 (columns of the input2 matrix).
-
inline auto in2_features(int64_t &&new_in2_features) -> decltype(*this)¶
-
inline const int64_t &in2_features() const noexcept¶
-
inline int64_t &in2_features() noexcept¶
-
inline auto out_features(const int64_t &new_out_features) -> decltype(*this)¶
The number of output features to produce (columns of the output matrix).
-
inline auto out_features(int64_t &&new_out_features) -> decltype(*this)¶
-
inline const int64_t &out_features() const noexcept¶
-
inline int64_t &out_features() noexcept¶
-
inline auto bias(const bool &new_bias) -> decltype(*this)¶
Whether to learn and add a bias after the bilinear transformation.
-
inline auto bias(bool &&new_bias) -> decltype(*this)¶
-
inline const bool &bias() const noexcept¶
-
inline bool &bias() noexcept¶
-
BilinearOptions(int64_t in1_features, int64_t in2_features, int64_t out_features)¶