{
  "id": 394530,
  "title": "LSTM layer problem",
  "url": "/competitions/asl-signs/discussion/394530",
  "author_name": "adriel cabral",
  "post_date": "2023-03-13T20:28:49.402000",
  "votes": 0,
  "comment_count": 0,
  "views": 0,
  "content": "<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F5419716%2F25fd1a3b755d439f24582b9480470041%2Fmodel.PNG?generation=1678738495368782&amp;alt=media\" alt=\"\"><br>\nI'm trying to create my model to do the submission, but it has a problem when i run this part of code</p>\n<pre><code>tf_model_path = '/kaggle/working/tf_model'\nonnx_model = onnx.load(onnx_model_path)\ntf_rep = prepare(onnx_model)\ntf_rep.export_graph(tf_model_path)\n</code></pre>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F5419716%2Feb765642a1bdca407eaec49105b54338%2Ferror.PNG?generation=1678738214407138&amp;alt=media\" alt=\"\"><br>\nShould I create the LSTM layer some other way? I can train normally using pytorch</p>",
  "messages": [
    {
      "id": 2180465,
      "postDate": "2023-03-13T20:28:49.403Z",
      "content": "<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F5419716%2F25fd1a3b755d439f24582b9480470041%2Fmodel.PNG?generation=1678738495368782&amp;alt=media\" alt=\"\"><br>\nI'm trying to create my model to do the submission, but it has a problem when i run this part of code</p>\n<pre><code>tf_model_path = '/kaggle/working/tf_model'\nonnx_model = onnx.load(onnx_model_path)\ntf_rep = prepare(onnx_model)\ntf_rep.export_graph(tf_model_path)\n</code></pre>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F5419716%2Feb765642a1bdca407eaec49105b54338%2Ferror.PNG?generation=1678738214407138&amp;alt=media\" alt=\"\"><br>\nShould I create the LSTM layer some other way? I can train normally using pytorch</p>",
      "rawMarkdown": "\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F5419716%2F25fd1a3b755d439f24582b9480470041%2Fmodel.PNG?generation=1678738495368782&alt=media)\n\nI'm trying to create my model to do the submission, but it has a problem when i run this part of code\n\n```\ntf_model_path = '/kaggle/working/tf_model'\nonnx_model = onnx.load(onnx_model_path)\ntf_rep = prepare(onnx_model)\ntf_rep.export_graph(tf_model_path)\n```\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F5419716%2Feb765642a1bdca407eaec49105b54338%2Ferror.PNG?generation=1678738214407138&alt=media)\n\nShould I create the LSTM layer some other way? I can train normally using pytorch\n\n"
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "2180465": "\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F5419716%2F25fd1a3b755d439f24582b9480470041%2Fmodel.PNG?generation=1678738495368782&alt=media)\n\nI'm trying to create my model to do the submission, but it has a problem when i run this part of code\n\n```\ntf_model_path = '/kaggle/working/tf_model'\nonnx_model = onnx.load(onnx_model_path)\ntf_rep = prepare(onnx_model)\ntf_rep.export_graph(tf_model_path)\n```\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F5419716%2Feb765642a1bdca407eaec49105b54338%2Ferror.PNG?generation=1678738214407138&alt=media)\n\nShould I create the LSTM layer some other way? I can train normally using pytorch\n\n"
  }
}