Remove symbols from tf2

PiperOrigin-RevId: 220833377
This commit is contained in:
Alexandre Passos 2018-11-09 11:15:37 -08:00 committed by TensorFlower Gardener
parent e1f39262e1
commit 5a9a332ecd
5 changed files with 3 additions and 20 deletions

View File

@ -45,7 +45,7 @@ from tensorflow.python.util.deprecation import deprecated
from tensorflow.python.util.tf_export import tf_export
@tf_export("initialize_all_tables")
@tf_export(v1=["initialize_all_tables"])
@deprecated(None, "Use `tf.tables_initializer` instead.")
def initialize_all_tables(name="init_all_tables"):
"""Returns an Op that initializes all tables of the default graph.
@ -60,7 +60,7 @@ def initialize_all_tables(name="init_all_tables"):
return tables_initializer(name)
@tf_export("initializers.tables_initializer", "tables_initializer")
@tf_export(v1=["initializers.tables_initializer", "tables_initializer"])
def tables_initializer(name="init_all_tables"):
"""Returns an Op that initializes all tables of the default graph.

View File

@ -81,7 +81,6 @@ TENSORFLOW_API_INIT_FILES = [
"sysconfig/__init__.py",
"test/__init__.py",
"train/__init__.py",
"user_ops/__init__.py",
"version/__init__.py",
# END GENERATED FILES
]

View File

@ -26,7 +26,7 @@ from tensorflow.python.ops.gen_user_ops import * # pylint: disable=wildcard-imp
from tensorflow.python.util.tf_export import tf_export
@tf_export('user_ops.my_fact')
@tf_export(v1=['user_ops.my_fact'])
def my_fact():
"""Example of overriding the generated code for an Op."""
return _gen_user_ops.fact()

View File

@ -64,8 +64,4 @@ tf_module {
name: "lecun_uniform"
argspec: "args=[\'seed\'], varargs=None, keywords=None, defaults=[\'None\'], "
}
member_method {
name: "tables_initializer"
argspec: "args=[\'name\'], varargs=None, keywords=None, defaults=[\'init_all_tables\'], "
}
}

View File

@ -456,10 +456,6 @@ tf_module {
name: "uint8"
mtype: "<class \'tensorflow.python.framework.dtypes.DType\'>"
}
member {
name: "user_ops"
mtype: "<type \'module\'>"
}
member {
name: "variant"
mtype: "<class \'tensorflow.python.framework.dtypes.DType\'>"
@ -864,10 +860,6 @@ tf_module {
name: "init_scope"
argspec: "args=[], varargs=None, keywords=None, defaults=None"
}
member_method {
name: "initialize_all_tables"
argspec: "args=[\'name\'], varargs=None, keywords=None, defaults=[\'init_all_tables\'], "
}
member_method {
name: "less"
argspec: "args=[\'x\', \'y\', \'name\'], varargs=None, keywords=None, defaults=[\'None\'], "
@ -1292,10 +1284,6 @@ tf_module {
name: "subtract"
argspec: "args=[\'x\', \'y\', \'name\'], varargs=None, keywords=None, defaults=[\'None\'], "
}
member_method {
name: "tables_initializer"
argspec: "args=[\'name\'], varargs=None, keywords=None, defaults=[\'init_all_tables\'], "
}
member_method {
name: "tan"
argspec: "args=[\'x\', \'name\'], varargs=None, keywords=None, defaults=[\'None\'], "