Skip to content

Commit ec636c9

Browse files
alanchiaotensorflower-gardener
authored andcommitted
Temporarily revert build_docs.py private_map, until next pip release, so that
private classes don't all show up. Add `compat` to `private_map` until then. PiperOrigin-RevId: 319143321
1 parent 7609e52 commit ec636c9

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

build_docs.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,23 @@ def main(unused_argv):
8080
code_url_prefix=FLAGS.code_url_prefix,
8181
search_hints=FLAGS.search_hints,
8282
site_path=FLAGS.site_path,
83+
# TODO(tfmot): remove this once the next release after 0.3.0 happens.
84+
# This is needed in the interim because the API docs reflect
85+
# the latest release and the current release still wildcard imports
86+
# all of the classes below.
87+
private_map={
88+
"tfmot.sparsity.keras": [
89+
# List of internal classes which get exposed when imported.
90+
"InputLayer",
91+
"custom_object_scope",
92+
"pruning_sched",
93+
"pruning_wrapper",
94+
"absolute_import",
95+
"division",
96+
"print_function",
97+
"compat"
98+
]
99+
},
83100
)
84101

85102
doc_generator.build(output_dir=FLAGS.output_dir)

0 commit comments

Comments
 (0)