Skip to content

Commit 6dc7ba4

Browse files
committed
Remove unnecessary header files
1 parent daff9cc commit 6dc7ba4

File tree

3 files changed

+0
-53
lines changed

3 files changed

+0
-53
lines changed

Samples/WinMLSamplesGallery/WinMLSamplesGalleryNative/DXResourceBinding.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,9 @@
44
#include "pch.h"
55
#include "DXResourceBinding.h"
66
#include "DXResourceBinding.g.cpp"
7-
#include <DirectXMath.h>
87
#include "stdafx.h"
9-
#include <commctrl.h>
10-
#include <mfapi.h>
11-
#include <iostream>
12-
13-
#include <cstdio>
14-
#include <algorithm>
15-
#include <numeric>
16-
#include <functional>
17-
#include <utility>
18-
#include <string_view>
19-
#include <span>
20-
#include <optional>
21-
#include <memory>
22-
23-
#include <windows.h>
24-
#include <d3d12.h>
25-
#include <wrl/client.h>
26-
#include "dml_provider_factory.h"
27-
#include "onnxruntime_cxx_api.h"
288
#include "ORTHelpers.h"
299

30-
#include "Win32Application.h"
31-
3210
#undef min
3311

3412
Microsoft::WRL::ComPtr<ID3D12Resource> d3dResource;

Samples/WinMLSamplesGallery/WinMLSamplesGalleryNative/ORTHelpers.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22
#include "ORTHelpers.h"
33
#undef min
44

5-
using namespace DirectX;
6-
7-
using TensorInt64Bit = winrt::Microsoft::AI::MachineLearning::TensorInt64Bit;
8-
using TensorKind = winrt::Microsoft::AI::MachineLearning::TensorKind;
9-
using LearningModelBuilder = winrt::Microsoft::AI::MachineLearning::Experimental::LearningModelBuilder;
10-
using LearningModelOperator = winrt::Microsoft::AI::MachineLearning::Experimental::LearningModelOperator;
11-
125
#define THROW_IF_FAILED(hr) {HRESULT localHr = (hr); if (FAILED(hr)) throw hr;}
136
#define RETURN_IF_FAILED(hr) {HRESULT localHr = (hr); if (FAILED(hr)) return hr;}
147
#define THROW_IF_NOT_OK(status) {auto localStatus = (status); if (localStatus) throw E_FAIL;}

Samples/WinMLSamplesGallery/WinMLSamplesGalleryNative/ORTHelpers.h

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,13 @@
11
#pragma once
22

3-
#include "winrt/Microsoft.AI.MachineLearning.h"
4-
#include "winrt/Microsoft.AI.MachineLearning.Experimental.h"
5-
6-
#include <DirectXMath.h>
7-
#include <commctrl.h>
8-
#include <mfapi.h>
9-
#include <iostream>
10-
11-
#include <cstdio>
123
#include <algorithm>
134
#include <numeric>
145
#include <functional>
15-
#include <utility>
16-
#include <string_view>
176
#include <span>
18-
#include <optional>
19-
#include <memory>
20-
21-
#include <windows.h>
22-
#include <d3d12.h>
237
#include <wrl/client.h>
248
#include "dml_provider_factory.h"
259
#include "onnxruntime_cxx_api.h"
2610

27-
#include <dxgi1_4.h>
28-
#include <D3Dcompiler.h>
29-
#include "d3dx12.h"
30-
#include <string>
31-
#include <wincodec.h>
32-
#include <ScreenGrab.h>
33-
34-
using namespace winrt::Microsoft::AI::MachineLearning;
3511
using namespace Microsoft::WRL;
3612

3713
Ort::Session CreateSession(const wchar_t* model_file_path);

0 commit comments

Comments
 (0)