Shortcuts

Struct ReLU6Options

Page Contents

Struct Documentation

struct torch::nn::ReLU6Options

Options for the ReLU6 module.

Example:

ReLU6 model(ReLU6Options().inplace(true));

Public Functions

ReLU6Options(bool inplace = false)
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