Shortcuts

Struct GLUOptions

Page Contents

Struct Documentation

struct torch::nn::GLUOptions

Options for the GLU module.

Example:

GLU model(GLUOptions(1));

Public Functions

GLUOptions(int64_t dim = -1)
auto dim(const int64_t &new_dim) -> decltype(*this)

the dimension on which to split the input. Default: -1

auto dim(int64_t &&new_dim) -> decltype(*this)
const int64_t &dim() const noexcept
int64_t &dim() 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