ONE - On-device Neural Engine
Loading...
Searching...
No Matches
tflinspect Namespace Reference

Data Structures

class  DumpConv2DWeight
 
class  DumpInterface
 
class  DumpOperators
 
class  DumpOperatorVersion
 
class  Reader
 Loads TF lite file and provides helpers to access attributes. More...
 

Functions

template<typename T >
std::vector< T > as_index_vector (const flatbuffers::Vector< T > *flat_array)
 

Function Documentation

◆ as_index_vector()

template<typename T >
std::vector< T > tflinspect::as_index_vector ( const flatbuffers::Vector< T > *  flat_array)

Definition at line 29 of file Reader.h.

30{
31 std::vector<T> ret(flat_array->size());
32 for (uint32_t i = 0; i < flat_array->size(); i++)
33 {
34 ret[i] = flat_array->Get(i);
35 }
36 return ret;
37}
SizeT size() const
Definition vector.h:164
return_type Get(SizeT i) const
Definition vector.h:175

References flatbuffers::Vector< T, SizeT >::Get(), and flatbuffers::Vector< T, SizeT >::size().

Referenced by tflinspect::DumpConv2DWeight::run(), and tflinspect::Reader::select_subgraph().