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