Deprecated tf.random_normal to tf.random.normal in unidirectional_sequence_lstm_test

This commit is contained in:
Siju Samuel 2019-07-08 11:08:10 +05:30
parent 8e8ce66122
commit b2d4be96de

View File

@ -83,8 +83,8 @@ class UnidirectionalSequenceLstmTest(test_util.TensorFlowTestCase):
"""
# Weights and biases for output softmax layer.
out_weights = tf.Variable(
tf.random_normal([self.num_units, self.n_classes]))
out_bias = tf.Variable(tf.random_normal([self.n_classes]))
tf.random.normal([self.num_units, self.n_classes]))
out_bias = tf.Variable(tf.random.normal([self.n_classes]))
# input image placeholder
x = tf.placeholder(