Docs: Fix prefix for the fancy-linker.
authorBilly Lamberta <blamb@google.com>
Tue, 6 Mar 2018 21:51:07 +0000 (13:51 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Tue, 6 Mar 2018 21:55:45 +0000 (13:55 -0800)
PiperOrigin-RevId: 188075262

tensorflow/contrib/bayesflow/python/ops/custom_grad.py
tensorflow/contrib/bayesflow/python/ops/layers.py
tensorflow/contrib/bayesflow/python/ops/optimizers.py
tensorflow/contrib/estimator/python/estimator/extenders.py
tensorflow/contrib/learn/python/learn/utils/saved_model_export_utils.py
tensorflow/contrib/tpu/python/tpu/tpu_config.py
tensorflow/python/estimator/estimator.py
tensorflow/python/feature_column/feature_column.py
tensorflow/python/ops/array_ops.py
tensorflow/python/ops/resource_variable_ops.py
tensorflow/python/training/supervisor.py

index ca1ecb9..c8218c5 100644 (file)
@@ -14,7 +14,7 @@
 # ==============================================================================
 """Functions for specifying custom gradients.
 
-See ${python/contrib.bayesflow.custom_gradient}.
+See @{tf.contrib.bayesflow.custom_grad.custom_gradient}.
 """
 
 from __future__ import absolute_import
index a742b7c..610613d 100644 (file)
@@ -14,7 +14,7 @@
 # ==============================================================================
 """Probabilistic neural layers.
 
-See ${python/contrib.bayesflow.layers}.
+See @{tf.contrib.bayesflow.layers}.
 """
 
 from __future__ import absolute_import
index fb70628..bff6bb7 100644 (file)
@@ -14,7 +14,7 @@
 # ==============================================================================
 """Probabilistic optimizer modules.
 
-See ${python/contrib.bayesflow.optimizers}.
+See @{tf.contrib.bayesflow.optimizers}.
 """
 
 from __future__ import absolute_import
index c99bf8b..2b6881b 100644 (file)
@@ -33,7 +33,7 @@ _VALID_METRIC_FN_ARGS = set(['features', 'labels', 'predictions', 'config'])
 
 
 def add_metrics(estimator, metric_fn):
-  """Creates a new ${tf.estimator.Estimator} which has given metrics.
+  """Creates a new @{tf.estimator.Estimator} which has given metrics.
 
   Example:
 
@@ -60,7 +60,7 @@ def add_metrics(estimator, metric_fn):
   ```
 
   Args:
-    estimator: A ${tf.estimator.Estimator} object.
+    estimator: A @{tf.estimator.Estimator} object.
     metric_fn: A function which should obey the following signature:
       - Args: can only have following four arguments in any order:
         * predictions: Predictions `Tensor` or dict of `Tensor` created by given
@@ -78,7 +78,7 @@ def add_metrics(estimator, metric_fn):
          function, namely a `(metric_tensor, update_op)` tuple.
 
   Returns:
-      A new ${tf.estimator.Estimator} which has a union of original metrics with
+      A new @{tf.estimator.Estimator} which has a union of original metrics with
         given ones.
   """
   _verify_metric_fn_args(metric_fn)
@@ -161,14 +161,14 @@ def forward_features(estimator, keys=None):
   ```
 
   Args:
-    estimator: A ${tf.estimator.Estimator} object.
+    estimator: A @{tf.estimator.Estimator} object.
     keys: a `string` or a `list` of `string`. If it is `None`, all of the
       `features` in `dict` is forwarded to the `predictions`. If it is a
       `string`, only given key is forwarded. If it is a `list` of strings, all
       the given `keys` are forwarded.
 
   Returns:
-      A new ${tf.estimator.Estimator} which forwards features to predictions.
+      A new @{tf.estimator.Estimator} which forwards features to predictions.
 
   Raises:
     ValueError:
index 213619a..c7cdb41 100644 (file)
@@ -414,7 +414,7 @@ def make_export_strategy(serving_input_fn,
       `InputFnOps`.
     default_output_alternative_key: the name of the head to serve when an
       incoming serving request does not explicitly request a specific head.
-      Must be `None` if the estimator inherits from ${tf.estimator.Estimator}
+      Must be `None` if the estimator inherits from @{tf.estimator.Estimator}
       or for single-headed models.
     assets_extra: A dict specifying how to populate the assets.extra directory
       within the exported SavedModel.  Each key should give the destination
@@ -452,7 +452,7 @@ def make_export_strategy(serving_input_fn,
       The string path to the exported directory.
 
     Raises:
-      ValueError: If `estimator` is a ${tf.estimator.Estimator} instance
+      ValueError: If `estimator` is a @{tf.estimator.Estimator} instance
         and `default_output_alternative_key` was specified.
     """
     if isinstance(estimator, core_estimator.Estimator):
@@ -503,7 +503,7 @@ def make_parsing_export_strategy(feature_columns,
       that must be provided at serving time (excluding labels!).
     default_output_alternative_key: the name of the head to serve when an
       incoming serving request does not explicitly request a specific head.
-      Must be `None` if the estimator inherits from ${tf.estimator.Estimator}
+      Must be `None` if the estimator inherits from @{tf.estimator.Estimator}
       or for single-headed models.
     assets_extra: A dict specifying how to populate the assets.extra directory
       within the exported SavedModel.  Each key should give the destination
@@ -765,7 +765,7 @@ def extend_export_strategy(base_export_strategy,
       The string path to the SavedModel indicated by post_export_fn.
 
     Raises:
-      ValueError: If `estimator` is a ${tf.estimator.Estimator} instance
+      ValueError: If `estimator` is a @{tf.estimator.Estimator} instance
         and `default_output_alternative_key` was specified or if post_export_fn
         does not return a valid directory.
       RuntimeError: If unable to create temporary or final export directory.
index 7ceb406..009326e 100644 (file)
@@ -66,7 +66,7 @@ class TPUConfig(
       cores. This is required by model-parallelism which enables partitioning
       the model to multiple cores. For example, [2, 2, 1] means the model is
       partitioned across 4 cores which span two cores in both x and y
-      coordinates.  Please refer to ${tf.contrib.tpu.TopologyProto} for the
+      coordinates.  Please refer to @{tf.contrib.tpu.Topology} for the
       geometry of a TPU mesh.
     per_host_input_for_training: If `True`, `input_fn` is invoked Per-Host
       rather than Per-Core. With Per-Host input pipeline deployment, `input_fn`
index 6035147..3e20fc2 100644 (file)
@@ -721,7 +721,7 @@ class Estimator(object):
     """Creates the global step tensor in graph.
 
     The global step tensor must be an integer type with name 'global_step' and
-    be added to the collection ${tf.GraphKeys.GLOBAL_STEP}.
+    be added to the collection @{tf.GraphKeys.GLOBAL_STEP}.
 
     Args:
       graph: The graph in which to create the global step tensor.
index c416881..85971c9 100644 (file)
@@ -16,7 +16,7 @@
 
 FeatureColumns provide a high level abstraction for ingesting and representing
 features. FeatureColumns are also the primary way of encoding features for
-canned ${tf.estimator.Estimator}s.
+canned @{tf.estimator.Estimator}s.
 
 When using FeatureColumns with `Estimators`, the type of feature column you
 should choose depends on (1) the feature type and (2) the model type.
@@ -1626,7 +1626,7 @@ class _FeatureColumn(object):
 
     It is used for get_parsing_spec for `tf.parse_example`. Returned spec is a
     dict from keys ('string') to `VarLenFeature`, `FixedLenFeature`, and other
-    supported objects. Please check documentation of ${tf.parse_example} for all
+    supported objects. Please check documentation of @{tf.parse_example} for all
     supported spec objects.
 
     Let's say a Feature column depends on raw feature ('raw') and another
@@ -1677,7 +1677,7 @@ class _DenseColumn(_FeatureColumn):
       weight_collections: List of graph collections to which Variables (if any
         will be created) are added.
       trainable: If `True` also add variables to the graph collection
-        `GraphKeys.TRAINABLE_VARIABLES` (see ${tf.Variable}).
+        `GraphKeys.TRAINABLE_VARIABLES` (see @{tf.Variable}).
 
     Returns:
       `Tensor` of shape [batch_size] + `_variable_shape`.
@@ -1735,7 +1735,7 @@ class _CategoricalColumn(_FeatureColumn):
   WARNING: Do not subclass this layer unless you know what you are doing:
   the API is subject to future changes.
 
-  A categorical feature typically handled with a ${tf.SparseTensor} of IDs.
+  A categorical feature typically handled with a @{tf.SparseTensor} of IDs.
   """
   __metaclass__ = abc.ABCMeta
 
@@ -1770,7 +1770,7 @@ class _CategoricalColumn(_FeatureColumn):
       weight_collections: List of graph collections to which variables (if any
         will be created) are added.
       trainable: If `True` also add variables to the graph collection
-        `GraphKeys.TRAINABLE_VARIABLES` (see ${tf.get_variable}).
+        `GraphKeys.TRAINABLE_VARIABLES` (see @{tf.get_variable}).
     """
     pass
 
index bd1e84e..9108fe7 100644 (file)
@@ -794,8 +794,8 @@ def _SliceHelperVar(var, slice_spec):
   """Creates a slice helper object given a variable.
 
   This allows creating a sub-tensor from part of the current contents
-  of a variable.  See ${tf.Tensor$`Tensor.__getitem__`}
-  for detailed examples of slicing.
+  of a variable. See @{tf.Tensor.__getitem__} for detailed examples
+  of slicing.
 
   This function in addition also allows assignment to a sliced range.
   This is similar to `__setitem__` functionality in Python. However,
index 5b8af80..d0578f8 100644 (file)
@@ -153,7 +153,7 @@ def shape_safe_assign_variable_handle(handle, shape, value, name=None):
 class ResourceVariable(variables.Variable):
   """Variable based on resource handles.
 
-  See the ${variables} documentation for more details.
+  See the @{$python/state_ops$`Variables`} documentation for more details.
 
   A `ResourceVariable` allows you to maintain state across subsequent calls to
   session.run.
index d2ad347..86d2f1a 100644 (file)
@@ -45,7 +45,7 @@ class Supervisor(object):
   """A training helper that checkpoints models and computes summaries.
 
   This class is deprecated. Please use
-  ${tf.train.MonitoredTrainingSession} instead.
+  @{tf.train.MonitoredTrainingSession} instead.
 
   The Supervisor is a small wrapper around a `Coordinator`, a `Saver`,
   and a `SessionManager` that takes care of common needs of TensorFlow