tf.contrib.distribute.Monitor
Stay organized with collections
Save and categorize content based on your preferences.
Executes training steps, recovers and checkpoints.
tf.contrib.distribute.Monitor(
step_callable, session=None
)
Note that this class is particularly preliminary, experimental, and
expected to change.
Args |
step_callable
|
a training Step that's capable of signaling when done.
|
session
|
a Session instance that's needed for graph mode.
|
Raises |
ValueError
|
if session was provided for eager mode or not provided for
graph mode.
|
Methods
run_steps
View source
run_steps(
num_steps=None
)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.contrib.distribute.Monitor\n\n\u003cbr /\u003e\n\n|----------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/distribute/python/monitor.py#L26-L65) |\n\nExecutes training steps, recovers and checkpoints. \n\n tf.contrib.distribute.Monitor(\n step_callable, session=None\n )\n\nNote that this class is particularly preliminary, experimental, and\nexpected to change.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-----------------|----------------------------------------------------------|\n| `step_callable` | a training `Step` that's capable of signaling when done. |\n| `session` | a `Session` instance that's needed for graph mode. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Raises ------ ||\n|--------------|--------------------------------------------------------------------------|\n| `ValueError` | if `session` was provided for eager mode or not provided for graph mode. |\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### `run_steps`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/distribute/python/monitor.py#L58-L65) \n\n run_steps(\n num_steps=None\n )"]]