};
/**
- * @brief Record the data type of each loco node
- */
-struct TypeContext
-{
- std::unordered_map<loco::Node *, tflite::TensorType> _node_to_type;
-};
-
-/**
* @brief Record the (tensor) shape of each loco node
*/
struct ShapeContext
};
// Prerequisites for tflite::Model object creation
-struct SerializedModelData final : public ShapeContext, public TypeContext, public SubGraphContext
+struct SerializedModelData final : public ShapeContext, public SubGraphContext
{
SerializedModelData() = default;
SerializedModelData(const SerializedModelData &) = delete;
return (dividend + divisor - 1) / divisor;
}
+/**
+ * @brief Record the data type of each loco node
+ */
+struct TypeContext
+{
+ std::unordered_map<loco::Node *, tflite::TensorType> _node_to_type;
+};
+
} // namespace
tflite::TensorType getOpResultType(loco::ConstGen *node, TypeContext &)