ClikaRT::nn::Softmax
class
Header: ClikaRT/nn/generated/activation.h
Inherits: ClikaRT::nn::Module
Softmax along dim, computed stably. The module form of ClikaRT::ops::softmax, which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function.
Member functions
Softmax(SoftmaxOptions)
explicit Softmax(SoftmaxOptions options = {})
Constructs the module from options (every default when omitted).
Declared in ClikaRT/nn/generated/activation.h, line 1052
Softmax(int64_t)
explicit Softmax(std::int64_t dim)
Softmax(dim): the positional form of SoftmaxOptions(dim).
Declared in ClikaRT/nn/generated/activation.h, line 1054
forward()
forward_impl, unwrapped: raises ClikaRT::Error on failure.
Declared in ClikaRT/nn/generated/activation.h, line 1065
operator()()
Same as forward.
Declared in ClikaRT/nn/generated/activation.h, line 1069
options()
const SoftmaxOptions& options() const
The settings this module was constructed with.
Declared in ClikaRT/nn/generated/activation.h, line 1073