Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Error loading model: unrecognized input '' for node: unnamed_LSTM_0 #167

Open
dnnagy opened this issue Jul 6, 2019 · 4 comments
Open

Error loading model: unrecognized input '' for node: unnamed_LSTM_0 #167

dnnagy opened this issue Jul 6, 2019 · 4 comments
Labels
operator Related to one or more ONNX operators

Comments

@dnnagy
Copy link

dnnagy commented Jul 6, 2019

I exported a Pytorch model to ONNX, but I cannot load it on the browser for inference.
Details about my problem:

ONNX version: 1.5.0
Python version: Python 3.6.7 :: Anaconda, Inc.
Browser: Google Chrome 75.0.3770.100
ONNX model: https://drive.google.com/file/d/16JIuHKmp9vA-CL_6z6l8KjwZ1Qcnf-Jz/view?usp=sharing

Code:

<html>
  <head> </head>

  <body>
    <!-- Load ONNX.js -->
    <script src="https://cdn.jsdelivr.net/npm/onnxjs/dist/onnx.min.js"></script>
    <!-- Code that consume ONNX.js -->
    <script>
       // Create an ONNX inference session with default backend.
       const session = new onnx.InferenceSession();
            
        // Load an ONNX model.
        session.loadModel("./NumberPredictor.onnx").then((success) => {
            console.log("success", success);
        }).catch((error) => {
            console.log("error", error);
        });
    </script>
  </body>
</html>

Error message: Error: unrecognized input '' for node: unnamed_LSTM_0

@nitsanp
Copy link

nitsanp commented Jul 8, 2019

Same problem.

@ybrnathan
Copy link

LSTM Op is not supported by ONNX.js yet.

@dnnagy
Copy link
Author

dnnagy commented Aug 26, 2019

Is it going to be supported in the future?

@fs-eire fs-eire added the operator Related to one or more ONNX operators label Aug 10, 2020
@Qjbtiger
Copy link

I also hope LSTM op can be supported by onnx.js

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
operator Related to one or more ONNX operators
Projects
None yet
Development

No branches or pull requests

5 participants