GpuDelegateFactory

public class GpuDelegateFactory

DelegateFactory for creating a GpuDelegate.

Nested Classes

class GpuDelegateFactory.Options Delegate options. 

Public Constructors

Public Methods

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

Inherited Methods

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