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

Data Structures

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 > tflread::as_index_vector ( const flatbuffers::Vector< T > *  flat_array)

Definition at line 29 of file Read.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}
return_type Get(uoffset_t i) const
uoffset_t size() const

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

Referenced by tfldump::dump_sub_graph(), tfldump::ReshapePrinter::options(), and tflread::Reader::select_subgraph().