17#ifndef __CIRCLE_EXPORTER_UTILS_H__
18#define __CIRCLE_EXPORTER_UTILS_H__
27#include <mio/circle/schema_generated.h>
39circle::FullyConnectedOptionsWeightsFormat
43 const SparseIndexVector &sparse_idx_vec);
58 const ShapeDescription &ifm,
const ShapeDescription &ofm);
Helper class to hold data needed in creation of a FlatBuffer. To serialize data, you typically call o...
uoffset_t GetSize() const
The current size of the serialized buffer, counting from the end.
Logical unit of computation.
Stride configuration for N-dimensional spatial operations.
constexpr uint64_t FLATBUFFERS_SIZE_MAX
DataType
"scalar" value type
flatbuffers::Offset< void > to_circle_sparse_index_vector(flatbuffers::FlatBufferBuilder &fb, const SparseIndexVector &sparse_idx_vec)
circle::BuiltinOptions circle_builtin_options(const luci::CircleNode *node)
bool check_size_limit(const flatbuffers::FlatBufferBuilder &fb, const uint64_t data_size)
void set_tensor_index(loco::Node *node, const CircleTensorIndex &tensor_id)
flatbuffers::Offset< flatbuffers::Vector< uint8_t > > circle_custom_options(flatbuffers::FlatBufferBuilder &fb, const luci::CircleNode *node)
circle::Padding getOpPadding(const loco::Padding2D *pad, const loco::Stride< 2 > *stride, const ShapeDescription &ifm, const ShapeDescription &ofm)
circle::DimensionType to_circle_dimensiontype(luci::DimensionType type)
circle::FullyConnectedOptionsWeightsFormat to_circle_weightsformat(luci::CircleFullyConnected::WeightsFormat format)
circle::SparseIndexVector to_circle_sparse_index_vector_type(luci::SparseIndexVectorType type)
circle::RoPEMode to_circle_rope(luci::RoPEMode mode)
circle::ActivationFunctionType to_circle_actfunc(luci::FusedActFunc func)
int32_t CircleTensorIndex
circle::TensorType to_circle_tensortype(loco::DataType type)
void clear_tensor_index(loco::Node *node)
CircleTensorIndex get_tensor_index(loco::Node *node)
circle::BuiltinOperator circle_builtin_operator(const luci::CircleNode *node)
circle::MirrorPadMode to_circle_mirrorpadmode(luci::MirrorPadMode mode)
std::string circle_custom_code(const luci::CircleNode *node)