public final class RetrieveTPUEmbeddingMomentumParameters extends PrimitiveOp
An op that retrieves optimization parameters from embedding to host memory. Must be preceded by a ConfigureTPUEmbeddingHost op that sets up the correct embedding table configuration. For example, this op is used to retrieve updated parameters before saving a checkpoint.
Modifier and Type | Class and Description |
---|---|
static class |
RetrieveTPUEmbeddingMomentumParameters.Options
Optional attributes for
RetrieveTPUEmbeddingMomentumParameters |
operation
Modifier and Type | Method and Description |
---|---|
static RetrieveTPUEmbeddingMomentumParameters |
create(Scope scope,
Long numShards,
Long shardId,
RetrieveTPUEmbeddingMomentumParameters.Options... options)
Factory method to create a class wrapping a new RetrieveTPUEmbeddingMomentumParameters operation.
|
Output<Float> |
momenta()
Parameter momenta updated by the Momentum optimization algorithm.
|
Output<Float> |
parameters()
Parameter parameters updated by the Momentum optimization algorithm.
|
static RetrieveTPUEmbeddingMomentumParameters.Options |
tableId(Long tableId) |
static RetrieveTPUEmbeddingMomentumParameters.Options |
tableName(String tableName) |
equals, hashCode, op, toString
public static RetrieveTPUEmbeddingMomentumParameters create(Scope scope, Long numShards, Long shardId, RetrieveTPUEmbeddingMomentumParameters.Options... options)
scope
- current scopenumShards
- shardId
- options
- carries optional attributes valuespublic static RetrieveTPUEmbeddingMomentumParameters.Options tableId(Long tableId)
tableId
- public static RetrieveTPUEmbeddingMomentumParameters.Options tableName(String tableName)
tableName
- public Output<Float> parameters()
Copyright © 2022. All rights reserved.