Struct LogSoftmaxFuncOptions¶
Defined in File activation.h
Page Contents
Struct Documentation¶
-
struct LogSoftmaxFuncOptions¶
Options for
torch::nn::functional::log_softmax
.Example:
namespace F = torch::nn::functional; F::log_softmax(input, LogSoftmaxFuncOptions(1));
Public Functions
-
LogSoftmaxFuncOptions(int64_t dim)¶
-
inline auto dim(const int64_t &new_dim) -> decltype(*this)¶
Dimension along which LogSoftmax will be computed.
-
inline auto dim(int64_t &&new_dim) -> decltype(*this)¶
-
inline const int64_t &dim() const noexcept¶
-
inline int64_t &dim() noexcept¶
-
LogSoftmaxFuncOptions(int64_t dim)¶