return std::move(shape_data);
}
+loco::NodeShape as_node_shape(const ShapeInferenceData *shapedata)
+{
+ switch (shapedata->domain())
+ {
+ case loco::Domain::Tensor:
+ return loco::NodeShape({shapedata->tensor_shape()});
+
+ case loco::Domain::Feature:
+ return loco::NodeShape({shapedata->feature_shape()});
+
+ case loco::Domain::Filter:
+ return loco::NodeShape({shapedata->filter_shape()});
+
+ case loco::Domain::DepthwiseFilter:
+ return loco::NodeShape({shapedata->depthwisefilter_shape()});
+
+ case loco::Domain::Bias:
+ return loco::NodeShape({shapedata->bias_shape()});
+ }
+
+ throw std::runtime_error("Unsupported Domain in as_node_shape");
+}
+
/**
* @brief Copy ShapeInferenceData from loco::Node pointer src to dst
*/