Shortcuts

Struct RNNCellOptionsBase

Page Contents

Struct Documentation

struct torch::nn::detail::RNNCellOptionsBase

Common options for RNNCell, LSTMCell and GRUCell modules.

Public Functions

RNNCellOptionsBase(int64_t input_size, int64_t hidden_size, bool bias, int64_t num_chunks)
~RNNCellOptionsBase() = default
auto input_size(const int64_t &new_input_size) -> decltype(*this)
auto input_size(int64_t &&new_input_size) -> decltype(*this)
const int64_t &input_size() const noexcept
int64_t &input_size() noexcept
auto hidden_size(const int64_t &new_hidden_size) -> decltype(*this)
auto hidden_size(int64_t &&new_hidden_size) -> decltype(*this)
const int64_t &hidden_size() const noexcept
int64_t &hidden_size() noexcept
auto bias(const bool &new_bias) -> decltype(*this)
auto bias(bool &&new_bias) -> decltype(*this)
const bool &bias() const noexcept
bool &bias() noexcept
auto num_chunks(const int64_t &new_num_chunks) -> decltype(*this)
auto num_chunks(int64_t &&new_num_chunks) -> decltype(*this)
const int64_t &num_chunks() const noexcept
int64_t &num_chunks() 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