Shortcuts

Struct ReLUOptions

Page Contents

Struct Documentation

struct ReLUOptions

Options for the ReLU module.

Example:

ReLU model(ReLUOptions().inplace(true));

Public Functions

ReLUOptions(bool inplace = false)
inline auto inplace(const bool &new_inplace) -> decltype(*this)

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

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