{
  "id": 181434,
  "title": "TPU error in Kernel",
  "url": "/competitions/landmark-recognition-2020/discussion/181434",
  "author_name": "",
  "post_date": "2020-09-08T19:33:58.017559800Z",
  "votes": 1,
  "comment_count": 1,
  "views": 0,
  "content": "<p>Why do  I have some issues when I try to train the model with TPU (is it coz of the rules of this competition that TPU is allowed to some extent?)</p>\n<p><code>No registered 'PyFunc' OpKernel for 'CPU' devices compatible with node</code></p>",
  "messages": [
    {
      "id": "1003277",
      "postDate": "09/08/2020 19:33:58",
      "content": "<p>Why do  I have some issues when I try to train the model with TPU (is it coz of the rules of this competition that TPU is allowed to some extent?)</p>\n<p><code>No registered 'PyFunc' OpKernel for 'CPU' devices compatible with node</code></p>",
      "rawMarkdown": "Why do  I have some issues when I try to train the model with TPU (is it coz of the rules of this competition that TPU is allowed to some extent?)\n\n```No registered 'PyFunc' OpKernel for 'CPU' devices compatible with node```",
      "votes": null
    },
    {
      "id": "1006704",
      "postDate": "09/11/2020 13:51:42",
      "content": "<p>Use below code<br>\ndevice = xm.xla_device(n=2, devkind='TPU')</p>",
      "rawMarkdown": "Use below code\ndevice = xm.xla_device(n=2, devkind='TPU')",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1006704,
      "author_name": "sanjaydsb",
      "author_url": "",
      "post_date": "09/11/2020 13:51:42",
      "content": "<p>Use below code<br>\ndevice = xm.xla_device(n=2, devkind='TPU')</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1003277": "Why do  I have some issues when I try to train the model with TPU (is it coz of the rules of this competition that TPU is allowed to some extent?)\n\n```No registered 'PyFunc' OpKernel for 'CPU' devices compatible with node```",
    "1006704": "Use below code\ndevice = xm.xla_device(n=2, devkind='TPU')"
  },
  "source": "meta"
}