-
Notifications
You must be signed in to change notification settings - Fork 325
Expand file tree
/
Copy pathExecutionProviderCatalog.h
More file actions
34 lines (28 loc) · 988 Bytes
/
Copy pathExecutionProviderCatalog.h
File metadata and controls
34 lines (28 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE.md in the repo root for license information.
#pragma once
//
// Execution Provider Catalog Header
//
// Wrapper for Windows ML execution provider catalog ABI interfaces.
// Provides enumeration and discovery of available execution providers.
//
#include <wrl/client.h>
#include <vector>
#include "ExecutionProvider.h"
#include "Microsoft.Windows.AI.MachineLearning.h"
namespace CppAbiEPEnumerationSample
{
/// <summary>
/// Wrapper for the execution provider catalog
/// Handles provider discovery and enumeration
/// </summary>
class ExecutionProviderCatalog
{
public:
ExecutionProviderCatalog();
std::vector<ExecutionProvider> FindAllProviders() const;
private:
Microsoft::WRL::ComPtr<ABI::Microsoft::Windows::AI::MachineLearning::IExecutionProviderCatalog> m_catalog;
};
} // namespace CppAbiEPEnumerationSample