Shortcuts

Struct AlphaDropoutFuncOptions

Page Contents

Struct Documentation

struct torch::nn::functional::AlphaDropoutFuncOptions

Options for torch::nn::functional::alpha_dropout.

Example:

namespace F = torch::nn::functional;
F::alpha_dropout(input, F::AlphaDropoutFuncOptions().p(0.5).training(false));

Public Functions

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