aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-02-14 14:17:33 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-02-14 14:34:11 -0800
commit52028e44b25ce737dcb8be61fb9851342f6df4c4 (patch)
tree306d6913361ef7fb5a8c3e949c1446adc932ffe5 /tensorflow/python
parent7f198c0781232fb3765652fa41a0ed77f3c451bc (diff)
Update Python doc strings for the new doc generator pipeline.
Change: 147519957
Diffstat (limited to 'tensorflow/python')
-rw-r--r--tensorflow/python/framework/ops.py30
-rw-r--r--tensorflow/python/layers/layers.py12
-rw-r--r--tensorflow/python/ops/sdca_ops.py5
-rw-r--r--tensorflow/python/ops/sets.py2
-rw-r--r--tensorflow/python/ops/variables.py29
-rw-r--r--tensorflow/python/platform/resource_loader.py2
-rw-r--r--tensorflow/python/platform/sysconfig.py2
7 files changed, 4 insertions, 78 deletions
diff --git a/tensorflow/python/framework/ops.py b/tensorflow/python/framework/ops.py
index 84b20b7508..df466104fc 100644
--- a/tensorflow/python/framework/ops.py
+++ b/tensorflow/python/framework/ops.py
@@ -1576,8 +1576,6 @@ class RegisterGradient(object):
The decorator argument `op_type` is the string type of an
operation. This corresponds to the `OpDef.name` field for the proto
that defines the operation.
-
- @@__init__
"""
def __init__(self, op_type):
@@ -1925,16 +1923,6 @@ class Graph(object):
synchronization must be provided. Unless otherwise specified, all methods
are not thread-safe.
- @@__init__
- @@as_default
- @@as_graph_def
- @@finalize
- @@finalized
-
- @@control_dependencies
- @@device
- @@name_scope
-
A `Graph` instance supports an arbitrary number of "collections"
that are identified by name. For convenience when building a large
graph, collections can store groups of related objects: for
@@ -1942,24 +1930,6 @@ class Graph(object):
@{tf.GraphKeys.GLOBAL_VARIABLES}) for
all variables that are created during the construction of a graph. The caller
may define additional collections by specifying a new name.
-
- @@add_to_collection
- @@add_to_collections
- @@get_collection
- @@get_collection_ref
-
- @@as_graph_element
- @@get_operation_by_name
- @@get_tensor_by_name
- @@get_operations
-
- @@seed
- @@unique_name
- @@version
- @@graph_def_versions
-
- @@create_op
- @@gradient_override_map
"""
def __init__(self):
diff --git a/tensorflow/python/layers/layers.py b/tensorflow/python/layers/layers.py
index c25361d562..9f02757d5b 100644
--- a/tensorflow/python/layers/layers.py
+++ b/tensorflow/python/layers/layers.py
@@ -16,32 +16,20 @@
# pylint: disable=line-too-long
"""This library provides a set of high-level neural networks layers.
-## Core layers
-
@@dense
@@dropout
-
-## Convolutional layers
-
@@conv1d
@@conv2d
@@conv3d
@@separable_conv2d
@@conv2d_transpose
-
-## Pooling layers
-
@@average_pooling1d
@@max_pooling1d
@@average_pooling2d
@@max_pooling2d
@@average_pooling3d
@@max_pooling3d
-
-## Normalization layers
-
@@batch_normalization
-
"""
from __future__ import absolute_import
diff --git a/tensorflow/python/ops/sdca_ops.py b/tensorflow/python/ops/sdca_ops.py
index 3876bc9642..8b7e5abbc2 100644
--- a/tensorflow/python/ops/sdca_ops.py
+++ b/tensorflow/python/ops/sdca_ops.py
@@ -12,10 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
-"""## Script Language Operators.
-
-A Dual Cordinate Ascent optimizer for TensorFlow for training fast linear
-models.
+"""A Dual Coordinate Ascent optimizer library for training fast linear models.
@@sdca_optimizer
@@sdca_fprint
diff --git a/tensorflow/python/ops/sets.py b/tensorflow/python/ops/sets.py
index 1eff903355..ea4677befe 100644
--- a/tensorflow/python/ops/sets.py
+++ b/tensorflow/python/ops/sets.py
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
-"""Python layer for sets.
+"""Tensorflow set operations.
@@set_size
@@set_intersection
diff --git a/tensorflow/python/ops/variables.py b/tensorflow/python/ops/variables.py
index 3b1edcf6c9..dc73ad78a7 100644
--- a/tensorflow/python/ops/variables.py
+++ b/tensorflow/python/ops/variables.py
@@ -116,37 +116,8 @@ class Variable(object):
`trainable_variables()` returns the contents of this collection. The
various `Optimizer` classes use this collection as the default list of
variables to optimize.
-
-
- Creating a variable.
-
- @@__init__
- @@initialized_value
-
- Changing a variable value.
-
- @@assign
- @@assign_add
- @@assign_sub
- @@scatter_sub
- @@count_up_to
-
- @@eval
-
- Properties.
-
- @@name
- @@dtype
- @@get_shape
- @@device
- @@initializer
- @@graph
- @@op
"""
- # TODO(touts): Add @@value and @@ref in the docstring above once they are
- # ready for consumption.
-
def __init__(self,
initial_value=None,
trainable=True,
diff --git a/tensorflow/python/platform/resource_loader.py b/tensorflow/python/platform/resource_loader.py
index cee83c6185..880f14b8bb 100644
--- a/tensorflow/python/platform/resource_loader.py
+++ b/tensorflow/python/platform/resource_loader.py
@@ -13,7 +13,7 @@
# limitations under the License.
# ==============================================================================
-"""## Resource management.
+"""Resource management library.
@@get_data_files_path
@@get_path_to_datafile
diff --git a/tensorflow/python/platform/sysconfig.py b/tensorflow/python/platform/sysconfig.py
index 8b1e2c329d..7076516858 100644
--- a/tensorflow/python/platform/sysconfig.py
+++ b/tensorflow/python/platform/sysconfig.py
@@ -13,7 +13,7 @@
# limitations under the License.
# ==============================================================================
-"""## System configuration.
+"""System configuration library.
@@get_include
@@get_lib