From 14ba2fb83c8644556f45fba06749525ce5a4070a Mon Sep 17 00:00:00 2001 From: Patrice Vignola Date: Fri, 27 Sep 2024 12:39:45 -0700 Subject: [PATCH] [DML EP] Add intermediate tensor dumping for DML (#22246) ### Description ### Motivation and Context --- onnxruntime/core/framework/debug_node_inputs_outputs_utils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/core/framework/debug_node_inputs_outputs_utils.cc b/onnxruntime/core/framework/debug_node_inputs_outputs_utils.cc index 7665a90448..607969cd4c 100644 --- a/onnxruntime/core/framework/debug_node_inputs_outputs_utils.cc +++ b/onnxruntime/core/framework/debug_node_inputs_outputs_utils.cc @@ -333,7 +333,7 @@ void DumpTensor( } else { std::cout << tensor_location << "\n"; -#if defined(USE_CUDA) || defined(USE_ROCM) +#if defined(USE_CUDA) || defined(USE_ROCM) || defined(USE_DML) const auto data_type = tensor.DataType(); // Dumping GPU only when cuda is enabled. if (tensor_location.device.Type() == OrtDevice::GPU) {