Module: tf.contrib.autograph
Stay organized with collections
Save and categorize content based on your preferences.
This is the legacy module for AutoGraph, kept for backward compatibility.
New users should instead use tensorflow.python.autograph
.
Classes
class AutoGraphError
: Base class for all AutoGraph exceptions.
class ConversionOptions
: Immutable container for global conversion flags.
class Feature
: This enumeration represents optional conversion options.
class StackTraceMapper
: Remaps generated code to code it originated from.
Functions
convert(...)
: Decorator that compiles a function to use TensorFlow ops.
converted_call(...)
: Compiles a function call inline.
do_not_convert(...)
: Decorator that suppresses the conversion of a function.
set_element_type(...)
: Indicates that the entity is expected hold items of specified type/shape.
stack(...)
: Stacks the input, if it admits the notion of stacking.
to_code(...)
: Similar to to_graph
, but returns Python source code as a string.
to_graph(...)
: Converts a Python entity into a TensorFlow graph.
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."],[],[],null,["# Module: tf.contrib.autograph\n\n\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/autograph/__init__.py) |\n\nThis is the legacy module for AutoGraph, kept for backward compatibility.\n\nNew users should instead use `tensorflow.python.autograph`.\n\nClasses\n-------\n\n[`class AutoGraphError`](../../tf/contrib/autograph/AutoGraphError): Base class for all AutoGraph exceptions.\n\n[`class ConversionOptions`](../../tf/contrib/autograph/ConversionOptions): Immutable container for global conversion flags.\n\n[`class Feature`](../../tf/autograph/experimental/Feature): This enumeration represents optional conversion options.\n\n[`class StackTraceMapper`](../../tf/contrib/autograph/StackTraceMapper): Remaps generated code to code it originated from.\n\nFunctions\n---------\n\n[`convert(...)`](../../tf/contrib/autograph/convert): Decorator that compiles a function to use TensorFlow ops.\n\n[`converted_call(...)`](../../tf/contrib/autograph/converted_call): Compiles a function call inline.\n\n[`do_not_convert(...)`](../../tf/autograph/experimental/do_not_convert): Decorator that suppresses the conversion of a function.\n\n[`set_element_type(...)`](../../tf/contrib/autograph/set_element_type): Indicates that the entity is expected hold items of specified type/shape.\n\n[`stack(...)`](../../tf/contrib/autograph/stack): Stacks the input, if it admits the notion of stacking.\n\n[`to_code(...)`](../../tf/compat/v2/autograph/to_code): Similar to `to_graph`, but returns Python source code as a string.\n\n[`to_graph(...)`](../../tf/compat/v2/autograph/to_graph): Converts a Python entity into a TensorFlow graph."]]