#include <VariableStore.h>
|
virtual void | send_variables_to (const TensorOptions &options) |
| Send padding variables to options.
|
|
template<typename T> |
const Variable< T > & | declare_input_variable (const char *name, TensorShapeRef list_shape={}) |
| Declare an input variable.
|
|
template<typename T> |
const Variable< T > & | declare_input_variable (const VariableName &name, TensorShapeRef list_shape={}) |
| Declare an input variable.
|
|
template<typename T> |
Variable< T > & | declare_output_variable (const char *name, TensorShapeRef list_shape={}) |
| Declare an output variable.
|
|
template<typename T> |
Variable< T > & | declare_output_variable (const VariableName &name, TensorShapeRef list_shape={}) |
| Declare an output variable.
|
|
const VariableBase * | clone_input_variable (const VariableBase &var, const VariableName &new_name={}) |
| Clone a variable and put it on the input axis.
|
|
VariableBase * | clone_output_variable (const VariableBase &var, const VariableName &new_name={}) |
| Clone a variable and put it on the output axis.
|
|
void | assign_input_stack (jit::Stack &stack) |
| Assign stack to input variables.
|
|
void | assign_output_stack (jit::Stack &stack, bool out, bool dout, bool d2out) |
| Assign stack to output variables and derivatives.
|
|
jit::Stack | collect_input_stack () const |
| Collect stack from input variables.
|
|
jit::Stack | collect_output_stack (bool out, bool dout, bool d2out) const |
| Collect stack from output variables and derivatives.
|
|
◆ VariableStorage
◆ VariableStore() [1/3]
◆ VariableStore() [2/3]
◆ VariableStore() [3/3]
◆ ~VariableStore()
◆ assign_input() [1/2]
void assign_input |
( |
const ValueMap & | vals | ) |
|
Assign input variable values
◆ assign_input() [2/2]
Assign input variable values.
◆ assign_input_stack()
void assign_input_stack |
( |
jit::Stack & | stack | ) |
|
|
protected |
Assign stack to input variables.
◆ assign_output()
void assign_output |
( |
const ValueMap & | vals | ) |
|
Assign output variable values.
◆ assign_output_derivatives()
void assign_output_derivatives |
( |
const DerivMap & | derivs | ) |
|
Assign variable derivatives.
◆ assign_output_stack()
void assign_output_stack |
( |
jit::Stack & | stack, |
|
|
bool | out, |
|
|
bool | dout, |
|
|
bool | d2out ) |
|
protected |
Assign stack to output variables and derivatives.
◆ clear_input()
Release allocated tensor
Reimplemented in Model.
◆ clear_output()
◆ clone_input_variable()
Clone a variable and put it on the input axis.
◆ clone_output_variable()
Clone a variable and put it on the output axis.
◆ collect_input()
◆ collect_input_stack()
jit::Stack collect_input_stack |
( |
| ) |
const |
|
protected |
Collect stack from input variables.
◆ collect_output()
◆ collect_output_derivatives()
DerivMap collect_output_derivatives |
( |
| ) |
const |
Collect variable derivatives.
◆ collect_output_second_derivatives()
SecDerivMap collect_output_second_derivatives |
( |
| ) |
const |
Collect variable second derivatives.
◆ collect_output_stack()
jit::Stack collect_output_stack |
( |
bool | out, |
|
|
bool | dout, |
|
|
bool | d2out ) const |
|
protected |
Collect stack from output variables and derivatives.
◆ declare_axis()
◆ declare_input_variable() [1/2]
Declare an input variable.
◆ declare_input_variable() [2/2]
Declare an input variable.
◆ declare_output_variable() [1/2]
Declare an output variable.
◆ declare_output_variable() [2/2]
Declare an output variable.
◆ input_axis() [1/2]
Definition of the input axis showing the layout of input variables
◆ input_axis() [2/2]
◆ input_variable() [1/2]
Lookup a variable by name
◆ input_variable() [2/2]
◆ input_variables() [1/2]
◆ input_variables() [2/2]
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ output_axis() [1/2]
Definition of the output axis showing the layout of output variables
◆ output_axis() [2/2]
◆ output_variable() [1/2]
◆ output_variable() [2/2]
◆ output_variables() [1/2]
◆ output_variables() [2/2]
◆ send_variables_to()
Send padding variables to options.
- Parameters
-
options | The target options |
◆ setup_layout()
Setup the layout of all the registered axes.
◆ variable_options()
Current tensor options for variables.
◆ zero_input()
Zero variable values
Reimplemented in Model.
◆ zero_output()
◆ resolve_tensor_name
template<typename T>
const T & resolve_tensor_name |
( |
const TensorName< T > & | tn, |
|
|
Model * | caller, |
|
|
const std::string & | pname ) |
|
friend |