mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-31 23:27:43 +00:00
Fix Memcpy transformer when dealing multiple EPs (#22413)
### Description Fix Memcpy transformer when dealing multiple EPs. --------- Co-authored-by: Scott McKay <Scott.McKay@microsoft.com> Co-authored-by: Scott McKay <skottmckay@gmail.com>
This commit is contained in:
parent
f610605a48
commit
c3a94c6c5f
1 changed files with 0 additions and 7 deletions
|
|
@ -256,13 +256,6 @@ void TransformerMemcpyImpl::ProcessDefs(onnxruntime::Node& node, const KernelReg
|
|||
}
|
||||
} else if (node_provider_type != kCudaExecutionProvider && node_provider_type != kTensorrtExecutionProvider &&
|
||||
node_provider_type != kRocmExecutionProvider && node_provider_type != kMIGraphXExecutionProvider) {
|
||||
// TODO: copy between devices? i.e. multiple GPUs
|
||||
if (node_provider_type != onnxruntime::kCpuExecutionProvider &&
|
||||
node_provider_type != onnxruntime::kVitisAIExecutionProvider &&
|
||||
!node_provider_type.empty()) {
|
||||
ORT_THROW("Execution type '", node_provider_type, "' doesn't support memcpy ");
|
||||
}
|
||||
|
||||
for (const auto* arg : node.InputDefs()) {
|
||||
if (arg->Exists())
|
||||
non_provider_input_defs_.insert(arg);
|
||||
|
|
|
|||
Loading…
Reference in a new issue