ONE - On-device Neural Engine
Loading...
Searching...
No Matches
locomotiv::NodeDataImpl Class Referencefinal

An implementation of NodeData interface. More...

#include <NodeDataImpl.h>

Collaboration diagram for locomotiv::NodeDataImpl:

Public Types

template<typename T >
using Buffer = nncc::core::ADT::tensor::Buffer< T >
 
using Shape = nncc::core::ADT::tensor::Shape
 
- Public Types inherited from locomotiv::NodeData
template<typename T >
using Buffer = nncc::core::ADT::tensor::Buffer< T >
 
using Shape = nncc::core::ADT::tensor::Shape
 

Public Member Functions

template<typename DT >
 NodeDataImpl (const Buffer< DT > &buf)
 
const loco::DataTypedtype () const override
 
const Shapeshape () const override
 
const Buffer< int32_t > * as_s32_bufptr () const override
 
const Buffer< float > * as_f32_bufptr () const override
 
- Public Member Functions inherited from locomotiv::NodeData
virtual ~NodeData ()=default
 

Detailed Description

An implementation of NodeData interface.

Definition at line 28 of file NodeDataImpl.h.

Member Typedef Documentation

◆ Buffer

Definition at line 31 of file NodeDataImpl.h.

◆ Shape

Constructor & Destructor Documentation

◆ NodeDataImpl()

template<typename DT >
locomotiv::NodeDataImpl::NodeDataImpl ( const Buffer< DT > &  buf)

Member Function Documentation

◆ as_f32_bufptr()

const Buffer< float > * locomotiv::NodeDataImpl::as_f32_bufptr ( ) const
inlineoverridevirtual

Implements locomotiv::NodeData.

Definition at line 42 of file NodeDataImpl.h.

42{ return _f32.get(); }

◆ as_s32_bufptr()

const Buffer< int32_t > * locomotiv::NodeDataImpl::as_s32_bufptr ( ) const
inlineoverridevirtual

Implements locomotiv::NodeData.

Definition at line 40 of file NodeDataImpl.h.

40{ return _s32.get(); }

◆ dtype()

const loco::DataType & locomotiv::NodeDataImpl::dtype ( ) const
inlineoverridevirtual

Implements locomotiv::NodeData.

Definition at line 36 of file NodeDataImpl.h.

36{ return _dtype; }

◆ shape()

const Shape * locomotiv::NodeDataImpl::shape ( ) const
inlineoverridevirtual

The documentation for this class was generated from the following files: