From c5f4fe9b9523fb5fd695d2f2541c3cccaea0b27b Mon Sep 17 00:00:00 2001 From: Siju Samuel Date: Mon, 8 Jul 2019 11:08:41 +0530 Subject: [PATCH] Deprecated tf.random_normal to tf.random.normal in lstm README --- tensorflow/lite/experimental/examples/lstm/g3doc/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tensorflow/lite/experimental/examples/lstm/g3doc/README.md b/tensorflow/lite/experimental/examples/lstm/g3doc/README.md index 63873fd9752deb..ef21a3e0301593 100644 --- a/tensorflow/lite/experimental/examples/lstm/g3doc/README.md +++ b/tensorflow/lite/experimental/examples/lstm/g3doc/README.md @@ -71,7 +71,7 @@ tflite_model = converter.convert() # You got a tflite model! + tf.lite.experimental.nn.TFLiteLSTMCell( self.num_lstm_units, forget_bias=0)) # Weights and biases for output softmax layer. - out_weights = tf.Variable(tf.random_normal([self.units, self.num_class])) + out_weights = tf.Variable(tf.random.normal([self.units, self.num_class])) @@ -67,7 +67,7 @@ class MnistLstmModel(object): lstm_cells = tf.nn.rnn_cell.MultiRNNCell(lstm_layers) # Note here, we use `tf.lite.experimental.nn.dynamic_rnn` and `time_major` @@ -170,7 +170,7 @@ class MnistLstmModel(object): tf.lite.experimental.nn.TFLiteLSTMCell( self.num_lstm_units, forget_bias=0)) # Weights and biases for output softmax layer. - out_weights = tf.Variable(tf.random_normal([self.units, self.num_class])) + out_weights = tf.Variable(tf.random.normal([self.units, self.num_class])) out_bias = tf.Variable(tf.zeros([self.num_class])) # Transpose input x to make it time major.