aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/keras/_impl/keras/engine/topology.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/keras/_impl/keras/engine/topology.py')
-rw-r--r--tensorflow/python/keras/_impl/keras/engine/topology.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/tensorflow/python/keras/_impl/keras/engine/topology.py b/tensorflow/python/keras/_impl/keras/engine/topology.py
index 2bcbabf19c..f9be782f85 100644
--- a/tensorflow/python/keras/_impl/keras/engine/topology.py
+++ b/tensorflow/python/keras/_impl/keras/engine/topology.py
@@ -29,9 +29,6 @@ from six.moves import zip # pylint: disable=redefined-builtin
from tensorflow.python.eager import context
from tensorflow.python.framework import tensor_shape
from tensorflow.python.keras._impl.keras import backend as K
-from tensorflow.python.keras._impl.keras import constraints
-from tensorflow.python.keras._impl.keras import initializers
-from tensorflow.python.keras._impl.keras import regularizers
from tensorflow.python.keras._impl.keras.utils import conv_utils
from tensorflow.python.keras._impl.keras.utils.io_utils import ask_to_proceed_with_overwrite
from tensorflow.python.keras._impl.keras.utils.layer_utils import print_summary as print_layer_summary
@@ -212,9 +209,9 @@ class Layer(tf_base_layers.Layer):
dtype = K.floatx()
weight = self.add_variable(name, shape,
dtype=dtype,
- initializer=initializers.get(initializer),
- regularizer=regularizers.get(regularizer),
- constraint=constraints.get(constraint),
+ initializer=initializer,
+ regularizer=regularizer,
+ constraint=constraint,
trainable=trainable)
return weight