W3cubDocs

/TensorFlow Python

Module: tf.contrib.eager

Defined in tensorflow/contrib/eager/python/tfe.py.

TensorFlow Eager execution prototype.

EXPERIMENTAL: APIs here are unstable and likely to change without notice.

To use, at program startup, call tfe.enable_eager_execution().

Modules

metrics module: Metrics namespace.

Classes

class Checkpoint: A utility class which groups Checkpointable objects.

class Checkpointable: Manages dependencies on other objects.

class CheckpointableSaver: Saves and restores a Checkpointable object and its dependencies.

class EagerVariableStore: Wrapper allowing functional layers to be used with eager execution.

class GradientTape: Record operations for automatic differentiation.

class Iterator: An iterator producing tf.Tensor objects from a tf.data.Dataset.

class Network: Represents the composition of a set of Layers.

class Saver: A tf.train.Saver adapter for use when eager execution is enabled.

class Sequential: Represents a linear sequence of Layers or functions.

class Variable: Variable based on resource handles.

Functions

add_execution_callback(...): Add an execution callback to the default eager context.

async_clear_error(...): Clears errors raised during ASYNC execution mode.

async_wait(...): Waits for ops dispatched in ASYNC mode to finish.

clear_execution_callbacks(...): Clear all execution callbacks from the default eager context.

custom_gradient(...): Decorator to define a function with a custom gradient.

defun(...): Decorator to compile func into graph_mode.

enable_eager_execution(...): Enables eager execution for the lifetime of this program.

executing_eagerly(...): Returns True if the current thread has eager execution enabled.

execution_mode(...): Context manager for setting execution mode for current thread.

get_optimizer_variables(...): Returns a list of variables for the given tf.train.Optimizer.

gradients_function(...): Returns a function which differentiates f with respect to params.

implicit_gradients(...): Returns a function which differentiates f with respect to variables.

implicit_value_and_gradients(...): Returns a function which differentiates f with respect to variables.

in_eager_mode(...): Returns True if the current thread has eager execution enabled.

inf_callback(...): A specialization of inf_nan_callback that checks for infs only.

inf_nan_callback(...): An execution callback that checks for infs and nans in output tensors.

list_devices(...): List the names of the available devices.

make_template(...): Make a template, optionally compiling func_ into a graph function.

nan_callback(...): A specialization of inf_nan_callback that checks for nans only.

num_gpus(...): Get the number of available GPU devices.

py_func(...): Wraps a python function into a TensorFlow op.

restore_network_checkpoint(...): Restore the Network from a checkpoint.

restore_variables_on_create(...): ContextManager that restores variables on creation.

run(...): Runs the program with an optional main function and argv list.

run_test_in_graph_and_eager_modes(...): Runs the test in both graph and eager modes.

save_network_checkpoint(...): Save variables from the Network to a checkpoint.

set_execution_mode(...): Sets execution mode for the current thread.

seterr(...): Set how abnormal conditions are handled by the default eager context.

value_and_gradients_function(...): Returns a function that computes f and its derivative w.r.t. params.

Other Members

ASYNC

DEVICE_PLACEMENT_EXPLICIT

DEVICE_PLACEMENT_SILENT

DEVICE_PLACEMENT_WARN

SYNC

__cached__

__loader__

__spec__

© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/contrib/eager