File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
tensorflow_model_optimization/python/core/quantization/keras/layers Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 26
26
from tensorflow .python .keras import initializers
27
27
from tensorflow .python .keras .layers import convolutional
28
28
from tensorflow .python .keras .layers import serialization
29
- from tensorflow .python .keras .layers .normalization import batch_normalization_v1
30
29
from tensorflow .python .keras .utils import conv_utils
31
30
from tensorflow .python .ops import array_ops
32
31
from tensorflow .python .ops import math_ops
@@ -231,7 +230,8 @@ def __init__(
231
230
name = name ,
232
231
** kwargs )
233
232
234
- self .batchnorm = batch_normalization_v1 .BatchNormalization (
233
+ # TODO(b/187881826): conv_batchnorm should use v2 BatchNormalization layer
234
+ self .batchnorm = tf .compat .v1 .layers .BatchNormalization (
235
235
axis = axis ,
236
236
momentum = momentum ,
237
237
epsilon = epsilon ,
@@ -416,7 +416,8 @@ def __init__(
416
416
name = name ,
417
417
** kwargs )
418
418
419
- self .batchnorm = batch_normalization_v1 .BatchNormalization (
419
+ # TODO(b/187881826): conv_batchnorm should use v2 BatchNormalization layer
420
+ self .batchnorm = tf .compat .v1 .layers .BatchNormalization (
420
421
axis = axis ,
421
422
momentum = momentum ,
422
423
epsilon = epsilon ,
You can’t perform that action at this time.
0 commit comments