Skip to content

Commit a848183

Browse files
annarevtensorflower-gardener
authored andcommitted
Removing @@ comments from core TensorFlow. They are no longer needed for exporting symbols to the TensorFlow API.
PiperOrigin-RevId: 194426855
1 parent 6b6976e commit a848183

41 files changed

Lines changed: 20 additions & 999 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tensorflow/python/client/client_lib.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,6 @@
1616
"""Support for launching graphs and executing operations.
1717
1818
See the @{$python/client} guide.
19-
20-
@@Session
21-
@@InteractiveSession
22-
@@get_default_session
23-
@@OpError
24-
@@CancelledError
25-
@@UnknownError
26-
@@InvalidArgumentError
27-
@@DeadlineExceededError
28-
@@NotFoundError
29-
@@AlreadyExistsError
30-
@@PermissionDeniedError
31-
@@UnauthenticatedError
32-
@@ResourceExhaustedError
33-
@@FailedPreconditionError
34-
@@AbortedError
35-
@@OutOfRangeError
36-
@@UnimplementedError
37-
@@InternalError
38-
@@UnavailableError
39-
@@DataLossError
40-
@@exception_type_from_error_code
41-
@@error_code_from_exception_type
42-
@@raise_exception_on_not_ok_status
4319
"""
4420

4521
from __future__ import absolute_import

tensorflow/python/data/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@
1515
"""`tf.data.Dataset` API for input pipelines.
1616
1717
See the @{$datasets$Importing Data} Programmer's Guide for an overview.
18-
19-
@@Dataset
20-
@@Iterator
21-
@@FixedLengthRecordDataset
22-
@@TextLineDataset
23-
@@TFRecordDataset
2418
"""
2519

2620
from __future__ import absolute_import

tensorflow/python/framework/constant_op.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,6 @@
1515
"""Operations that generate constants.
1616
1717
See the @{$python/constant_op$constants guide}.
18-
19-
@@zeros
20-
@@zeros_like
21-
@@ones
22-
@@ones_like
23-
@@fill
24-
@@constant
25-
@@linspace
26-
@@range
27-
@@random_normal
28-
@@truncated_normal
29-
@@random_uniform
30-
@@random_shuffle
31-
@@random_crop
32-
@@multinomial
33-
@@random_gamma
34-
@@random_poisson
35-
@@set_random_seed
3618
"""
3719

3820
# Must be separate from array_ops to avoid a cyclic dependency.

tensorflow/python/framework/framework_lib.py

Lines changed: 1 addition & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -14,59 +14,7 @@
1414
# ==============================================================================
1515

1616
# pylint: disable=unused-import,g-bad-import-order
17-
"""Classes and functions for building TensorFlow graphs.
18-
19-
## Core graph data structures
20-
21-
@@Graph
22-
@@Operation
23-
@@Tensor
24-
25-
## Tensor types
26-
27-
@@DType
28-
@@as_dtype
29-
30-
## Utility functions
31-
32-
@@device
33-
@@container
34-
@@name_scope
35-
@@colocate_with
36-
@@control_dependencies
37-
@@convert_to_tensor
38-
@@convert_to_tensor_or_indexed_slices
39-
@@convert_to_tensor_or_sparse_tensor
40-
@@get_default_graph
41-
@@reset_default_graph
42-
@@import_graph_def
43-
@@load_file_system_library
44-
@@load_op_library
45-
@@make_tensor_proto
46-
@@make_ndarray
47-
48-
## Graph collections
49-
50-
@@add_to_collection
51-
@@add_to_collections
52-
@@get_collection
53-
@@get_collection_ref
54-
@@GraphKeys
55-
56-
## Defining new operations
57-
58-
@@RegisterGradient
59-
@@NotDifferentiable
60-
@@NoGradient
61-
@@TensorShape
62-
@@Dimension
63-
@@op_scope
64-
@@get_seed
65-
66-
## For libraries building on TensorFlow
67-
68-
@@register_tensor_conversion_function
69-
"""
17+
"""Classes and functions for building TensorFlow graphs."""
7018

7119
from __future__ import absolute_import
7220
from __future__ import division

tensorflow/python/layers/layers.py

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -14,48 +14,7 @@
1414
# ==============================================================================
1515

1616
# pylint: disable=line-too-long
17-
"""This library provides a set of high-level neural networks layers.
18-
19-
@@Dense
20-
@@Dropout
21-
@@Flatten
22-
@@Conv1D
23-
@@Conv2D
24-
@@Conv3D
25-
@@SeparableConv1D
26-
@@SeparableConv2D
27-
@@Conv2DTranspose
28-
@@Conv3DTranspose
29-
@@AveragePooling1D
30-
@@MaxPooling1D
31-
@@AveragePooling2D
32-
@@MaxPooling2D
33-
@@AveragePooling3D
34-
@@MaxPooling3D
35-
@@BatchNormalization
36-
37-
@@Layer
38-
@@Input
39-
@@InputSpec
40-
41-
@@dense
42-
@@dropout
43-
@@flatten
44-
@@conv1d
45-
@@conv2d
46-
@@conv3d
47-
@@separable_conv1d
48-
@@separable_conv2d
49-
@@conv2d_transpose
50-
@@conv3d_transpose
51-
@@average_pooling1d
52-
@@max_pooling1d
53-
@@average_pooling2d
54-
@@max_pooling2d
55-
@@average_pooling3d
56-
@@max_pooling3d
57-
@@batch_normalization
58-
"""
17+
"""This library provides a set of high-level neural networks layers."""
5918

