Back to Tensorflow

DelegateFactory

tensorflow/lite/g3doc/api_docs/java/org/tensorflow/lite/DelegateFactory.html

2.21.01.3 KB
Original Source

public interface DelegateFactory

| Known Indirect Subclasses

GpuDelegateFactory

| GpuDelegateFactory | DelegateFactory for creating a GpuDelegate. |

|

Allows creating delegates for different runtime flavors.

Public Methods

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

|

Public Methods

public abstract 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 | |