public final class RetrieveTPUEmbeddingADAMParameters 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 |
RetrieveTPUEmbeddingADAMParameters.Options
Optional attributes for
RetrieveTPUEmbeddingADAMParameters |
operation
Modifier and Type | Method and Description |
---|---|
static RetrieveTPUEmbeddingADAMParameters |
create(Scope scope,
Long numShards,
Long shardId,
RetrieveTPUEmbeddingADAMParameters.Options... options)
Factory method to create a class wrapping a new RetrieveTPUEmbeddingADAMParameters operation.
|
Output<Float> |
momenta()
Parameter momenta updated by the ADAM optimization algorithm.
|
Output<Float> |
parameters()
Parameter parameters updated by the ADAM optimization algorithm.
|
static RetrieveTPUEmbeddingADAMParameters.Options |
tableId(Long tableId) |
static RetrieveTPUEmbeddingADAMParameters.Options |
tableName(String tableName) |
Output<Float> |
velocities()
Parameter velocities updated by the ADAM optimization algorithm.
|
equals, hashCode, op, toString
public static RetrieveTPUEmbeddingADAMParameters create(Scope scope, Long numShards, Long shardId, RetrieveTPUEmbeddingADAMParameters.Options... options)
scope
- current scopenumShards
- shardId
- options
- carries optional attributes valuespublic static RetrieveTPUEmbeddingADAMParameters.Options tableId(Long tableId)
tableId
- public static RetrieveTPUEmbeddingADAMParameters.Options tableName(String tableName)
tableName
- public Output<Float> parameters()
public Output<Float> momenta()
Copyright © 2022. All rights reserved.