6019
from __future__ import absolute_import
6120
from __future__ import division

tensorflow/python/lib/io/python_io.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
"""Python functions for directly manipulating TFRecord-formatted files.
1717
1818
See the @{$python/python_io} guide.
19-
20-
@@TFRecordWriter
21-
@@tf_record_iterator
22-
@@TFRecordCompressionType
23-
@@TFRecordOptions
2419
"""
2520

2621
from __future__ import absolute_import

tensorflow/python/ops/array_ops.py

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -16,69 +16,6 @@
1616
"""Support for manipulating tensors.
1717
1818
See the @{$python/array_ops} guide.
19-
20-
@@string_to_number
21-
@@to_double
22-
@@to_float
23-
@@to_bfloat16
24-
@@to_int32
25-
@@to_int64
26-
@@cast
27-
@@bitcast
28-
@@saturate_cast
29-
@@broadcast_dynamic_shape
30-
@@broadcast_static_shape
31-
@@shape
32-
@@shape_n
33-
@@size
34-
@@rank
35-
@@reshape
36-
@@squeeze
37-
@@expand_dims
38-
@@unravel_index
39-
@@meshgrid
40-
@@slice
41-
@@strided_slice
42-
@@split
43-
@@tile
44-
@@pad
45-
@@concat
46-
@@stack
47-
@@parallel_stack
48-
@@unstack
49-
@@reverse_sequence
50-
@@reverse
51-
@@reverse_v2
52-
@@transpose
53-
@@extract_image_patches
54-
@@space_to_batch_nd
55-
@@space_to_batch
56-
@@required_space_to_batch_paddings
57-
@@batch_to_space_nd
58-
@@batch_to_space
59-
@@space_to_depth
60-
@@depth_to_space
61-
@@gather
62-
@@gather_nd
63-
@@unique_with_counts
64-
@@scatter_nd
65-
@@dynamic_partition
66-
@@dynamic_stitch
67-
@@boolean_mask
68-
@@one_hot
69-
@@sequence_mask
70-
@@dequantize
71-
@@quantize
72-
@@quantize_v2
73-
@@quantized_concat
74-
@@setdiff1d
75-
@@guarantee_const
76-
@@fake_quant_with_min_max_args
77-
@@fake_quant_with_min_max_args_gradient
78-
@@fake_quant_with_min_max_vars
79-
@@fake_quant_with_min_max_vars_gradient
80-
@@fake_quant_with_min_max_vars_per_channel
81-
@@fake_quant_with_min_max_vars_per_channel_gradient
8219
"""
8320

8421
from __future__ import absolute_import

tensorflow/python/ops/bitwise_ops.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,7 @@
1313
# limitations under the License.
1414
# ==============================================================================
1515

16-
"""Operations for manipulating the binary representations of integers.
17-
18-
@@bitwise_and
19-
@@bitwise_or
20-
@@bitwise_xor
21-
@@invert
22-
@@left_shift
23-
@@right_shift
24-
"""
16+
"""Operations for manipulating the binary representations of integers."""
2517

2618
from __future__ import absolute_import
2719
from __future__ import division

tensorflow/python/ops/check_ops.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,6 @@
1616
"""Asserts and Boolean Checks.
1717
1818
See the @{$python/check_ops} guide.
19-
20-
@@assert_negative
21-
@@assert_positive
22-
@@assert_non_negative
23-
@@assert_non_positive
24-
@@assert_equal
25-
@@assert_none_equal
26-
@@assert_near
27-
@@assert_less
28-
@@assert_less_equal
29-
@@assert_greater
30-
@@assert_greater_equal
31-
@@assert_rank
32-
@@assert_rank_at_least
33-
@@assert_rank_in
34-
@@assert_type
35-
@@assert_integer
36-
@@assert_proper_iterable
37-
@@assert_same_float_dtype
38-
@@assert_scalar
39-
@@is_non_decreasing
40-
@@is_numeric_tensor
41-
@@is_strictly_increasing
4219
"""
4320

4421
from __future__ import absolute_import

tensorflow/python/ops/confusion_matrix.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
# ==============================================================================
15-
"""Confusion matrix related utilities.
16-
17-
18-
@@remove_squeezable_dimensions
19-
@@confusion_matrix
20-
"""
15+
"""Confusion matrix related utilities."""
2116

2217
from __future__ import absolute_import
2318
from __future__ import division

0 commit comments

Comments
 (0)