question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Basic Lstm Cell import from pb file

See original GitHub issue

Here are below the ops generated by a basic_lstm_cell when exported to a protobuf file.

We will have to implement the following ops if we want to be able to import this cell from a pb file:

  • ConcatV2
  • split
  • BiasAdd
  • Enter
Name: rnn/multi_rnn_cell/cell_0/basic_lstm_cell/kernel ops: Const
Name: rnn/multi_rnn_cell/cell_0/basic_lstm_cell/bias ops: Const
Name: rnn/while/rnn/multi_rnn_cell/cell_0/basic_lstm_cell/Const ops: Const
Name: rnn/while/rnn/multi_rnn_cell/cell_0/basic_lstm_cell/concat/axis ops: Const
Name: rnn/while/rnn/multi_rnn_cell/cell_0/basic_lstm_cell/concat ops: ConcatV2
Name: rnn/while/rnn/multi_rnn_cell/cell_0/basic_lstm_cell/MatMul ops: MatMul
Name: rnn/while/rnn/multi_rnn_cell/cell_0/basic_lstm_cell/MatMul/Enter ops: Enter
Name: rnn/while/rnn/multi_rnn_cell/cell_0/basic_lstm_cell/BiasAdd ops: BiasAdd
Name: rnn/while/rnn/multi_rnn_cell/cell_0/basic_lstm_cell/BiasAdd/Enter ops: Enter
Name: rnn/while/rnn/multi_rnn_cell/cell_0/basic_lstm_cell/split ops: Split
Name: rnn/while/rnn/multi_rnn_cell/cell_0/basic_lstm_cell/Const_2 ops: Const
Name: rnn/while/rnn/multi_rnn_cell/cell_0/basic_lstm_cell/Add ops: Add
Name: rnn/while/rnn/multi_rnn_cell/cell_0/basic_lstm_cell/Sigmoid ops: Sigmoid
Name: rnn/while/rnn/multi_rnn_cell/cell_0/basic_lstm_cell/Mul ops: Mul
Name: rnn/while/rnn/multi_rnn_cell/cell_0/basic_lstm_cell/Sigmoid_1 ops: Sigmoid
Name: rnn/while/rnn/multi_rnn_cell/cell_0/basic_lstm_cell/Tanh ops: Tanh
Name: rnn/while/rnn/multi_rnn_cell/cell_0/basic_lstm_cell/Mul_1 ops: Mul
Name: rnn/while/rnn/multi_rnn_cell/cell_0/basic_lstm_cell/Add_1 ops: Add
Name: rnn/while/rnn/multi_rnn_cell/cell_0/basic_lstm_cell/Tanh_1 ops: Tanh
Name: rnn/while/rnn/multi_rnn_cell/cell_0/basic_lstm_cell/Sigmoid_2 ops: Sigmoid
Name: rnn/while/rnn/multi_rnn_cell/cell_0/basic_lstm_cell/Mul_2 ops: Mul

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
yanndupiscommented, May 13, 2019

@mortendahl, yes definitely. Let’s close this issue. We can open a new one when we decide to tackle LSTM. Thanks

0reactions
mortendahlcommented, May 10, 2019

Gotcha, thanks @yanndupis. Does it make sense to close this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to convert LSTM model to .tflite model #15805 - GitHub
The Issue. When trying to convert an LSTM from a frozen graph (. pb) file to (. tflite) using the tensorflow toco script,...
Read more >
Recurrent Neural Networks (RNN) with Keras | TensorFlow Core
Introduction · Setup · Built-in RNN layers: a simple example · Outputs and states · RNN layers and RNN cells · Cross-batch statefulness....
Read more >
How to retain LSTM hidden states when streaming data ...
I have trained a LSTM model in keras and now want it to deploy it through C++. I converted the .hdf5 model file...
Read more >
Sequence Classification with LSTM Recurrent Neural ...
from tensorflow.keras.datasets import imdb ... You can see that this simple LSTM with little tuning achieves near state-of-the-art results ...
Read more >
MATLAB importTensorFlowNetwork - MathWorks
This MATLAB function imports a pretrained TensorFlow network from the ... importTensorFlowNetwork imports the layers defined in the saved_model.pb file and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found