File tree Expand file tree Collapse file tree 4 files changed +7
-0
lines changed
tensorflow_model_optimization/python/core Expand file tree Collapse file tree 4 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ py_strict_library(
5050 "//tensorflow_model_optimization/python/core/sparsity/keras:prunable_layer" ,
5151 "//tensorflow_model_optimization/python/core/sparsity/keras:prune" ,
5252 "//tensorflow_model_optimization/python/core/sparsity/keras:pruning_callbacks" ,
53+ "//tensorflow_model_optimization/python/core/sparsity/keras:pruning_policy" ,
5354 "//tensorflow_model_optimization/python/core/sparsity/keras:pruning_schedule" ,
5455 ],
5556)
Original file line number Diff line number Diff line change 2828
2929from tensorflow_model_optimization .python .core .sparsity .keras .prunable_layer import PrunableLayer
3030
31+ from tensorflow_model_optimization .python .core .sparsity .keras .pruning_policy import PruningPolicy
32+ from tensorflow_model_optimization .python .core .sparsity .keras .pruning_policy import PruneForLatencyOnXNNPack
33+
3134# pylint: enable=g-bad-import-order
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ py_strict_library(
1616 ":prunable_layer" , # buildcleaner: keep
1717 ":prune" , # buildcleaner: keep
1818 ":pruning_callbacks" , # buildcleaner: keep
19+ ":pruning_policy" , # buildcleaner: keep
1920 ":pruning_schedule" , # buildcleaner: keep
2021 ],
2122)
Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ class PruningPolicy(abc.ABC):
4747 ```
4848
4949 You can inherit this class to write your own custom pruning policy.
50+
51+ The API is experimental and is subject to change.
5052 """
5153
5254 @abc .abstractmethod
You can’t perform that action at this time.
0 commit comments