ONE - On-device Neural Engine
|
Wrapper to use flatbuffers::Vector pointer as std::vector entity. More...
#include <CircleReader.h>
Public Types | |
using | iterator = typename flatbuffers::Vector< T >::const_iterator |
using | value_type = typename flatbuffers::Vector< T >::return_type |
Public Member Functions | |
VectorWrapper (const flatbuffers::Vector< T > *ptr) | |
const T * | data () const |
uint32_t | size () const |
iterator | begin () const |
iterator | end () const |
value_type | at (uint32_t i) const |
value_type | operator[] (uint32_t i) const |
bool | null () const |
bool | empty () const |
Wrapper to use flatbuffers::Vector pointer as std::vector entity.
Definition at line 59 of file CircleReader.h.
using luci::VectorWrapper< T >::iterator = typename flatbuffers::Vector<T>::const_iterator |
Definition at line 67 of file CircleReader.h.
using luci::VectorWrapper< T >::value_type = typename flatbuffers::Vector<T>::return_type |
Definition at line 71 of file CircleReader.h.
|
explicit |
Definition at line 394 of file CircleReader.cpp.
VectorWrapper< T >::value_type luci_interpreter::VectorWrapper< T >::at | ( | uint32_t | i | ) | const |
Definition at line 419 of file CircleReader.cpp.
References size.
Referenced by luci_interpreter::GraphLoader::checkInplaceOps(), luci_interpreter::RuntimeGraph::configure(), and luci_interpreter::RuntimeGraph::execute().
VectorWrapper< T >::iterator luci_interpreter::VectorWrapper< T >::begin | ( | ) | const |
Definition at line 409 of file CircleReader.cpp.
const T * luci_interpreter::VectorWrapper< T >::data | ( | ) | const |
Definition at line 404 of file CircleReader.cpp.
Referenced by luci::CircleImportMetadata::CircleImportMetadata(), luci_interpreter::RuntimeGraph::getConstDataByTensor(), and luci_interpreter::Tensor::is_constant_tensor().
bool luci_interpreter::VectorWrapper< T >::empty | ( | ) | const |
Definition at line 437 of file CircleReader.cpp.
References size.
Referenced by luci::CircleConstNodeBuilder::build().
VectorWrapper< T >::iterator luci_interpreter::VectorWrapper< T >::end | ( | ) | const |
bool luci_interpreter::VectorWrapper< T >::null | ( | ) | const |
Definition at line 436 of file CircleReader.cpp.
VectorWrapper< T >::value_type luci_interpreter::VectorWrapper< T >::operator[] | ( | uint32_t | i | ) | const |
Definition at line 431 of file CircleReader.cpp.
uint32_t luci_interpreter::VectorWrapper< T >::size | ( | ) | const |
Definition at line 399 of file CircleReader.cpp.
Referenced by luci::CircleImportMetadata::CircleImportMetadata(), and luci_interpreter::RuntimeGraph::execute().