Back to Tensorflow

Model.Options

tensorflow/lite/g3doc/api_docs/java/org/tensorflow/lite/support/model/Model.Options.html

2.21.01.1 KB
Original Source

public static class Model.Options

Options for running the model. Configurable parameters includes:

  • device Model.Options.Builder.setDevice(Device) specifies the hardware to run the model. The default value is Model.Device.CPU.
  • numThreads Model.Options.Builder.setNumThreads(int) specifies the number of threads used by TFLite inference. It's only effective when device is set to Model.Device.CPU and default value is 1.

Nested Classes

| class | Model.Options.Builder | Builder of Model.Options. |

Inherited Methods

From class java.lang.Object

| boolean | equals(Object arg0) | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |