File tree Expand file tree Collapse file tree 2 files changed +15
-12
lines changed
tensorflow_model_optimization/python/core/api/sparsity/keras Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -80,13 +80,6 @@ def main(unused_argv):
80
80
code_url_prefix = FLAGS .code_url_prefix ,
81
81
search_hints = FLAGS .search_hints ,
82
82
site_path = FLAGS .site_path ,
83
- private_map = {
84
- "tfmot.sparsity.keras" : [
85
- # List of internal classes which get exposed when imported.
86
- "InputLayer" , "custom_object_scope" , "pruning_sched" ,
87
- "pruning_wrapper" , "absolute_import" , "division" , "print_function"
88
- ]
89
- },
90
83
)
91
84
92
85
doc_generator .build (output_dir = FLAGS .output_dir )
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
# ==============================================================================
15
15
"""Module containing sparsity code built on Keras abstractions."""
16
- # pylint: disable=wildcard-import
16
+ # pylint: disable=g-bad-import-order
17
+
18
+ from tensorflow_model_optimization .python .core .sparsity .keras .prune import prune_low_magnitude
19
+ from tensorflow_model_optimization .python .core .sparsity .keras .prune import prune_scope
20
+ from tensorflow_model_optimization .python .core .sparsity .keras .prune import strip_pruning
21
+
22
+ from tensorflow_model_optimization .python .core .sparsity .keras .pruning_callbacks import UpdatePruningStep
23
+ from tensorflow_model_optimization .python .core .sparsity .keras .pruning_callbacks import PruningSummaries
24
+
25
+ from tensorflow_model_optimization .python .core .sparsity .keras .pruning_schedule import PruningSchedule
26
+ from tensorflow_model_optimization .python .core .sparsity .keras .pruning_schedule import ConstantSparsity
27
+ from tensorflow_model_optimization .python .core .sparsity .keras .pruning_schedule import PolynomialDecay
28
+
17
29
from tensorflow_model_optimization .python .core .sparsity .keras .prunable_layer import PrunableLayer
18
- from tensorflow_model_optimization .python .core .sparsity .keras .prune import *
19
- from tensorflow_model_optimization .python .core .sparsity .keras .pruning_callbacks import *
20
- from tensorflow_model_optimization .python .core .sparsity .keras .pruning_schedule import *
21
- # pylint: enable=wildcard-import
30
+
31
+ # pylint: enable=g-bad-import-order
You can’t perform that action at this time.
0 commit comments