From 4d1b6aeb25b70f4fd551e212e2d9ea94960728e1 Mon Sep 17 00:00:00 2001 From: nums11 Date: Tue, 19 Sep 2023 10:45:40 -0700 Subject: [PATCH] Remove comments --- .../core/providers/dml/dml_provider_factory.h | 22 ------------------- .../providers/dml/dml_provider_factory.cc | 2 -- 2 files changed, 24 deletions(-) diff --git a/include/onnxruntime/core/providers/dml/dml_provider_factory.h b/include/onnxruntime/core/providers/dml/dml_provider_factory.h index 0bdb50398a3f3..e8734e35b871a 100644 --- a/include/onnxruntime/core/providers/dml/dml_provider_factory.h +++ b/include/onnxruntime/core/providers/dml/dml_provider_factory.h @@ -119,28 +119,6 @@ struct OrtDmlApi { */ ORT_API2_STATUS(GetD3D12ResourceFromAllocation, _In_ OrtAllocator* provider, _In_ void* dml_resource, _Out_ ID3D12Resource** d3d_resource); - - //ORT_API2_STATUS(FreeGPUAllocation_2, _In_ void* dml_resource); - - //ORT_API2_STATUS(GetNPUDevice, _Out_ int* device_id); - - //ORT_API2_STATUS(GetMLDevice, _In_ bool npu_first, _Out_ int* device_ids); - - // enum class Ordering { - // SAME, // DXGI/DXCore as is today... - // NONE, // Take the first one - // GPUS_FIRST, - // NPUS_FIRST - // }; - - // Ordering foo[3][3] = { - // // Default, HighPerformance, LowPower - // /*None*/ { Ordering::GPUS_FIRST, Ordering::GPUS_FIRST, Ordering::NPUS_FIRST }, - // /*Gpu*/ { Ordering::SAME, Ordering::SAME , Ordering::SAME }, - // /*Npu*/ { Ordering::NONE, Ordering::NONE , Ordering::NONE }, - - // } - // null means default ORT_API2_STATUS(OrtSessionOptionsAppendExecutionProvider_DML2, _In_ OrtSessionOptions* options, OrtDmlDeviceOptions* device_opts); }; diff --git a/onnxruntime/core/providers/dml/dml_provider_factory.cc b/onnxruntime/core/providers/dml/dml_provider_factory.cc index 7a869c2fc0b82..48abbb61ee6c0 100644 --- a/onnxruntime/core/providers/dml/dml_provider_factory.cc +++ b/onnxruntime/core/providers/dml/dml_provider_factory.cc @@ -276,8 +276,6 @@ ORT_API_STATUS_IMPL(FreeGPUAllocation_2, _In_ void* ptr) { ORT_API_STATUS_IMPL(OrtSessionOptionsAppendExecutionProvider_DML2, _In_ OrtSessionOptions* options, OrtDmlDeviceOptions* device_opts) { API_IMPL_BEGIN - //options->provider_factories.push_back(onnxruntime::DMLProviderFactoryCreator::Create(device_id)); - OrtDmlPerformancePreference p = device_opts->p; OrtDmlDeviceFilter f = device_opts->f;