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(
50
50
"//tensorflow_model_optimization/python/core/sparsity/keras:prunable_layer" ,
51
51
"//tensorflow_model_optimization/python/core/sparsity/keras:prune" ,
52
52
"//tensorflow_model_optimization/python/core/sparsity/keras:pruning_callbacks" ,
53
+ "//tensorflow_model_optimization/python/core/sparsity/keras:pruning_policy" ,
53
54
"//tensorflow_model_optimization/python/core/sparsity/keras:pruning_schedule" ,
54
55
],
55
56
)
Original file line number Diff line number Diff line change 28
28
29
29
from tensorflow_model_optimization .python .core .sparsity .keras .prunable_layer import PrunableLayer
30
30
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
+
31
34
# pylint: enable=g-bad-import-order
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ py_strict_library(
16
16
":prunable_layer" , # buildcleaner: keep
17
17
":prune" , # buildcleaner: keep
18
18
":pruning_callbacks" , # buildcleaner: keep
19
+ ":pruning_policy" , # buildcleaner: keep
19
20
":pruning_schedule" , # buildcleaner: keep
20
21
],
21
22
)
Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ class PruningPolicy(abc.ABC):
47
47
```
48
48
49
49
You can inherit this class to write your own custom pruning policy.
50
+
51
+ The API is experimental and is subject to change.
50
52
"""
51
53
52
54
@abc .abstractmethod
You can’t perform that action at this time.
0 commit comments