{
  "id": 216801,
  "title": "Issues when trying to run on TPU",
  "url": "/competitions/rfcx-species-audio-detection/discussion/216801",
  "author_name": "",
  "post_date": "2021-02-04T05:36:42.475913700Z",
  "votes": 6,
  "comment_count": 6,
  "views": 0,
  "content": "<p>I am having what seems like connection issues when attempting to re-run my old notebboks on TPU , for example version 10  ran and the retry in version 11 did not run <a href=\"https://www.kaggle.com/felipebihaiek/fork-of-baseline-implementation-resnet34?scriptVersionId=53473064\" target=\"_blank\">https://www.kaggle.com/felipebihaiek/fork-of-baseline-implementation-resnet34?scriptVersionId=53473064</a>.  This has been happening for the last 3 days.</p>\n<p>The message thrown is the following:</p>\n<p><code>failed to connect to all addresses\nAdditional GRPC error information from remote target /job:localhost/replica:0/task:0/device:CPU:0:</code></p>\n<p>Thanks in advance for any help.</p>",
  "messages": [
    {
      "id": "1185310",
      "postDate": "02/04/2021 05:36:42",
      "content": "<p>I am having what seems like connection issues when attempting to re-run my old notebboks on TPU , for example version 10  ran and the retry in version 11 did not run <a href=\"https://www.kaggle.com/felipebihaiek/fork-of-baseline-implementation-resnet34?scriptVersionId=53473064\" target=\"_blank\">https://www.kaggle.com/felipebihaiek/fork-of-baseline-implementation-resnet34?scriptVersionId=53473064</a>.  This has been happening for the last 3 days.</p>\n<p>The message thrown is the following:</p>\n<p><code>failed to connect to all addresses\nAdditional GRPC error information from remote target /job:localhost/replica:0/task:0/device:CPU:0:</code></p>\n<p>Thanks in advance for any help.</p>",
      "rawMarkdown": "I am having what seems like connection issues when attempting to re-run my old notebboks on TPU , for example version 10  ran and the retry in version 11 did not run https://www.kaggle.com/felipebihaiek/fork-of-baseline-implementation-resnet34?scriptVersionId=53473064.  This has been happening for the last 3 days.\n\nThe message thrown is the following:\n\n`failed to connect to all addresses\nAdditional GRPC error information from remote target /job:localhost/replica:0/task:0/device:CPU:0:`\n\nThanks in advance for any help.",
      "votes": null
    },
    {
      "id": "1185878",
      "postDate": "02/04/2021 12:55:01",
      "content": "<p>+1 to this issue</p>",
      "rawMarkdown": "1 to this issue",
      "votes": null
    },
    {
      "id": "1186515",
      "postDate": "02/04/2021 21:34:26",
      "content": "<p>I was told to add the complaint here <a href=\"https://www.kaggle.com/product-feedback/217011\" target=\"_blank\">https://www.kaggle.com/product-feedback/217011</a>  if you are having the same issue please upvote or comment so that we get visibillity</p>",
      "rawMarkdown": "I was told to add the complaint here https://www.kaggle.com/product-feedback/217011  if you are having the same issue please upvote or comment so that we get visibillity",
      "votes": null
    },
    {
      "id": "1186646",
      "postDate": "02/05/2021 01:01:45",
      "content": "<p>I looked into this and it looks like tfa.image.cutout is not compatible with TPUs. I wonder if it has ever been or if it is a tensorflow-addons version issue.</p>",
      "rawMarkdown": "I looked into this and it looks like tfa.image.cutout is not compatible with TPUs. I wonder if it has ever been or if it is a tensorflow-addons version issue.",
      "votes": null
    },
    {
      "id": "1186673",
      "postDate": "02/05/2021 01:28:18",
      "content": "<p>Hi thank you. If it was not compatible then it was not throwing error or warning as you can see in version 10. BTW the kernel is a fork of a very upvoted kernel <a href=\"https://www.kaggle.com/prvnkmr/baseline-implementation-resnet34\" target=\"_blank\">https://www.kaggle.com/prvnkmr/baseline-implementation-resnet34</a>  which originally ran in TPU and used the cut_out. I will try a past version of TFA in any case.</p>",
      "rawMarkdown": "Hi thank you. If it was not compatible then it was not throwing error or warning as you can see in version 10. BTW the kernel is a fork of a very upvoted kernel https://www.kaggle.com/prvnkmr/baseline-implementation-resnet34  which originally ran in TPU and used the cut_out. I will try a past version of TFA in any case.",
      "votes": null
    },
    {
      "id": "1186680",
      "postDate": "02/05/2021 01:43:28",
      "content": "<p>The problem is we can only use the environment that has tensorflow 2.4 on the kernels ( ythe toggle for past image is disabled) . For tensorflo2.4 there is only one available version of TFA.</p>",
      "rawMarkdown": "The problem is we can only use the environment that has tensorflow 2.4 on the kernels ( ythe toggle for past image is disabled) . For tensorflo2.4 there is only one available version of TFA.",
      "votes": null
    },
    {
      "id": "1186848",
      "postDate": "02/05/2021 04:48:17",
      "content": "<p>There is a workaround available now. See comments by Kaggle support staff in :<br>\n<a href=\"https://www.kaggle.com/c/rfcx-species-audio-detection/discussion/216408\" target=\"_blank\">https://www.kaggle.com/c/rfcx-species-audio-detection/discussion/216408</a></p>\n<p>other than specaugment you can get everything else to run just by commenting <a href=\"https://www.kaggle.com/tf.function\" target=\"_blank\">@tf.function</a> decorator</p>",
      "rawMarkdown": "There is a workaround available now. See comments by Kaggle support staff in :\nhttps://www.kaggle.com/c/rfcx-species-audio-detection/discussion/216408\n\nother than specaugment you can get everything else to run just by commenting @tf.function decorator",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1185878,
      "author_name": "germmie",
      "author_url": "",
      "post_date": "02/04/2021 12:55:01",
      "content": "<p>+1 to this issue</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1186515,
      "author_name": "felipebihaiek",
      "author_url": "",
      "post_date": "02/04/2021 21:34:26",
      "content": "<p>I was told to add the complaint here <a href=\"https://www.kaggle.com/product-feedback/217011\" target=\"_blank\">https://www.kaggle.com/product-feedback/217011</a>  if you are having the same issue please upvote or comment so that we get visibillity</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1186646,
      "author_name": "mgorner",
      "author_url": "",
      "post_date": "02/05/2021 01:01:45",
      "content": "<p>I looked into this and it looks like tfa.image.cutout is not compatible with TPUs. I wonder if it has ever been or if it is a tensorflow-addons version issue.</p>",
      "votes": null,
      "replies": [
        {
          "id": 1186673,
          "author_name": "felipebihaiek",
          "author_url": "",
          "post_date": "02/05/2021 01:28:18",
          "content": "<p>Hi thank you. If it was not compatible then it was not throwing error or warning as you can see in version 10. BTW the kernel is a fork of a very upvoted kernel <a href=\"https://www.kaggle.com/prvnkmr/baseline-implementation-resnet34\" target=\"_blank\">https://www.kaggle.com/prvnkmr/baseline-implementation-resnet34</a>  which originally ran in TPU and used the cut_out. I will try a past version of TFA in any case.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1186680,
          "author_name": "felipebihaiek",
          "author_url": "",
          "post_date": "02/05/2021 01:43:28",
          "content": "<p>The problem is we can only use the environment that has tensorflow 2.4 on the kernels ( ythe toggle for past image is disabled) . For tensorflo2.4 there is only one available version of TFA.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1186848,
      "author_name": "allohvk",
      "author_url": "",
      "post_date": "02/05/2021 04:48:17",
      "content": "<p>There is a workaround available now. See comments by Kaggle support staff in :<br>\n<a href=\"https://www.kaggle.com/c/rfcx-species-audio-detection/discussion/216408\" target=\"_blank\">https://www.kaggle.com/c/rfcx-species-audio-detection/discussion/216408</a></p>\n<p>other than specaugment you can get everything else to run just by commenting <a href=\"https://www.kaggle.com/tf.function\" target=\"_blank\">@tf.function</a> decorator</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1185310": "I am having what seems like connection issues when attempting to re-run my old notebboks on TPU , for example version 10  ran and the retry in version 11 did not run https://www.kaggle.com/felipebihaiek/fork-of-baseline-implementation-resnet34?scriptVersionId=53473064.  This has been happening for the last 3 days.\n\nThe message thrown is the following:\n\n`failed to connect to all addresses\nAdditional GRPC error information from remote target /job:localhost/replica:0/task:0/device:CPU:0:`\n\nThanks in advance for any help.",
    "1185878": "1 to this issue",
    "1186515": "I was told to add the complaint here https://www.kaggle.com/product-feedback/217011  if you are having the same issue please upvote or comment so that we get visibillity",
    "1186646": "I looked into this and it looks like tfa.image.cutout is not compatible with TPUs. I wonder if it has ever been or if it is a tensorflow-addons version issue.",
    "1186673": "Hi thank you. If it was not compatible then it was not throwing error or warning as you can see in version 10. BTW the kernel is a fork of a very upvoted kernel https://www.kaggle.com/prvnkmr/baseline-implementation-resnet34  which originally ran in TPU and used the cut_out. I will try a past version of TFA in any case.",
    "1186680": "The problem is we can only use the environment that has tensorflow 2.4 on the kernels ( ythe toggle for past image is disabled) . For tensorflo2.4 there is only one available version of TFA.",
    "1186848": "There is a workaround available now. See comments by Kaggle support staff in :\nhttps://www.kaggle.com/c/rfcx-species-audio-detection/discussion/216408\n\nother than specaugment you can get everything else to run just by commenting @tf.function decorator"
  },
  "source": "meta"
}