Package ai.onnxruntime
Enum Class OrtProvider
- All Implemented Interfaces:
Serializable,Comparable<OrtProvider>,Constable
The execution providers available through the Java API.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe ARM Compute Library execution provider.The ARM NN execution provider.The Azure remote endpoint execution provider.The Apple CoreML execution provider.The CPU execution provider.CUDA execution provider for Nvidia GPUs.The Windows DirectML execution provider.The Intel Deep Neural Network Library execution provider.The AMD MIGraphX execution provider.The Android NNAPI execution provider.The OpenVINO execution provider.The QNN execution provider.The RockChip NPU execution provider.The AMD ROCm execution provider.The TensorRT execution provider for Nvidia GPUs.The AMD/Xilinx VitisAI execution provider.The WebGPU execution providerThe XNNPACK execution provider. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Accessor for the internal name of this provider.static OrtProvidermapFromName(String name) Maps from the name string used by ONNX Runtime into the enum.static OrtProviderReturns the enum constant of this class with the specified name.static OrtProvider[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CPU
The CPU execution provider. -
CUDA
CUDA execution provider for Nvidia GPUs. -
DNNL
The Intel Deep Neural Network Library execution provider. -
OPEN_VINO
The OpenVINO execution provider. -
VITIS_AI
The AMD/Xilinx VitisAI execution provider. -
TENSOR_RT
The TensorRT execution provider for Nvidia GPUs. -
NNAPI
The Android NNAPI execution provider. -
RK_NPU
The RockChip NPU execution provider. -
DIRECT_ML
The Windows DirectML execution provider. -
MI_GRAPH_X
The AMD MIGraphX execution provider. -
ACL
The ARM Compute Library execution provider. -
ARM_NN
The ARM NN execution provider. -
ROCM
The AMD ROCm execution provider. -
CORE_ML
The Apple CoreML execution provider. -
XNNPACK
The XNNPACK execution provider. -
AZURE
The Azure remote endpoint execution provider. -
QNN
The QNN execution provider. -
WEBGPU
The WebGPU execution provider
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getName
Accessor for the internal name of this provider.- Returns:
- The internal provider name.
-
mapFromName
Maps from the name string used by ONNX Runtime into the enum.- Parameters:
name- The provider name string.- Returns:
- The enum constant.
-