tf.contrib.autograph.convert
Stay organized with collections
Save and categorize content based on your preferences.
Decorator that compiles a function to use TensorFlow ops.
tf.contrib.autograph.convert(
recursive=False, optional_features=None, user_requested=True
)
The decorator is dynamic - it recompiles the target whenever the decorated
function is called. This means the parameter values are known at conversion.
It also means that repeated calls with different types of parameters will be
correctly processed.
Args |
recursive
|
bool, whether to recursively convert any functions or classes
that the converted function may use.
|
optional_features
|
converted.Feature, allows toggling optional or
experimental features. When set to None, only the core features are
enabled.
|
user_requested
|
bool, whether to ignore the conversion whitelist. See
ConversionOptions.user_requested.
|
Returns |
Callable, a decorator that converts the given function into an equivalent
function that uses TensorFlow ops.
|
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2020-10-01 UTC."],[],[]]