{
  "id": 403361,
  "title": "Model(x) and Model.predict(x) gives different results. why?",
  "url": "/competitions/asl-signs/discussion/403361",
  "author_name": "Amirhossein Tondari",
  "post_date": "2023-04-22T17:08:27.801000",
  "votes": 0,
  "comment_count": 0,
  "views": 0,
  "content": "<p>Hi all,<br>\nI made a preprocess model with 3 custom layers, problem is model.predict(x) and model(x) output shapes are different.<br>\nHere's my notebook:<br>\n<a href=\"url\" target=\"_blank\">https://www.kaggle.com/code/amirhosseintondari/notebookd68691b7eb</a><br>\nrun the last cell and you understand what I'm saying<br>\nmodel(x) output shape is right by the way<br>\ncan someone tell me why is this happening and how fix it?</p>",
  "messages": [
    {
      "id": 2230702,
      "postDate": "2023-04-22T17:08:27.803Z",
      "content": "<p>Hi all,<br>\nI made a preprocess model with 3 custom layers, problem is model.predict(x) and model(x) output shapes are different.<br>\nHere's my notebook:<br>\n<a href=\"url\" target=\"_blank\">https://www.kaggle.com/code/amirhosseintondari/notebookd68691b7eb</a><br>\nrun the last cell and you understand what I'm saying<br>\nmodel(x) output shape is right by the way<br>\ncan someone tell me why is this happening and how fix it?</p>",
      "rawMarkdown": "Hi all,\nI made a preprocess model with 3 custom layers, problem is model.predict(x) and model(x) output shapes are different.\nHere's my notebook:\n[https://www.kaggle.com/code/amirhosseintondari/notebookd68691b7eb](url)\nrun the last cell and you understand what I'm saying\nmodel(x) output shape is right by the way\ncan someone tell me why is this happening and how fix it?"
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "2230702": "Hi all,\nI made a preprocess model with 3 custom layers, problem is model.predict(x) and model(x) output shapes are different.\nHere's my notebook:\n[https://www.kaggle.com/code/amirhosseintondari/notebookd68691b7eb](url)\nrun the last cell and you understand what I'm saying\nmodel(x) output shape is right by the way\ncan someone tell me why is this happening and how fix it?"
  }
}