Shortcuts

Struct SoftplusOptions

Page Contents

Struct Documentation

struct torch::nn::SoftplusOptions

Options for the Softplus module.

Example:

Softplus model(SoftplusOptions().beta(0.24).threshold(42.42));

Public Functions

auto beta(const double &new_beta) -> decltype(*this)

the beta value for the Softplus formulation. Default: 1

auto beta(double &&new_beta) -> decltype(*this)
const double &beta() const noexcept
double &beta() noexcept
auto threshold(const double &new_threshold) -> decltype(*this)

values above this revert to a linear function. Default: 20

auto threshold(double &&new_threshold) -> decltype(*this)
const double &threshold() const noexcept
double &threshold() 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