|TensorFlow 1 version||View source on GitHub|
This enumeration represents optional conversion options.
Compat aliases for migration
See Migration guide for more details.
These conversion options are experimental. They are subject to change without notice and offer no guarantees.
optionals= tf.autograph.experimental.Feature.EQUALITY_OPERATORS @tf.function(experimental_autograph_options=optionals) def f(i): if i == 0: # EQUALITY_OPERATORS allows the use of == here. tf.print('i is zero')
||Enable all features.|
||Insert of control dependencies in the generated code.|
||Convert Tensor-dependent assert statements to tf.Assert.|
||Convert builtin functions applied to Tensors to their TF counterparts.|
||Whether to convert the comparison operators, like equality. This is soon to be deprecated as support is being added to the Tensor class.|
||Convert list idioms, like initializers, slices, append, etc.|
||Insert name scopes that name ops according to context, like the function they were defined in.|