17#ifndef __MIO_CIRCLE05_READER_H__
18#define __MIO_CIRCLE05_READER_H__
20#include <mio/circle/schema_generated.h>
49 Reader(const ::circle::Model *model);
54 uint32_t
version()
const {
return _version; }
56 const std::vector<const ::circle::OperatorCode *> &
opcodes() {
return _op_codes; }
60 const std::vector<int32_t> &
inputs()
const {
return _inputs; }
61 const std::vector<int32_t> &
outputs()
const {
return _outputs; }
62 const ::circle::DataFormat &
data_format()
const {
return _data_format; }
68 size_t buffer_info(uint32_t buf_idx,
const uint8_t **buff_data);
69 ::circle::BuiltinOperator
builtin_code(const ::circle::Operator *op)
const;
71 std::vector<int32_t>
outputs(const ::circle::Operator *op)
const;
72 std::string
tensor_name(const ::circle::Tensor *tensor)
const;
83 const CircleSubGraphs_t *_subgraphs{
nullptr};
84 const CircleBuffers_t *_buffers{
nullptr};
85 const CircleTensors_t *_tensors{
nullptr};
86 const CircleOperators_t *_operators{
nullptr};
87 const CircleMetadata_t *_metadata{
nullptr};
88 const CircleSignatureDef_t *_signature_defs{
nullptr};
90 uint32_t _subgraph_index = 0;
91 std::string _subgraph_name;
92 std::vector<const ::circle::OperatorCode *> _op_codes;
93 std::vector<int32_t> _inputs;
94 std::vector<int32_t> _outputs;
95 ::circle::DataFormat _data_format = ::circle::DataFormat::DataFormat_CHANNELS_FIRST;
::circle::BuiltinOperator builtin_code(const ::circle::Operator *op) const
const std::vector< const ::circle::OperatorCode * > & opcodes()
const CircleTensors_t * tensors()
std::string opcode_name(const ::circle::Operator *op) const
uint32_t num_subgraph() const
const std::vector< int32_t > & outputs() const
const CircleBuffers_t * buffers()
const CircleOperators_t * operators()
std::string tensor_name(const ::circle::Tensor *tensor) const
uint32_t subgraph_index(void) const
size_t buffer_info(uint32_t buf_idx, const uint8_t **buff_data)
std::string tensor_dtype(const ::circle::Tensor *tensor) const
Reader(const ::circle::Model *model)
const CircleSignatureDef_t * signature_defs() const
const std::vector< int32_t > & inputs() const
std::vector< int32_t > outputs(const ::circle::Operator *op) const
const CircleMetadata_t * metadata() const
const std::string & subgraph_name(void) const
const ::circle::DataFormat & data_format() const
bool select_subgraph(uint32_t subgraph)