Navigation Menu

Skip to content

Commit

Permalink
Deprecated tf.random_normal to tf.random.normal in lstm README
Browse files Browse the repository at this point in the history
  • Loading branch information
siju-samuel committed Jul 8, 2019
1 parent 7a19394 commit c5f4fe9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensorflow/lite/experimental/examples/lstm/g3doc/README.md
Expand Up @@ -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`
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit c5f4fe9

Please sign in to comment.