HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
constants.h
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // Licensed under the MIT License.
3 
4 #pragma once
5 
6 #include <stddef.h> // needed for size_t on some platforms
7 
8 namespace onnxruntime {
9 
10 constexpr const char* kNoOp = "NoOp";
11 constexpr const char* kConstant = "Constant";
12 constexpr const char* kFunctionOp = "_kFunctionOp";
13 constexpr const char* kConstantValue = "value";
14 constexpr const char* kOnnxDomain = "";
15 // NOTE: Node::Init converts kOnnxDomainAlias to kOnnxDomain, so all Node instances use kOnnxDomain.
16 constexpr const char* kOnnxDomainAlias = "ai.onnx";
17 constexpr const char* kMLDomain = "ai.onnx.ml";
18 constexpr const char* kMSDomain = "com.microsoft";
19 constexpr const char* kPytorchAtenDomain = "org.pytorch.aten";
20 constexpr const char* kMSExperimentalDomain = "com.microsoft.experimental";
21 constexpr const char* kMSNchwcDomain = "com.microsoft.nchwc";
22 constexpr const char* kMSInternalNHWCDomain = "com.ms.internal.nhwc";
23 constexpr const char* kMSDmlDomain = "com.microsoft.dml";
24 constexpr const char* kNGraphDomain = "com.intel.ai";
25 constexpr const char* kMIGraphXDomain = "";
26 constexpr const char* kVitisAIDomain = "com.xilinx";
27 
28 // This is moved from the OrtApis::GetAvailableProviders implementation
29 // where it is enforced
30 constexpr size_t kMaxExecutionProviderNameLen = 30;
31 
32 constexpr const char* kCpuExecutionProvider = "CPUExecutionProvider";
33 constexpr const char* kCudaExecutionProvider = "CUDAExecutionProvider";
34 constexpr const char* kDnnlExecutionProvider = "DnnlExecutionProvider";
35 constexpr const char* kOpenVINOExecutionProvider = "OpenVINOExecutionProvider";
36 constexpr const char* kVitisAIExecutionProvider = "VitisAIExecutionProvider";
37 constexpr const char* kTensorrtExecutionProvider = "TensorrtExecutionProvider";
38 constexpr const char* kNnapiExecutionProvider = "NnapiExecutionProvider";
39 constexpr const char* kQnnExecutionProvider = "QNNExecutionProvider";
40 constexpr const char* kRknpuExecutionProvider = "RknpuExecutionProvider";
41 constexpr const char* kDmlExecutionProvider = "DmlExecutionProvider";
42 constexpr const char* kMIGraphXExecutionProvider = "MIGraphXExecutionProvider";
43 constexpr const char* kAclExecutionProvider = "ACLExecutionProvider";
44 constexpr const char* kArmNNExecutionProvider = "ArmNNExecutionProvider";
45 constexpr const char* kRocmExecutionProvider = "ROCMExecutionProvider";
46 constexpr const char* kCoreMLExecutionProvider = "CoreMLExecutionProvider";
47 constexpr const char* kJsExecutionProvider = "JsExecutionProvider";
48 constexpr const char* kSnpeExecutionProvider = "SNPEExecutionProvider";
49 constexpr const char* kTvmExecutionProvider = "TvmExecutionProvider";
50 constexpr const char* kXnnpackExecutionProvider = "XnnpackExecutionProvider";
51 constexpr const char* kWebNNExecutionProvider = "WebNNExecutionProvider";
52 constexpr const char* kCannExecutionProvider = "CANNExecutionProvider";
53 constexpr const char* kAzureExecutionProvider = "AzureExecutionProvider";
54 
55 constexpr const char* kExecutionProviderSharedLibraryPath = "shared_lib_path";
56 constexpr const char* kExecutionProviderSharedLibraryEntry = "provider_factory_entry_point";
57 
58 // For Priority based graph topology sorting.
59 constexpr const char* kBackwardNodeAttributeName = "__backwardpass";
60 
61 } // namespace onnxruntime
constexpr const char * kSnpeExecutionProvider
Definition: constants.h:48
constexpr const char * kFunctionOp
Definition: constants.h:12
constexpr const char * kOnnxDomainAlias
Definition: constants.h:16
constexpr const char * kVitisAIExecutionProvider
Definition: constants.h:36
constexpr const char * kQnnExecutionProvider
Definition: constants.h:39
constexpr const char * kWebNNExecutionProvider
Definition: constants.h:51
constexpr const char * kAclExecutionProvider
Definition: constants.h:43
constexpr const char * kMSDmlDomain
Definition: constants.h:23
constexpr const char * kExecutionProviderSharedLibraryPath
Definition: constants.h:55
constexpr const char * kMSInternalNHWCDomain
Definition: constants.h:22
constexpr const char * kMLDomain
Definition: constants.h:17
constexpr const char * kXnnpackExecutionProvider
Definition: constants.h:50
constexpr const char * kTensorrtExecutionProvider
Definition: constants.h:37
constexpr const char * kMSDomain
Definition: constants.h:18
constexpr const char * kNoOp
Definition: constants.h:10
constexpr size_t kMaxExecutionProviderNameLen
Definition: constants.h:30
constexpr const char * kExecutionProviderSharedLibraryEntry
Definition: constants.h:56
constexpr const char * kConstant
Definition: constants.h:11
constexpr const char * kCoreMLExecutionProvider
Definition: constants.h:46
constexpr const char * kCudaExecutionProvider
Definition: constants.h:33
constexpr const char * kRknpuExecutionProvider
Definition: constants.h:40
constexpr const char * kArmNNExecutionProvider
Definition: constants.h:44
constexpr const char * kDmlExecutionProvider
Definition: constants.h:41
constexpr const char * kBackwardNodeAttributeName
Definition: constants.h:59
constexpr const char * kConstantValue
Definition: constants.h:13
constexpr const char * kRocmExecutionProvider
Definition: constants.h:45
constexpr const char * kAzureExecutionProvider
Definition: constants.h:53
constexpr const char * kOnnxDomain
Definition: constants.h:14
constexpr const char * kMSNchwcDomain
Definition: constants.h:21
constexpr const char * kMIGraphXDomain
Definition: constants.h:25
constexpr const char * kNnapiExecutionProvider
Definition: constants.h:38
constexpr const char * kCpuExecutionProvider
Definition: constants.h:32
constexpr const char * kNGraphDomain
Definition: constants.h:24
constexpr const char * kOpenVINOExecutionProvider
Definition: constants.h:35
constexpr const char * kJsExecutionProvider
Definition: constants.h:47
constexpr const char * kDnnlExecutionProvider
Definition: constants.h:34
constexpr const char * kPytorchAtenDomain
Definition: constants.h:19
constexpr const char * kCannExecutionProvider
Definition: constants.h:52
constexpr const char * kVitisAIDomain
Definition: constants.h:26
constexpr const char * kMSExperimentalDomain
Definition: constants.h:20
constexpr const char * kTvmExecutionProvider
Definition: constants.h:49
constexpr const char * kMIGraphXExecutionProvider
Definition: constants.h:42