tf.contrib.autograph.ConversionOptions

Immutable container for global conversion flags.

Attributes
recursive bool, whether to recursively convert any user functions or classes that the converted function may use.
user_requested bool, whether the conversion was explicitly requested by the user, as opposed to being performed as a result of other logic. This value always auto-resets resets to False in child conversions.
optional_features Union[Feature, Set[Feature]], controls the use of optional features in the conversion process. See Feature for available options.

Methods

as_tuple

View source

call_options

View source

Returns the corresponding options to be used for recursive conversion.

to_ast

View source

Returns a representation of this object as an AST node.

The AST node encodes a constructor that would create an object with the same contents.

Returns
ast.Node

uses

View source

__eq__

View source

Return self==value.

© 2020 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/versions/r1.15/api_docs/python/tf/contrib/autograph/ConversionOptions