We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae0a1f5 commit 504f5a4Copy full SHA for 504f5a4
tensorflow_probability/python/layers/weight_norm_test.py
@@ -225,9 +225,9 @@ def testGradientValues(self, model_type):
225
@parameterized.parameters(['sequential', 'sequential_no_input', 'functional'])
226
def testTrainableVariableInitializationInModelFit(self, model_type):
227
if tf.__internal__.tf2.enabled() and tf.executing_eagerly():
228
- sgd = tf.keras.optimizers.SGD(lr=0.)
+ sgd = tf.keras.optimizers.SGD(learning_rate=0.)
229
else:
230
- sgd = tf.keras.optimizers.legacy.SGD(lr=0.)
+ sgd = tf.keras.optimizers.legacy.SGD(learning_rate=0.)
231
model = self._define_model(model_type, self.data_dim, self.num_hidden)
232
model.compile(optimizer=sgd, loss='mse')
233
model.fit(
0 commit comments