GpuDelegateFactory

公共类 GpuDelegateFactory

DelegateFactory,用于创建 GpuDelegate

嵌套类

类别 GpuDelegateFactory.Options 委托选项。

公共构造函数

公共方法

委托
create(RuntimeFlavor runtimeFlavor)
为给定 RuntimeFlavor 创建一个 Delegate

继承的方法

公共构造函数

public GpuDelegateFactory ()

public GpuDelegateFactory GpuDelegateFactory.Options 选项)

参数
选项

公共方法

public Delegate create (RuntimeFlavor runtimeFlavor)

为给定 RuntimeFlavor 创建一个 Delegate

实现此接口的开发者请注意:目前,Google Play 服务中的 TF Lite 不支持外部(开发者提供的)委托。相应地,此方法的实现应该可以使用 RuntimeFlavor.APPLICATION 进行调用。

参数
runtimeFlavor