Remove redundant lines of code (#5883)

This commit is contained in:
Hariharan Seshadri 2020-11-20 14:29:11 -08:00 committed by GitHub
parent a622533ecc
commit c0471240b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -400,9 +400,6 @@ common::Status CopyOneInputAcrossDevices(const SessionState& session_state, cons
}
MLValueCopyInfo copy_info;
std::vector<SessionState::NodeInfo> 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<Tensor>().Location().device;