File tree Expand file tree Collapse file tree 3 files changed +0
-53
lines changed
Samples/WinMLSamplesGallery/WinMLSamplesGalleryNative Expand file tree Collapse file tree 3 files changed +0
-53
lines changed Original file line number Diff line number Diff line change 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
3412Microsoft::WRL::ComPtr<ID3D12Resource> d3dResource;
Original file line number Diff line number Diff line change 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;}
Original file line number Diff line number Diff line change 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;
3511using namespace Microsoft ::WRL;
3612
3713Ort::Session CreateSession (const wchar_t * model_file_path);
You can’t perform that action at this time.
0 commit comments