17#ifndef __MIO_CIRCLE08_HELPER_H__
18#define __MIO_CIRCLE08_HELPER_H__
20#include <mio/circle/schema_generated.h>
30bool is_valid(const ::circle::OperatorCode *opcode);
31bool is_custom(const ::circle::OperatorCode *opcode);
32std::string
opcode_name(const ::circle::OperatorCode *opcode);
33const char *
tensor_type(const ::circle::Tensor *tensor);
34const char *
tensor_name(const ::circle::Tensor *tensor);
38 if (flat_array ==
nullptr)
40 throw std::runtime_error(
"flat array is nullptr");
43 std::vector<T> ret(flat_array->
size());
44 for (uint32_t i = 0; i < flat_array->
size(); i++)
46 ret[i] = flat_array->
Get(i);
return_type Get(uoffset_t i) const
const char * tensor_name(const ::circle::Tensor *tensor)
std::string opcode_name(const ::circle::OperatorCode *opcode)
std::vector< T > as_index_vector(const flatbuffers::Vector< T > *flat_array)
const char * tensor_type(const ::circle::Tensor *tensor)
bool is_custom(const ::circle::OperatorCode *opcode)
bool is_valid(const ::circle::OperatorCode *opcode)
::circle::BuiltinOperator builtin_code_neutral(const ::circle::OperatorCode *opcode)