diff --git a/onnxruntime/core/framework/utils.cc b/onnxruntime/core/framework/utils.cc index bebfcb2c26..575c7e2fb4 100644 --- a/onnxruntime/core/framework/utils.cc +++ b/onnxruntime/core/framework/utils.cc @@ -400,9 +400,6 @@ common::Status CopyOneInputAcrossDevices(const SessionState& session_state, cons } MLValueCopyInfo copy_info; - std::vector node_info_vec; - ORT_RETURN_IF_ERROR(session_state.GetInputNodeInfo(input_name, node_info_vec)); - ORT_RETURN_IF_ERROR(CalculateStaticCopyInfoForFeed(session_state, input_name, copy_info)); copy_info.source_device = orig_mlvalue.Get().Location().device;