# Enum InferenceOptions.Accelerator

java.lang.Object
java.lang.Enum<InferenceOptions.Accelerator>
com.codename1.ai.inference.InferenceOptions.Accelerator

All Implemented Interfaces:
  `Comparable<InferenceOptions.Accelerator>`

Enclosing class:
  `InferenceOptions`

public static enum InferenceOptions.Accelerator extends Enum<InferenceOptions.Accelerator>
Execution targets understood by the portable inference API.

- ## Enum Constant Summary

  Enum Constants
  Enum Constant
  Description
  `AUTO`
  `CORE_ML`
  `CPU`
  `GPU`
  `NPU`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static InferenceOptions.Accelerator`
  `valueOf(String name)`
  Returns the enum constant of this type with the specified name.
  `static InferenceOptions.Accelerator[]`
  `values()`
  Returns an array containing the constants of this enum type, in the order they are declared.

  ### Methods inherited from class Enum

  `clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf`

  ### Methods inherited from class Object

  `getClass, notify, notifyAll, wait, wait, wait`

- ## Enum Constant Details

  - ### AUTO

    public static final InferenceOptions.Accelerator AUTO

  - ### CPU

    public static final InferenceOptions.Accelerator CPU

  - ### GPU

    public static final InferenceOptions.Accelerator GPU

  - ### NPU

    public static final InferenceOptions.Accelerator NPU

  - ### CORE_ML

    public static final InferenceOptions.Accelerator CORE_ML

- ## Method Details

  - ### values

    public static InferenceOptions.Accelerator[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.
    Returns:
      an array containing the constants of this enum type, in the order they are declared

  - ### valueOf

    public static InferenceOptions.Accelerator valueOf(String name)
    Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      `NullPointerException` - if the argument is null