Struct MSELossOptions#
Defined in File loss.h
Page Contents
Struct Documentation#
-
struct MSELossOptions#
Options for the
MSELoss
module.Example:
MSELoss model(MSELossOptions(torch::kNone));
Public Functions
-
MSELossOptions() = default#
-
inline auto reduction(const reduction_t &new_reduction) -> decltype(*this)#
Specifies the reduction to apply to the output.
'none'
|'mean'
|'sum'
. Default:'mean'
-
inline auto reduction(reduction_t &&new_reduction) -> decltype(*this)#
-
inline const reduction_t &reduction() const noexcept#
-
inline reduction_t &reduction() noexcept#
-
MSELossOptions() = default#