tf.raw_ops.RetrieveTPUEmbeddingADAMParameters

Retrieve ADAM embedding parameters.

tf.raw_ops.RetrieveTPUEmbeddingADAMParameters(
    num_shards, shard_id, table_id=-1, table_name='', config='', name=None
)

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.

Args:

  • num_shards: An int.
  • shard_id: An int.
  • table_id: An optional int that is >= -1. Defaults to -1.
  • table_name: An optional string. Defaults to "".
  • config: An optional string. Defaults to "".
  • name: A name for the operation (optional).

Returns:

A tuple of Tensor objects (parameters, momenta, velocities).

  • parameters: A Tensor of type float32.
  • momenta: A Tensor of type float32.
  • velocities: A Tensor of type float32.