Tenncor
Public Member Functions | Protected Member Functions | List of all members
eteq::iNode< T > Struct Template Referenceabstract

Interface node for wrapping typed tensor. More...

#include <inode.hpp>

Inheritance diagram for eteq::iNode< T >:
Inheritance graph
[legend]

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
 

Detailed Description

template<typename T>
struct eteq::iNode< T >

Interface node for wrapping typed tensor.

Constructor & Destructor Documentation

◆ ~iNode()

template<typename T >
virtual eteq::iNode< T >::~iNode ( void  )
virtualdefault

Member Function Documentation

◆ clone()

template<typename T >
iNode<T>* eteq::iNode< T >::clone ( void  ) const
inline

Return deep copy of node where internal typed tensor is copied.

◆ clone_impl()

template<typename T >
virtual iNode<T>* eteq::iNode< T >::clone_impl ( void  ) const
protectedpure virtual

◆ data()

template<typename T >
virtual T* eteq::iNode< T >::data ( void  )
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 >.

◆ get_tensor()

template<typename T >
virtual teq::TensptrT eteq::iNode< T >::get_tensor ( void  ) const
pure virtual

◆ shape()

template<typename T >
teq::Shape eteq::iNode< T >::shape ( void  )
inline

Return shape of internal tensor.

◆ to_string()

template<typename T >
std::string eteq::iNode< T >::to_string ( void  ) const
inline

Return string representation of internal tensor.

◆ update()

template<typename T >
virtual void eteq::iNode< T >::update ( void  )
pure virtual

Trigger internal typed tensor update.

Implemented in eteq::FunctorNode< T >, dbg::CustomFunctorNode< T >, eteq::VariableNode< T >, and eteq::ConstantNode< T >.


The documentation for this struct was generated from the following file: