Shortcuts

Template Class RNNCellImplBase

Inheritance Relationships

Base Type

Class Documentation

template<typename Derived>
class RNNCellImplBase : public torch::nn::Cloneable<Derived>

Base class for all RNNCell implementations (intended for code sharing).

Public Functions

explicit RNNCellImplBase(const RNNCellOptionsBase &options_)
virtual void reset() override

Initializes the parameters of the RNNCell module.

void reset_parameters()
virtual void pretty_print(std::ostream &stream) const override

Pretty prints the RNN module into the given stream.

Public Members

RNNCellOptionsBase options_base
Tensor weight_ih
Tensor weight_hh
Tensor bias_ih
Tensor bias_hh

Protected Functions

void check_forward_input(const Tensor &input, const std::string &name) const
virtual std::string get_nonlinearity_str() const

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