ONE - On-device Neural Engine
|
An implementation of NodeData interface. More...
#include <NodeDataImpl.h>
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::DataType & | dtype () const override |
const Shape * | shape () 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 |
An implementation of NodeData interface.
Definition at line 28 of file NodeDataImpl.h.
using locomotiv::NodeDataImpl::Buffer = nncc::core::ADT::tensor::Buffer<T> |
Definition at line 31 of file NodeDataImpl.h.
Definition at line 32 of file NodeDataImpl.h.
locomotiv::NodeDataImpl::NodeDataImpl | ( | const Buffer< DT > & | buf | ) |
|
inlineoverridevirtual |
Implements locomotiv::NodeData.
Definition at line 42 of file NodeDataImpl.h.
|
inlineoverridevirtual |
Implements locomotiv::NodeData.
Definition at line 40 of file NodeDataImpl.h.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements locomotiv::NodeData.
Definition at line 38 of file NodeDataImpl.h.
Referenced by RandomDataGenerator.RandomDataGenerator::_gen_float32(), RandomDataGenerator.RandomDataGenerator::_gen_int16(), and RandomDataGenerator.RandomDataGenerator::_gen_uint8().