19#include <mio_circle/Helper.h>
20#include <mio_circle/Reader.h>
30 for (uint32_t i = 0; i <
ops->size(); ++i)
32 const auto op =
ops->Get(i);
50 const auto tensors = reader.
tensors();
51 const auto output_tensors = reader.
outputs(op);
52 const auto output = output_tensors.at(0);
53 const auto tensor = tensors->Get(output);
75 for (uint32_t g = 0; g < subgraph_size; g++)
78 dump_ops(os, reader, option);
void run(std::ostream &os, const circle::Model *model, const DumpOption &option)
Loads Circle file and provides helpers to access attributes.
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 CircleOperators_t * operators()
bool select_subgraph(uint32_t subgraph)
const char * tensor_name(const ::circle::Tensor *tensor)