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;
70 std::string
opcode_name(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;
73 std::string
tensor_dtype(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;