# Class InferenceOptions

java.lang.Object
com.codename1.ai.inference.InferenceOptions

public final class InferenceOptions extends Object
LiteRT session configuration.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static enum`
  `InferenceOptions.Accelerator`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `InferenceOptions()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `InferenceOptions`
  `accelerator(InferenceOptions.Accelerator value)`
  `InferenceOptions`
  `allowFallback(boolean value)`
  `InferenceOptions.Accelerator`
  `getAccelerator()`
  `int`
  `getThreads()`
  `boolean`
  `isFallbackAllowed()`
  `InferenceOptions`
  `threads(int value)`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### InferenceOptions

    public InferenceOptions()

- ## Method Details

  - ### accelerator

    public InferenceOptions accelerator(InferenceOptions.Accelerator value)

  - ### threads

    public InferenceOptions threads(int value)

  - ### allowFallback

    public InferenceOptions allowFallback(boolean value)

  - ### getAccelerator

    public InferenceOptions.Accelerator getAccelerator()

  - ### getThreads

    public int getThreads()

  - ### isFallbackAllowed

    public boolean isFallbackAllowed()