Tenncor
|
Interface node for wrapping typed tensor. More...
#include <inode.hpp>
Public Member Functions | |
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... | |
virtual T * | data (void)=0 |
Return raw data stored in internal typed tensor. More... | |
virtual void | update (void)=0 |
Trigger internal typed tensor update. More... | |
virtual teq::TensptrT | get_tensor (void) const =0 |
Return internal tensor. More... | |
Protected Member Functions | |
virtual iNode< T > * | clone_impl (void) const =0 |
Interface node for wrapping typed tensor.
|
virtualdefault |
|
inline |
Return deep copy of node where internal typed tensor is copied.
|
protectedpure virtual |
Implemented in eteq::FunctorNode< T >, eteq::VariableNode< T >, dbg::CustomFunctorNode< T >, and eteq::ConstantNode< T >.
|
pure virtual |
Return raw data stored in internal typed tensor.
Implemented in eteq::FunctorNode< T >, dbg::CustomFunctorNode< T >, eteq::VariableNode< T >, and eteq::ConstantNode< T >.
|
pure virtual |
Return internal tensor.
Implemented in eteq::FunctorNode< T >, dbg::CustomFunctorNode< T >, eteq::VariableNode< T >, and eteq::ConstantNode< T >.
|
inline |
Return shape of internal tensor.
|
inline |
Return string representation of internal tensor.
|
pure virtual |
Trigger internal typed tensor update.
Implemented in eteq::FunctorNode< T >, dbg::CustomFunctorNode< T >, eteq::VariableNode< T >, and eteq::ConstantNode< T >.