ONE - On-device Neural Engine
|
Loads TF lite file and provides helpers to access attributes. More...
#include <CircleImport.h>
Public Member Functions | |
CircleImport (const circle::Model *model) | |
CircleImport ()=delete | |
bool | select_sub_graph (uint32_t subgraph) |
const CircleBuffers_t * | buffers () |
const CircleTensors_t * | tensors () |
const CircleOperators_t * | operators () |
const std::vector< int32_t > & | inputs () const |
const std::vector< int32_t > & | outputs () const |
uint32_t | num_subgraph () const |
circle::BuiltinOperator | builtin_code (const circle::Operator *op) const |
std::string | opcode_name (const circle::Operator *op) const |
size_t | buffer_info (const circle::Tensor *tensor, const uint8_t **buff_data) |
Public Member Functions inherited from souschef::TensorFiller | |
virtual | ~TensorFiller ()=default |
void | set_tensor_filler (uint32_t tensor_index) |
This will record the tensor by index, if it needs filler option, such as kernel, bias. | |
void | set_tensor_filler (uint32_t tensor_index, std::vector< int32_t > &expvalues) |
This will store int32 filler values such as reshape information for the tensor. | |
void | set_tensor_filler (uint32_t tensor_index, std::vector< float > &expvalues) |
bool | get_tensor_filler (uint32_t tensor_index) |
This will return true if the tensor by index, needs a filler option. | |
bool | get_tensor_filler (uint32_t tensor_index, std::vector< int32_t > &expvalues) |
This will return true if the tensor by index, needs a int array filler option. | |
bool | get_tensor_filler (uint32_t tensor_index, std::vector< float > &expvalues) |
void | clear_tensor_filler () |
void | clear_tensor_filler_vint32 () |
void | clear_tensor_filler_vfloat () |
Loads TF lite file and provides helpers to access attributes.
Definition at line 40 of file CircleImport.h.
circlechef::CircleImport::CircleImport | ( | const circle::Model * | model | ) |
Definition at line 28 of file CircleImport.cpp.
|
delete |
size_t circlechef::CircleImport::buffer_info | ( | const circle::Tensor * | tensor, |
const uint8_t ** | buff_data | ||
) |
Definition at line 98 of file CircleImport.cpp.
References size.
|
inline |
Definition at line 51 of file CircleImport.h.
Referenced by circlechef::generate_recipe().
circle::BuiltinOperator circlechef::CircleImport::builtin_code | ( | const circle::Operator * | op | ) | const |
Definition at line 64 of file CircleImport.cpp.
References mio::circle::builtin_code_neutral().
Referenced by circlechef::generate_recipe().
|
inline |
Definition at line 54 of file CircleImport.h.
Referenced by validate_onnx2circle.OnnxRunner::feed_random_inputs(), circlechef::generate_recipe(), and package.infer.session::set_inputs().
|
inline |
Definition at line 57 of file CircleImport.h.
References flatbuffers::Vector< T >::size().
Referenced by circlechef::generate_recipe().
std::string circlechef::CircleImport::opcode_name | ( | const circle::Operator * | op | ) | const |
Definition at line 73 of file CircleImport.cpp.
References mio::circle::is_custom(), and mio::circle::is_valid().
Referenced by circlechef::generate_recipe().
|
inline |
Definition at line 53 of file CircleImport.h.
Referenced by circlechef::generate_recipe().
|
inline |
Definition at line 55 of file CircleImport.h.
Referenced by circlechef::generate_recipe(), validate_onnx2circle.OnnxRunner::get_outputs(), package.infer.session::inference(), and package.infer.session::set_outputs().
bool circlechef::CircleImport::select_sub_graph | ( | uint32_t | subgraph | ) |
Definition at line 40 of file CircleImport.cpp.
References circlechef::as_index_vector(), and flatbuffers::Vector< T >::size().
Referenced by circlechef::generate_recipe().
|
inline |
Definition at line 52 of file CircleImport.h.
Referenced by circlechef::generate_recipe().