Shortcuts

Struct SoftmaxOptions

Page Contents

Struct Documentation

struct torch::nn::SoftmaxOptions

Options for the Softmax module.

Example:

Softmax model(SoftmaxOptions(1));

Public Functions

SoftmaxOptions(int64_t dim)
auto dim(const int64_t &new_dim) -> decltype(*this)

Dimension along which Softmax will be computed.

auto dim(int64_t &&new_dim) -> decltype(*this)
const int64_t &dim() const noexcept
int64_t &dim() noexcept

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources