Commit 6994693d authored by Ruoxin Sang's avatar Ruoxin Sang Committed by A. Unique TensorFlower
Browse files

Internal change

PiperOrigin-RevId: 324919232
parent 9b6cd106
...@@ -34,7 +34,7 @@ class AbstractTrainer(tf.Module, metaclass=abc.ABCMeta): ...@@ -34,7 +34,7 @@ class AbstractTrainer(tf.Module, metaclass=abc.ABCMeta):
large in Eager mode. It is usually encouraged to create a host training loop large in Eager mode. It is usually encouraged to create a host training loop
(e.g. using a `tf.range` wrapping `strategy.run` inside a (e.g. using a `tf.range` wrapping `strategy.run` inside a
`tf.function`) in the TPU case. For the cases that don't require host `tf.function`) in the TPU case. For the cases that don't require host
training loop to acheive peak performance, users can just implement a simple training loop to achieve peak performance, users can just implement a simple
python loop to drive each step. python loop to drive each step.
Args: Args:
......
...@@ -432,7 +432,7 @@ def train_function_with_summaries(*args, **kwargs): ...@@ -432,7 +432,7 @@ def train_function_with_summaries(*args, **kwargs):
return decorator return decorator
def get_value(x) -> np.ndarray: def get_value(x) -> np.number:
"""Returns the value of a variable/tensor. """Returns the value of a variable/tensor.
Args: Args:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment