ClikaRT::nn::BCELossOptions
struct
Header: ClikaRT/nn/generated/loss.h
Settings of BCELoss: chain the setters, or assign the fields.
Member functions
weight(OptionalTensor)
BCELossOptions& weight(OptionalTensor v)
Sets weight, a per-element rescaling weight, broadcast against input; unset weighs 1.
Declared in ClikaRT/nn/generated/loss.h, line 443
weight()
const OptionalTensor& weight() const
Reads weight.
Declared in ClikaRT/nn/generated/loss.h, line 445
reduction(ops::Reduction)
BCELossOptions& reduction(ops::Reduction v)
Sets reduction, how the elementwise losses reduce.
Declared in ClikaRT/nn/generated/loss.h, line 451
reduction()
ops::Reduction reduction() const
Reads reduction.
Declared in ClikaRT/nn/generated/loss.h, line 453
Data members
weight_
OptionalTensor weight_ = {}
A per-element rescaling weight, broadcast against input; unset weighs 1. Default {}.
Declared in ClikaRT/nn/generated/loss.h, line 448
reduction_
ops::Reduction reduction_ = ops::Reduction::Mean
How the elementwise losses reduce. Default ops::Reduction::Mean.
Declared in ClikaRT/nn/generated/loss.h, line 455