Back to Tensorflow

GpuDelegateFactory

tensorflow/lite/g3doc/api_docs/java/org/tensorflow/lite/gpu/GpuDelegateFactory.html

2.21.02.8 KB
Original Source

public class GpuDelegateFactory

DelegateFactory for creating a GpuDelegate.

Nested Classes

| class | GpuDelegateFactory.Options | Delegate options. |

Public Constructors

| | GpuDelegateFactory() | | | GpuDelegateFactory(GpuDelegateFactory.Options options) |

Public Methods

| Delegate | create(RuntimeFlavor runtimeFlavor) Create a Delegate for the given RuntimeFlavor.

|

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() |

From interface org.tensorflow.lite.DelegateFactory

| abstract Delegate | create(RuntimeFlavor runtimeFlavor) Create a Delegate for the given RuntimeFlavor.

|

Public Constructors

public GpuDelegateFactory ()

public GpuDelegateFactory (GpuDelegateFactory.Options options)

Parameters

| options | |

Public Methods

public Delegate create (RuntimeFlavor runtimeFlavor)

Create a Delegate for the given RuntimeFlavor.

Note for developers implementing this interface: Currently TF Lite in Google Play Services does not support external (developer-provided) delegates. Correspondingly, implementations of this method can expect to be called with RuntimeFlavor.APPLICATION.

Parameters

| runtimeFlavor | |