{
  "id": 169666,
  "title": " TensorFlow and Keras  version Problem ",
  "url": "/competitions/global-wheat-detection/discussion/169666",
  "author_name": "",
  "post_date": "2020-07-24T17:49:23.668091100Z",
  "votes": null,
  "comment_count": 2,
  "views": 0,
  "content": "<p>Hello all, I am using TensorFlow 1.14 for generating submission.csv in the Kaggle kernel using my trained model.h5.\nBut when I save it, it uses Tensorflow 2.x and the submission file is not generated.\nI can not use\n<code>pip install tensorflow==1.14</code> ( because of the internet is disabled )\nAs well as can not specify the version using Magic function \n<code>%tensorflow_version 1.x</code></p>\n\n<p>I tried installing TensorFlow and Keras old versions offline using .whl file but didn’t work at all.</p>\n\n<p>Any idea how to tackle this problem?</p>\n\n<p>Thank you</p>",
  "messages": [
    {
      "id": "943949",
      "postDate": "07/24/2020 17:49:23",
      "content": "<p>Hello all, I am using TensorFlow 1.14 for generating submission.csv in the Kaggle kernel using my trained model.h5.\nBut when I save it, it uses Tensorflow 2.x and the submission file is not generated.\nI can not use\n<code>pip install tensorflow==1.14</code> ( because of the internet is disabled )\nAs well as can not specify the version using Magic function \n<code>%tensorflow_version 1.x</code></p>\n\n<p>I tried installing TensorFlow and Keras old versions offline using .whl file but didn’t work at all.</p>\n\n<p>Any idea how to tackle this problem?</p>\n\n<p>Thank you</p>",
      "rawMarkdown": "Hello all, I am using TensorFlow 1.14 for generating submission.csv in the Kaggle kernel using my trained model.h5.\nBut when I save it, it uses Tensorflow 2.x and the submission file is not generated.\nI can not use\n` pip install tensorflow==1.14` ( because of the internet is disabled )\nAs well as can not specify the version using Magic function \n`%tensorflow_version 1.x`\n\nI tried installing TensorFlow and Keras old versions offline using .whl file but didn’t work at all.\n\nAny idea how to tackle this problem?\n\nThank you",
      "votes": null
    },
    {
      "id": "944847",
      "postDate": "07/25/2020 11:38:41",
      "content": "<p>not sure but you are not obliged to install tensorflow 1.x, just try <code>import tensorflow.compat.v1 as tf</code></p>",
      "rawMarkdown": "not sure but you are not obliged to install tensorflow 1.x, just try `import tensorflow.compat.v1 as tf`",
      "votes": null
    },
    {
      "id": "947750",
      "postDate": "07/27/2020 13:11:57",
      "content": "<p>Thank you for your reply</p>",
      "rawMarkdown": "Thank you for your reply",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 944847,
      "author_name": "chihaoui",
      "author_url": "",
      "post_date": "07/25/2020 11:38:41",
      "content": "<p>not sure but you are not obliged to install tensorflow 1.x, just try <code>import tensorflow.compat.v1 as tf</code></p>",
      "votes": null,
      "replies": [
        {
          "id": 947750,
          "author_name": "vaibhavmankar",
          "author_url": "",
          "post_date": "07/27/2020 13:11:57",
          "content": "<p>Thank you for your reply</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "943949": "Hello all, I am using TensorFlow 1.14 for generating submission.csv in the Kaggle kernel using my trained model.h5.\nBut when I save it, it uses Tensorflow 2.x and the submission file is not generated.\nI can not use\n` pip install tensorflow==1.14` ( because of the internet is disabled )\nAs well as can not specify the version using Magic function \n`%tensorflow_version 1.x`\n\nI tried installing TensorFlow and Keras old versions offline using .whl file but didn’t work at all.\n\nAny idea how to tackle this problem?\n\nThank you",
    "944847": "not sure but you are not obliged to install tensorflow 1.x, just try `import tensorflow.compat.v1 as tf`",
    "947750": "Thank you for your reply"
  },
  "source": "meta"
}