|
19 | 19 | from __future__ import print_function
|
20 | 20 |
|
21 | 21 | import tensorflow as tf
|
| 22 | + |
22 | 23 | from tensorflow.python.framework import dtypes
|
23 | 24 | from tensorflow.python.keras import activations
|
24 | 25 | from tensorflow.python.keras import backend as K
|
25 | 26 | from tensorflow.python.keras import initializers
|
26 | 27 | from tensorflow.python.keras.layers import convolutional
|
27 |
| -from tensorflow.python.keras.layers import normalization |
28 | 28 | from tensorflow.python.keras.layers import serialization
|
| 29 | +from tensorflow.python.keras.layers.normalization import batch_normalization_v1 |
29 | 30 | from tensorflow.python.keras.utils import conv_utils
|
30 | 31 | from tensorflow.python.ops import array_ops
|
31 | 32 | from tensorflow.python.ops import math_ops
|
32 | 33 | from tensorflow.python.ops import nn
|
33 | 34 | from tensorflow.python.ops import nn_ops
|
34 |
| - |
35 | 35 | from tensorflow_model_optimization.python.core.keras import utils
|
36 |
| - |
37 | 36 | from tensorflow_model_optimization.python.core.quantization.keras import quantizers
|
38 | 37 | from tensorflow_model_optimization.python.core.quantization.keras.default_8bit import default_8bit_quantizers
|
39 | 38 |
|
@@ -232,7 +231,7 @@ def __init__(
|
232 | 231 | name=name,
|
233 | 232 | **kwargs)
|
234 | 233 |
|
235 |
| - self.batchnorm = normalization.BatchNormalization( |
| 234 | + self.batchnorm = batch_normalization_v1.BatchNormalization( |
236 | 235 | axis=axis,
|
237 | 236 | momentum=momentum,
|
238 | 237 | epsilon=epsilon,
|
@@ -417,7 +416,7 @@ def __init__(
|
417 | 416 | name=name,
|
418 | 417 | **kwargs)
|
419 | 418 |
|
420 |
| - self.batchnorm = normalization.BatchNormalization( |
| 419 | + self.batchnorm = batch_normalization_v1.BatchNormalization( |
421 | 420 | axis=axis,
|
422 | 421 | momentum=momentum,
|
423 | 422 | epsilon=epsilon,
|
|
0 commit comments