From f40a875355557483aeae60ffcf757fc9626c752b Mon Sep 17 00:00:00 2001 From: Mark Daoust Date: Thu, 9 Aug 2018 07:03:39 -0700 Subject: Remove usage of magic-api-link syntax from source files. Back-ticks are now converted to links in the api_docs generator. With the new docs repo we're moving to simplify the docs pipeline, and make everything more readable. By doing this we no longer get test failures for symbols that don't exist (`tf.does_not_exist` will not get a link). There is also no way, not to set custom link text. That's okay. This is the result of the following regex replacement (+ a couple of manual edits.): re: @\{([^$].*?)(\$.+?)?} sub: `\1` Which does the following replacements: "@{tf.symbol}" --> "`tf.symbol`" "@{tf.symbol$link_text}" --> "`tf.symbol`" PiperOrigin-RevId: 208042358 --- tensorflow/python/framework/importer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tensorflow/python/framework/importer.py') diff --git a/tensorflow/python/framework/importer.py b/tensorflow/python/framework/importer.py index 687bfebd43..e48e67c8a1 100644 --- a/tensorflow/python/framework/importer.py +++ b/tensorflow/python/framework/importer.py @@ -344,9 +344,9 @@ def import_graph_def(graph_def, This function provides a way to import a serialized TensorFlow [`GraphDef`](https://www.tensorflow.org/code/tensorflow/core/framework/graph.proto) protocol buffer, and extract individual objects in the `GraphDef` as - @{tf.Tensor} and @{tf.Operation} objects. Once extracted, + `tf.Tensor` and `tf.Operation` objects. Once extracted, these objects are placed into the current default `Graph`. See - @{tf.Graph.as_graph_def} for a way to create a `GraphDef` + `tf.Graph.as_graph_def` for a way to create a `GraphDef` proto. Args: -- cgit v1.2.3