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.

Can I convert a LSTM Model of tensorflow to tensorFlowjs ?

See original GitHub issue

I created a sentiment model in tensorflow using python.In which I used LSTM Layers.I wanted to use that in web browser so, I converted that model to TensorFlow js format using tensorflow js converter. I got three files with names

  1. weights_manifest.json
  2. tensorflowjs_model
  3. group1-shard1of1

where 2,3 are binary files & json file contains information like [{"weights": [{"shape": [], "dtype": "int32", "name": "ArgMax_1/dimension"}], "paths": ["group1-shard1of1"]}] on seeing this I can say this model doesn’t work because it does not have any information of network.

In FAQ’s i found that Models with control flow ops (e.g. RNNs) are not yet supported.I just want to make sure does LSTM’s prepared model works in Tensorflowjs ?

I looked at example of sentiment analysis and translator of tensorflowjs. They are just making use of predefined models from the cloud.Can I get the examples of training those models with the data or conversion of those models from tensorflow to tensorflowjs format ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

1reaction
rthadurcommented, Nov 2, 2018

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!

1reaction
bileschicommented, Jul 3, 2018

Have you seen this new lstm-text-generation example? https://github.com/tensorflow/tfjs-examples/tree/master/lstm-text-generation

On Mon, Jul 2, 2018 at 4:52 PM, Gautam Mittal notifications@github.com wrote:

+1 for text preprocessing examples

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tensorflow/tfjs/issues/458#issuecomment-401931457, or mute the thread https://github.com/notifications/unsubscribe-auth/AAhZTtZz6gvp403M7_sm9156tqtGPzS8ks5uCogYgaJpZM4UyCk3 .

– Stan Bileschi Ph.D. | SWE | bileschi@google.com | 617-230-8081

Read more comments on GitHub >

github_iconTop Results From Across the Web

Model conversion | TensorFlow.js
More information about saving Keras models can be found here. ... To convert your model using the TensorFlow.js converter, you can run the ......
Read more >
Keras LSTM bidirectional model converted to Tensorflowjs not ...
I have created & trained a Keras based LSTM bidirectional model to classify video. This model works awesome and classifies the videos with...
Read more >
Loading converted Keras LSTM model in Tensorflow.js leads ...
I have defined a LSTM model in Keras and used tfjs.converters.save_keras_model to convert it to the Tensorflow.js format.
Read more >
Tensorflow.js tf.layers.lstm() Function - GeeksforGeeks
inputDim: It should be a number. This is used when this layer is used as the first layer of the model. It defines...
Read more >
TensorFlow.js in 3 Hours: Loading Pre-Trained LSTM Model ...
This video tutorial has been taken from TensorFlow.js in 3 Hours. You can learn more and buy the full video course here ...
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