diff --git a/onnxruntime/core/providers/dml/DmlExecutionProvider/src/ExecutionProvider.cpp b/onnxruntime/core/providers/dml/DmlExecutionProvider/src/ExecutionProvider.cpp index f01f9de534..ca3f2475a1 100644 --- a/onnxruntime/core/providers/dml/DmlExecutionProvider/src/ExecutionProvider.cpp +++ b/onnxruntime/core/providers/dml/DmlExecutionProvider/src/ExecutionProvider.cpp @@ -562,13 +562,13 @@ namespace Dml TensorWrapper srcWrapper = TensorWrapper( const_cast(&src_dst_pairs[i].src.get()), - false, + true, provider, true); TensorWrapper dstWrapper = TensorWrapper( &src_dst_pairs[i].dst.get(), - true, + false, provider, true);