|
pulsatrix 1.1.0
|
Abstract base every layer subclasses – NVI forward(), pure-virtual LRP contract. More...
#include <optional>#include <stdexcept>#include <string>#include <utility>#include <vector>#include "pulsatrix/assert.hpp"#include "pulsatrix/autograd.hpp"#include "pulsatrix/computation_graph.hpp"#include "pulsatrix/lrp_rule_config.hpp"#include "pulsatrix/node.hpp"#include "pulsatrix/op_type.hpp"#include "pulsatrix/tensor.hpp"
Go to the source code of this file.
Classes | |
| struct | pulsatrix::ParamRef |
| A trainable parameter and its accumulated gradient, as owned by some Module. More... | |
| struct | pulsatrix::NamedParamRef |
A parameter together with its hierarchical, dot-separated name relative to the module that reported it (weight, mha.q_proj.bias, 0.weight). More... | |
| struct | pulsatrix::NamedBufferRef |
| Module state that is saved with a model but never trained, such as BatchNorm's running statistics, with its hierarchical name (roadmap IO-2). Named like parameters. More... | |
| struct | pulsatrix::NamedModuleRef |
A sub-module with its dot-separated name relative to the module that reported it, the same prefix its parameters carry (mha.q_proj, layers.0). More... | |
| class | pulsatrix::Module |
| Base class for every layer type (LinearModule, Conv2DModule, activations, ...). More... | |
Namespaces | |
| namespace | pulsatrix |
Functions | |
| void | pulsatrix::append_named_parameters (std::vector< NamedParamRef > &out, const std::string &prefix, Module &child) |
Appends child's named parameters to out, each renamed to prefix.name – the one step every container's named_parameters() repeats per child. | |
| std::vector< NamedModuleRef > | pulsatrix::NamedModules (Module &root) |
Every module under root, depth first with each parent before its children, named by their full dotted path (layers.0.mha.q_proj); root itself isn't included. | |
| void | pulsatrix::release_tensor (Tensor &t) |
Frees t's buffer: it becomes an empty tensor on the same backend and device. | |
| void | pulsatrix::append_named_buffers (std::vector< NamedBufferRef > &out, const std::string &prefix, Module &child) |
Appends child's named buffers to out, each renamed to prefix.name. | |
Abstract base every layer subclasses – NVI forward(), pure-virtual LRP contract.