Shortcuts

Struct CELUOptions

Page Contents

Struct Documentation

struct torch::nn::CELUOptions

Options for the CELU module.

Example:

CELU model(CELUOptions().alpha(42.42).inplace(true));

Public Functions

auto alpha(const double &new_alpha) -> decltype(*this)

The alpha value for the CELU formulation. Default: 1.0.

auto alpha(double &&new_alpha) -> decltype(*this)
const double &alpha() const noexcept
double &alpha() noexcept
auto inplace(const bool &new_inplace) -> decltype(*this)

can optionally do the operation in-place. Default: False

auto inplace(bool &&new_inplace) -> decltype(*this)
const bool &inplace() const noexcept
bool &inplace() 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