Struct LinearOptions
Defined in File linear.h
Page Contents
Struct Documentation
-
struct LinearOptions
Options for the
Linear
module.Example:
Linear model(LinearOptions(5, 2).bias(false));
Public Functions
-
inline auto in_features(const int64_t &new_in_features) -> decltype(*this)
size of each input sample
-
inline auto out_features(const int64_t &new_out_features) -> decltype(*this)
size of each output sample
-
inline auto in_features(const int64_t &new_in_features) -> decltype(*this)