Skip to content

Commit 18ef24b

Browse files
Dan MoldovanAmit Patankar
Dan Moldovan
authored and
Amit Patankar
committed
Update __init__.py
Whitelist the operators module in the main library.
1 parent 45d7b76 commit 18ef24b

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

tensorflow/contrib/autograph/__init__.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
# TODO(mdan): Bring only the relevant symbols to the top level.
2525
from tensorflow.contrib.autograph import utils
26+
from tensorflow.contrib.autograph import operators
2627
from tensorflow.contrib.autograph.impl.api import convert
2728
from tensorflow.contrib.autograph.impl.api import converted_call
2829
from tensorflow.contrib.autograph.impl.api import do_not_convert
@@ -33,8 +34,20 @@
3334
from tensorflow.python.util.all_util import remove_undocumented
3435

3536
_allowed_symbols = [
36-
'utils', 'convert', 'converted_call', 'do_not_convert', 'RunMode',
37-
'to_code', 'to_graph', 'AutographParseError'
37+
# Main API
38+
'RunMode',
39+
'convert',
40+
'converted_call',
41+
'do_not_convert',
42+
'to_code',
43+
'to_graph',
44+
# Special functions and overloaded operators
45+
'operators',
46+
'stack',
47+
# Exceptions
48+
'AutographParseError',
49+
# Utilities: to be removed
50+
'utils',
3851
]
3952

4053
remove_undocumented(__name__, _allowed_symbols)

0 commit comments

Comments
 (0)