TrainingExampleOutput.Builder

public static final class TrainingExampleOutput.Builder
extends Object

java.lang.Object
   ↳ android.adservices.ondevicepersonalization.TrainingExampleOutput.Builder


TrainingExampleOutput 的构建器

总结

公共构造函数

Builder()

公共方法

TrainingExampleOutput.Builder addResumptionToken(byte[] value)
TrainingExampleOutput.Builder addTrainingExample(byte[] value)
TrainingExampleOutput build()

构建实例。

TrainingExampleOutput.Builder setResumptionTokens(List<byte[]> value)

与训练示例对应的恢复令牌字节数组的列表。

TrainingExampleOutput.Builder setTrainingExamples(List<byte[]> value)

训练示例字节数组的列表。

继承的方法

公共构造函数

公共方法

addResumptionToken

public TrainingExampleOutput.Builder addResumptionToken (byte[] value)

参数
value byte:此值不能为 null

开球回攻次数
TrainingExampleOutput.Builder 此值不能为 null

添加训练示例

public TrainingExampleOutput.Builder addTrainingExample (byte[] value)

参数
value byte:此值不能为 null

开球回攻次数
TrainingExampleOutput.Builder 此值不能为 null

build

public TrainingExampleOutput build ()

构建实例。调用此函数后,不应触碰此构建器!

开球回攻次数
TrainingExampleOutput 此值不能为 null

setResumptionTokens

public TrainingExampleOutput.Builder setResumptionTokens (List<byte[]> value)

与训练示例对应的恢复令牌字节数组的列表。最后一个处理的示例对应的恢复令牌将传递给 TrainingExampleInput 以支持恢复。resumptionToken 的长度应与 TrainingExample 一致。

参数
value List:此值不能为 null

开球回攻次数
TrainingExampleOutput.Builder 此值不能为 null

设置训练示例

public TrainingExampleOutput.Builder setTrainingExamples (List<byte[]> value)

训练示例字节数组的列表。默认情况下,格式为二进制 seriazlied tf.Example proto。示例大小上限为 50KB,以避免达到 Binder IPC 大小限制。

参数
value List:此值不能为 null

开球回攻次数
TrainingExampleOutput.Builder 此值不能为 null