if (src_shapedata == nullptr)
return false;
- auto shape_data = stdex::make_unique<ShapeInferenceData>();
- copy_shape_values(src_shapedata, shape_data.get());
+ auto shape_data = make_shape_inference_data(src_shapedata);
dst->annot(std::move(shape_data));
return true;
// shape inference is already done for Pull
return false;
}
- auto shape_data = stdex::make_unique<ShapeInferenceData>();
// Pull itself has shape information, copy them
- copy_shape_values(node, shape_data.get());
+ auto shape_data = make_shape_inference_data(node);
node->annot(std::move(shape_data));
return true;
}
// TFConst itself has shape information, copy them
- auto shape_data = stdex::make_unique<ShapeInferenceData>();
- copy_shape_values(node, shape_data.get());
+ auto shape_data = make_shape_inference_data(node);
node->annot(std::move(shape_data));
{
if (shapedata != nullptr)
return false;
- auto shape_data = stdex::make_unique<ShapeInferenceData>();
- copy_shape_values(node, shape_data.get()); // copy node's TensorShape info to ShapeInferenceData
+ auto shape_data = make_shape_inference_data(node);
node->annot(std::move(shape_data));
return true;