This will change to use loco::NodeShape if exist as shape information in copy_shapedata()
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
if (dst_shapedata != nullptr)
return false;
+ // if src has loco::NodeShape, use it
+ if (loco::shape_known(src))
+ {
+ auto shape_data = make_shape_inference_data(loco::shape_get(src));
+ dst->annot(std::move(shape_data));
+
+ return true;
+ }
+
// if src doesn't have ShapeInferenceData, skip
auto src_shapedata = src->annot<ShapeInferenceData>();
if (src_shapedata == nullptr)