Tenncor
|
Variable's node wrapper. More...
#include <variable.hpp>
Public Member Functions | |
VariableNode (std::shared_ptr< Variable< T >> var) | |
VariableNode< T > * | clone (void) const |
Return deep copy of this instance (with a copied variable) More... | |
T * | data (void) override |
Implementation of iNode<T> More... | |
void | update (void) override |
Implementation of iNode<T> More... | |
teq::TensptrT | get_tensor (void) const override |
Implementation of iNode<T> More... | |
void | assign (const T *input, teq::Shape shape) |
Wrapper around variable assign of the same signature. More... | |
void | assign (const TensMapT< T > *tensmap) |
Assign Eigen tensor map to variable's internal data. More... | |
void | assign (const ShapedArr< T > &arr) |
Assign ShapedArr representation to variable's internal data. More... | |
std::string | get_label (void) const |
Return string representation of internal variable. More... | |
![]() | |
virtual | ~iNode (void)=default |
iNode< T > * | clone (void) const |
Return deep copy of node where internal typed tensor is copied. More... | |
teq::Shape | shape (void) |
Return shape of internal tensor. More... | |
std::string | to_string (void) const |
Return string representation of internal tensor. More... | |
Protected Member Functions | |
iNode< T > * | clone_impl (void) const override |
Private Attributes | |
std::shared_ptr< Variable< T > > | var_ |
Variable's node wrapper.
|
inline |
|
inline |
Wrapper around variable assign of the same signature.
|
inline |
Assign Eigen tensor map to variable's internal data.
|
inline |
Assign ShapedArr representation to variable's internal data.
|
inline |
Return deep copy of this instance (with a copied variable)
|
inlineoverrideprotectedvirtual |
Implements eteq::iNode< T >.
|
inlineoverridevirtual |
Implementation of iNode<T>
Implements eteq::iNode< T >.
|
inline |
Return string representation of internal variable.
|
inlineoverridevirtual |
Implementation of iNode<T>
Implements eteq::iNode< T >.
|
inlineoverridevirtual |
Implementation of iNode<T>
Implements eteq::iNode< T >.
|
private |