diff options
author | Anna R <annarev@google.com> | 2018-04-25 11:52:08 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-04-25 11:57:31 -0700 |
commit | fe965a8502c1a6667ab209dfbfd8b84a6bfb45ee (patch) | |
tree | bbd63ad0f2c9ffecac40b914bc5de8014623b652 /tensorflow/python/__init__.py | |
parent | 3563165fb8328fd0fd6eba88557c25209453339f (diff) |
Removing remove_undocumented calls from tensorflow/python.
PiperOrigin-RevId: 194274698
Diffstat (limited to 'tensorflow/python/__init__.py')
-rw-r--r-- | tensorflow/python/__init__.py | 166 |
1 files changed, 0 insertions, 166 deletions
diff --git a/tensorflow/python/__init__.py b/tensorflow/python/__init__.py index c1702ae13c..cf707fb2c7 100644 --- a/tensorflow/python/__init__.py +++ b/tensorflow/python/__init__.py @@ -120,31 +120,9 @@ from tensorflow.python.platform import resource_loader from tensorflow.python.platform import sysconfig from tensorflow.python.platform import test -from tensorflow.python.util.all_util import remove_undocumented from tensorflow.python.util.all_util import make_all from tensorflow.python.util.tf_export import tf_export -# Import modules whose docstrings contribute, for use by remove_undocumented -# below. -from tensorflow.python.client import client_lib -from tensorflow.python.framework import constant_op -from tensorflow.python.framework import framework_lib -from tensorflow.python.framework import subscribe -from tensorflow.python.ops import array_ops -from tensorflow.python.ops import check_ops -from tensorflow.python.ops import confusion_matrix as confusion_matrix_m -from tensorflow.python.ops import control_flow_ops -from tensorflow.python.ops import functional_ops -from tensorflow.python.ops import histogram_ops -from tensorflow.python.ops import io_ops -from tensorflow.python.ops import math_ops -from tensorflow.python.ops import script_ops -from tensorflow.python.ops import session_ops -from tensorflow.python.ops import sparse_ops -from tensorflow.python.ops import state_ops -from tensorflow.python.ops import string_ops -from tensorflow.python.ops import tensor_array_ops - # Eager execution from tensorflow.python.eager.context import executing_eagerly from tensorflow.python.framework.ops import enable_eager_execution @@ -163,35 +141,6 @@ nn.bidirectional_dynamic_rnn = rnn.bidirectional_dynamic_rnn nn.static_state_saving_rnn = rnn.static_state_saving_rnn nn.rnn_cell = rnn_cell -# Symbols whitelisted for export without documentation. -# TODO(cwhipkey): review these and move to contrib, expose through -# documentation, or remove. -_allowed_symbols = [ - 'AttrValue', - 'ConfigProto', - 'ClusterDef', - 'DeviceSpec', - 'Event', - 'GPUOptions', - 'GRAPH_DEF_VERSION', - 'GRAPH_DEF_VERSION_MIN_CONSUMER', - 'GRAPH_DEF_VERSION_MIN_PRODUCER', - 'GraphDef', - 'GraphOptions', - 'HistogramProto', - 'LogMessage', - 'MetaGraphDef', - 'NameAttrList', - 'NodeDef', - 'OptimizerOptions', - 'RunOptions', - 'RunMetadata', - 'SessionLog', - 'Summary', - 'SummaryMetadata', - 'TensorInfo', # Used for tf.saved_model functionality. -] - # Export protos # pylint: disable=undefined-variable tf_export('AttrValue')(AttrValue) @@ -216,121 +165,6 @@ tf_export('summary.TaggedRunMetadata')(TaggedRunMetadata) tf_export('TensorInfo')(TensorInfo) # pylint: enable=undefined-variable - -# The following symbols are kept for compatibility. It is our plan -# to remove them in the future. -_allowed_symbols.extend([ - 'arg_max', - 'arg_min', - 'create_partitioned_variables', - 'deserialize_many_sparse', - 'lin_space', - 'listdiff', # Use tf.listdiff instead. - 'parse_single_sequence_example', - 'serialize_many_sparse', - 'serialize_sparse', - 'sparse_matmul', ## use tf.matmul instead. -]) - -# This is needed temporarily because we import it explicitly. -_allowed_symbols.extend([ - 'pywrap_tensorflow', -]) - -# Dtypes exported by framework/dtypes.py. -# TODO(cwhipkey): expose these through documentation. -_allowed_symbols.extend([ - 'QUANTIZED_DTYPES', - 'bfloat16', - 'bool', - 'complex64', - 'complex128', - 'double', - 'half', - 'float16', - 'float32', - 'float64', - 'int16', - 'int32', - 'int64', - 'int8', - 'qint16', - 'qint32', - 'qint8', - 'quint16', - 'quint8', - 'string', - 'uint64', - 'uint32', - 'uint16', - 'uint8', - 'resource', - 'variant', -]) - -# Export modules and constants. -_allowed_symbols.extend([ - 'app', - 'bitwise', - 'compat', - 'data', - 'distributions', - 'errors', - 'estimator', - 'feature_column', - 'flags', - 'gfile', - 'graph_util', - 'image', - 'initializers', - 'keras', - 'layers', - 'linalg', - 'logging', - 'losses', - 'manip', - 'metrics', - 'newaxis', - 'nn', - 'profiler', - 'python_io', - 'resource_loader', - 'saved_model', - 'sets', - 'spectral', - 'summary', - 'sysconfig', - 'test', - 'train', - 'user_ops', -]) - -# Variables framework.versions: -_allowed_symbols.extend([ - 'VERSION', - 'GIT_VERSION', - 'COMPILER_VERSION', - 'CXX11_ABI_FLAG', - 'MONOLITHIC_BUILD', -]) - -# Eager execution -_allowed_symbols.extend([ - 'enable_eager_execution', - 'executing_eagerly', -]) - -# Remove all extra symbols that don't have a docstring or are not explicitly -# referenced in the whitelist. -remove_undocumented(__name__, _allowed_symbols, [ - framework_lib, array_ops, check_ops, client_lib, compat, constant_op, - control_flow_ops, confusion_matrix_m, data, distributions, - functional_ops, histogram_ops, io_ops, keras, layers, - losses, math_ops, metrics, nn, profiler, resource_loader, sets, script_ops, - session_ops, sparse_ops, state_ops, string_ops, summary, tensor_array_ops, - train -]) - # Special dunders that we choose to export: _exported_dunders = set([ '__version__', |