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

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