ONE - On-device Neural Engine
Loading...
Searching...
No Matches
nnfw::misc::tensor::Reader< T > Struct Template Referenceabstract

Struct to read element of tensor. More...

#include <Reader.h>

Public Member Functions

virtual ~Reader ()=default
 Destroy the Reader object.
 
virtual T at (const Index &index) const =0
 Get an element of tensor.
 

Detailed Description

template<typename T>
struct nnfw::misc::tensor::Reader< T >

Struct to read element of tensor.

Template Parameters
TType of elements in tensor

Definition at line 39 of file Reader.h.

Constructor & Destructor Documentation

◆ ~Reader()

template<typename T >
virtual nnfw::misc::tensor::Reader< T >::~Reader ( )
virtualdefault

Destroy the Reader object.

Member Function Documentation

◆ at()

template<typename T >
virtual T nnfw::misc::tensor::Reader< T >::at ( const Index index) const
pure virtual

Get an element of tensor.

Parameters
[in]indexIndex specifying indexes of tensor element
Returns
The value of specificed element

Implemented in nnfw::misc::tensor::Object< T >.


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