訓練範例輸出.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 。 |
addTrainingExample
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
支援恢復功能。reResumeTokens 的長度應
並比對 trainExample
參數 | |
---|---|
value |
List :此值不能為 null 。 |
傳回 | |
---|---|
TrainingExampleOutput.Builder |
此值不能為 null 。 |
setTrainingExamples
public TrainingExampleOutput.Builder setTrainingExamples (List<byte[]> value)
訓練範例位元組陣列的清單。格式為二進位 預設使用 seriazlied tf.Example proto。樣本大小上限為 50 KB,以免達到上限 繫結機制處理序間通訊 (IPC) 大小限制,
參數 | |
---|---|
value |
List :此值不能為 null 。 |
傳回 | |
---|---|
TrainingExampleOutput.Builder |
此值不能為 null 。 |