File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
tensorflow_model_optimization/python/core/sparsity/keras Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ py_library(
52
52
visibility = ["//visibility:public" ],
53
53
deps = [
54
54
":prunable_layer" ,
55
+ # tensorflow dep1,
55
56
# python/keras:layers_base tensorflow dep2,
56
57
],
57
58
)
Original file line number Diff line number Diff line change 14
14
# ==============================================================================
15
15
"""Registry responsible for built-in keras classes."""
16
16
17
- from tensorflow . python . keras import layers
17
+ import tensorflow as tf
18
18
19
+ from tensorflow .python .keras import layers
19
20
from tensorflow_model_optimization .python .core .sparsity .keras import prunable_layer
20
21
21
22
@@ -75,7 +76,7 @@ class PruneRegistry(object):
75
76
layers .noise .AlphaDropout : [],
76
77
layers .noise .GaussianDropout : [],
77
78
layers .noise .GaussianNoise : [],
78
- layers . normalization .BatchNormalization : [],
79
+ tf . keras . layers .BatchNormalization : [],
79
80
layers .normalization .LayerNormalization : [],
80
81
layers .pooling .AveragePooling1D : [],
81
82
layers .pooling .AveragePooling2D : [],
You can’t perform that action at this time.
0 commit comments