ClikaRT::nn::CrossEntropyLoss
class
Header: ClikaRT/nn/generated/loss.h
Inherits: ClikaRT::nn::Module
Cross entropy over class logits with the class axis last: the log-softmax followed by the negative log-likelihood. The module form of ClikaRT::ops::cross_entropy, which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function.
Member functions
CrossEntropyLoss()
explicit CrossEntropyLoss(CrossEntropyLossOptions options = {})
Constructs the module from options (every default when omitted).
Declared in ClikaRT/nn/generated/loss.h, line 407
forward()
forward_impl, unwrapped: raises ClikaRT::Error on failure.
Declared in ClikaRT/nn/generated/loss.h, line 421
operator()()
Same as forward.
Declared in ClikaRT/nn/generated/loss.h, line 425
options()
const CrossEntropyLossOptions& options() const
The settings this module was constructed with.
Declared in ClikaRT/nn/generated/loss.h, line 429