Cell Class — pytorch Architecture
Architecture documentation for the Cell class in RNN.cpp from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/RNN.cpp lines 707–720
template<typename hidden_type_tmpl, typename cell_params_tmpl>
struct Cell {
using hidden_type = hidden_type_tmpl;
using cell_params = cell_params_tmpl;
virtual ~Cell() = default; // This is really dumb, but enables projects with
// -Wnon-virtual-dtor to compile...
virtual hidden_type operator()(
const Tensor& input,
const hidden_type& hidden,
const cell_params& params,
bool pre_compute_input = false) const = 0;
};
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free