in which operations are executed. Note that @{tf.ConfigProto} is also
used to configure graph execution (via @{tf.Session}) and many options
within `tf.ConfigProto` are not implemented (or are irrelevant) when
- eager execution is enabled.
+ eager execution is enabled.
device_policy: (Optional.) Policy controlling how operations requiring
- inputs on a specific device (e.g., a GPU 0) handle inputs on a different
- device (e.g. GPU 1 or CPU). When set to None, an appropriate value will be
- picked automatically. The value picked may change between TensorFlow
- releases.
- Valid values:
-
+ inputs on a specific device (e.g., a GPU 0) handle inputs on a different
+ device (e.g. GPU 1 or CPU). When set to None, an appropriate value will be
+ picked automatically. The value picked may change between TensorFlow
+ releases.
+ Valid values:
- tf.contrib.eager.DEVICE_PLACEMENT_EXPLICIT: raises an error if the
placement is not correct.
-
- tf.contrib.eager.DEVICE_PLACEMENT_WARN: copies the tensors which are not
on the right device but logs a warning.
-
- tf.contrib.eager.DEVICE_PLACEMENT_SILENT: silently copies the tensors.
Note that this may hide performance problems as there is no notification
provided when operations are blocked on the tensor being copied between
devices.
-
- tf.contrib.eager.DEVICE_PLACEMENT_SILENT_FOR_INT32: silently copies
int32 tensors, raising errors on the other ones.
execution_mode: (Optional.) Policy controlling how operations dispatched are
actually executed. When set to None, an appropriate value will be picked
automatically. The value picked may change between TensorFlow releases.
Valid values:
-
- - tf.contrib.eager.SYNC: executes each operation synchronously.
-
- - tf.contrib.eager.ASYNC: executes each operation asynchronously. These
- operations may return "non-ready" handles.
+ - tf.contrib.eager.SYNC: executes each operation synchronously.
+ - tf.contrib.eager.ASYNC: executes each operation asynchronously. These
+ operations may return "non-ready" handles.
Raises:
ValueError: If eager execution is enabled after creating/executing a