Enum Class OrtProvider

java.lang.Object
java.lang.Enum<OrtProvider>
ai.onnxruntime.OrtProvider
All Implemented Interfaces:
Serializable, Comparable<OrtProvider>, Constable

public enum OrtProvider extends Enum<OrtProvider>
The execution providers available through the Java API.
  • Enum Constant Details

    • CPU

      public static final OrtProvider CPU
      The CPU execution provider.
    • CUDA

      public static final OrtProvider CUDA
      CUDA execution provider for Nvidia GPUs.
    • DNNL

      public static final OrtProvider DNNL
      The Intel Deep Neural Network Library execution provider.
    • OPEN_VINO

      public static final OrtProvider OPEN_VINO
      The OpenVINO execution provider.
    • VITIS_AI

      public static final OrtProvider VITIS_AI
      The AMD/Xilinx VitisAI execution provider.
    • TENSOR_RT

      public static final OrtProvider TENSOR_RT
      The TensorRT execution provider for Nvidia GPUs.
    • NNAPI

      public static final OrtProvider NNAPI
      The Android NNAPI execution provider.
    • RK_NPU

      public static final OrtProvider RK_NPU
      The RockChip NPU execution provider.
    • DIRECT_ML

      public static final OrtProvider DIRECT_ML
      The Windows DirectML execution provider.
    • MI_GRAPH_X

      public static final OrtProvider MI_GRAPH_X
      The AMD MIGraphX execution provider.
    • ACL

      public static final OrtProvider ACL
      The ARM Compute Library execution provider.
    • ARM_NN

      public static final OrtProvider ARM_NN
      The ARM NN execution provider.
    • ROCM

      public static final OrtProvider ROCM
      The AMD ROCm execution provider.
    • CORE_ML

      public static final OrtProvider CORE_ML
      The Apple CoreML execution provider.
    • XNNPACK

      public static final OrtProvider XNNPACK
      The XNNPACK execution provider.
    • AZURE

      public static final OrtProvider AZURE
      The Azure remote endpoint execution provider.
    • QNN

      public static final OrtProvider QNN
      The QNN execution provider.
    • WEBGPU

      public static final OrtProvider WEBGPU
      The WebGPU execution provider
  • Method Details

    • values

      public static OrtProvider[] 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

      public static OrtProvider valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getName

      public String getName()
      Accessor for the internal name of this provider.
      Returns:
      The internal provider name.
    • mapFromName

      public static OrtProvider mapFromName(String name)
      Maps from the name string used by ONNX Runtime into the enum.
      Parameters:
      name - The provider name string.
      Returns:
      The enum constant.