ONE - On-device Neural Engine
Loading...
Searching...
No Matches
locomotiv::NodeData Struct Referenceabstract

Read-only no-template wrapper for 'Buffer'. Serves interface for input and output of 'Session'. More...

#include <NodeData.h>

Public Types

template<typename T >
using Buffer = nncc::core::ADT::tensor::Buffer< T >
 
using Shape = nncc::core::ADT::tensor::Shape
 

Public Member Functions

virtual ~NodeData ()=default
 
virtual const loco::DataTypedtype () const =0
 
virtual const Shapeshape () const =0
 
virtual const Buffer< int32_t > * as_s32_bufptr () const =0
 
virtual const Buffer< float > * as_f32_bufptr () const =0
 

Detailed Description

Read-only no-template wrapper for 'Buffer'. Serves interface for input and output of 'Session'.

Note
Once NodeData is created, it is not modifiable.

Definition at line 35 of file NodeData.h.

Member Typedef Documentation

◆ Buffer

Definition at line 37 of file NodeData.h.

◆ Shape

Constructor & Destructor Documentation

◆ ~NodeData()

virtual locomotiv::NodeData::~NodeData ( )
virtualdefault

Member Function Documentation

◆ as_f32_bufptr()

virtual const Buffer< float > * locomotiv::NodeData::as_f32_bufptr ( ) const
pure virtual

◆ as_s32_bufptr()

virtual const Buffer< int32_t > * locomotiv::NodeData::as_s32_bufptr ( ) const
pure virtual

Implemented in locomotiv::NodeDataImpl.

◆ dtype()

virtual const loco::DataType & locomotiv::NodeData::dtype ( ) const
pure virtual

Implemented in locomotiv::NodeDataImpl.

◆ shape()


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