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