CoolFace
Datasetpublic

Anurag1734/cuda-error-resolution-analysis

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes7downloads
topics_batch_387.json62589 linesDownload Raw Back to raw
1[2  {3    "post_stream": {4      "posts": [5        {6          "id": 258225,7          "name": "shuangkang fang",8          "username": "Fangkang515",9          "avatar_template": "/user_avatar/discuss.pytorch.org/fangkang515/{size}/33626_2.png",10          "created_at": "2021-01-20T08:11:56.028Z",11          "cooked": "<p>The loss is always Nan when I use the loss function as follow:</p>\n<pre><code class=\"lang-auto\">def Myloss1(source, target):\n    loss = torch.nn.functional.mse_loss(source, target, reduction=\"none\")\n    return torch.sum(loss).sqrt()\n\n...\n\nloss = Myloss1(s, t)\nloss.backward()\n\n</code></pre>\n<br>\n<p>But when I use the following loss function, the training becomes normal:</p>\n<pre><code class=\"lang-auto\">def Myloss2(source, target):\n    diff = target - source\n    loss = torch.norm(diff)\n    return loss\n...\n\nloss = Myloss2(s, t)\nloss.backward()\n\n</code></pre>\n<br>\n<p>Why can’t use the ‘Myloss1’ to train? Aren’t Myloss1 and Myloss2 equivalent?</p>\n<p>Please help me,thank you very much!</p>",12          "post_number": 1,13          "post_type": 1,14          "posts_count": 1,15          "updated_at": "2021-01-20T08:11:56.028Z",16          "reply_count": 0,17          "reply_to_post_number": null,18          "quote_count": 0,19          "incoming_link_count": 22,20          "reads": 10,21          "readers_count": 9,22          "score": 112.0,23          "yours": false,24          "topic_id": 109406,25          "topic_slug": "the-loss-will-be-nan-when-i-use-loss-function-defined-by-torch-nn-function-mse-loss",26          "display_username": "shuangkang fang",27          "primary_group_name": null,28          "flair_name": null,29          "flair_url": null,30          "flair_bg_color": null,31          "flair_color": null,32          "flair_group_id": null,33          "badges_granted": [],34          "version": 1,35          "can_edit": false,36          "can_delete": false,37          "can_recover": false,38          "can_see_hidden_post": false,39          "can_wiki": false,40          "read": true,41          "user_title": null,42          "bookmarked": false,43          "actions_summary": [],44          "moderator": false,45          "admin": false,46          "staff": false,47          "user_id": 41211,48          "hidden": false,49          "trust_level": 1,50          "deleted_at": null,51          "user_deleted": false,52          "edit_reason": null,53          "can_view_edit_history": true,54          "wiki": false,55          "post_url": "/t/the-loss-will-be-nan-when-i-use-loss-function-defined-by-torch-nn-function-mse-loss/109406/1",56          "can_accept_answer": false,57          "can_unaccept_answer": false,58          "accepted_answer": false,59          "topic_accepted_answer": null,60          "can_vote": false61        }62      ],63      "stream": [64        25822565      ]66    },67    "timeline_lookup": [68      [69        1,70        174071      ]72    ],73    "suggested_topics": [74      {75        "fancy_title": "Problem in Backpropagation through a sample in Beta distribution in pytorch",76        "id": 215599,77        "title": "Problem in Backpropagation through a sample in Beta distribution in pytorch",78        "slug": "problem-in-backpropagation-through-a-sample-in-beta-distribution-in-pytorch",79        "posts_count": 2,80        "reply_count": 0,81        "highest_post_number": 2,82        "image_url": null,83        "created_at": "2025-01-19T16:54:31.198Z",84        "last_posted_at": "2025-01-19T17:14:39.424Z",85        "bumped": true,86        "bumped_at": "2025-01-19T17:14:39.424Z",87        "archetype": "regular",88        "unseen": false,89        "pinned": false,90        "unpinned": null,91        "visible": true,92        "closed": false,93        "archived": false,94        "bookmarked": null,95        "liked": null,96        "tags_descriptions": {},97        "like_count": 0,98        "views": 99,99        "category_id": 1,100        "featured_link": null,101        "has_accepted_answer": true,102        "posters": [103          {104            "extras": "latest single",105            "description": "Original Poster, Most Recent Poster, Accepted Answer",106            "user": {107              "id": 37790,108              "username": "Jimut123",109              "name": "Jimut Bahan Pal",110              "avatar_template": "/user_avatar/discuss.pytorch.org/jimut123/{size}/29864_2.png",111              "trust_level": 1112            }113          }114        ]115      },116      {117        "fancy_title": "Has no gradient in bias",118        "id": 213235,119        "title": "Has no gradient in bias",120        "slug": "has-no-gradient-in-bias",121        "posts_count": 2,122        "reply_count": 0,123        "highest_post_number": 2,124        "image_url": null,125        "created_at": "2024-11-20T22:30:42.969Z",126        "last_posted_at": "2024-11-21T06:11:05.813Z",127        "bumped": true,128        "bumped_at": "2024-11-21T06:11:05.813Z",129        "archetype": "regular",130        "unseen": false,131        "pinned": false,132        "unpinned": null,133        "visible": true,134        "closed": false,135        "archived": false,136        "bookmarked": null,137        "liked": null,138        "tags_descriptions": {},139        "like_count": 0,140        "views": 105,141        "category_id": 1,142        "featured_link": null,143        "has_accepted_answer": false,144        "posters": [145          {146            "extras": null,147            "description": "Original Poster",148            "user": {149              "id": 81034,150              "username": "olegkufa",151              "name": "olegkufa",152              "avatar_template": "/user_avatar/discuss.pytorch.org/olegkufa/{size}/74104_2.png",153              "trust_level": 1154            }155          },156          {157            "extras": "latest",158            "description": "Most Recent Poster",159            "user": {160              "id": 3534,161              "username": "ptrblck",162              "name": "",163              "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",164              "admin": true,165              "moderator": true,166              "trust_level": 2167            }168          }169        ]170      },171      {172        "fancy_title": "Difference between torch.transpose and torch.movedim",173        "id": 212152,174        "title": "Difference between torch.transpose and torch.movedim",175        "slug": "difference-between-torch-transpose-and-torch-movedim",176        "posts_count": 2,177        "reply_count": 0,178        "highest_post_number": 2,179        "image_url": null,180        "created_at": "2024-10-27T01:46:14.910Z",181        "last_posted_at": "2024-10-28T10:44:32.576Z",182        "bumped": true,183        "bumped_at": "2024-10-28T10:52:19.062Z",184        "archetype": "regular",185        "unseen": false,186        "pinned": false,187        "unpinned": null,188        "visible": true,189        "closed": false,190        "archived": false,191        "bookmarked": null,192        "liked": null,193        "tags_descriptions": {},194        "like_count": 2,195        "views": 233,196        "category_id": 1,197        "featured_link": null,198        "has_accepted_answer": true,199        "posters": [200          {201            "extras": null,202            "description": "Original Poster",203            "user": {204              "id": 80508,205              "username": "wasabi_linguist",206              "name": "",207              "avatar_template": "/user_avatar/discuss.pytorch.org/wasabi_linguist/{size}/73592_2.png",208              "trust_level": 1209            }210          },211          {212            "extras": "latest",213            "description": "Most Recent Poster, Accepted Answer",214            "user": {215              "id": 78546,216              "username": "jrog",217              "name": "Jakub",218              "avatar_template": "/letter_avatar_proxy/v4/letter/j/3ec8ea/{size}.png",219              "trust_level": 2220            }221          }222        ]223      },224      {225        "fancy_title": "CUDA not available",226        "id": 215422,227        "title": "CUDA not available",228        "slug": "cuda-not-available",229        "posts_count": 8,230        "reply_count": 6,231        "highest_post_number": 8,232        "image_url": null,233        "created_at": "2025-01-15T13:11:20.130Z",234        "last_posted_at": "2025-01-16T16:46:47.831Z",235        "bumped": true,236        "bumped_at": "2025-01-16T16:46:47.831Z",237        "archetype": "regular",238        "unseen": false,239        "pinned": false,240        "unpinned": null,241        "visible": true,242        "closed": false,243        "archived": false,244        "bookmarked": null,245        "liked": null,246        "tags_descriptions": {},247        "like_count": 0,248        "views": 1418,249        "category_id": 1,250        "featured_link": null,251        "has_accepted_answer": true,252        "posters": [253          {254            "extras": null,255            "description": "Original Poster",256            "user": {257              "id": 46535,258              "username": "MoRoBe",259              "name": "",260              "avatar_template": "/user_avatar/discuss.pytorch.org/morobe/{size}/39577_2.png",261              "trust_level": 1262            }263          },264          {265            "extras": "latest",266            "description": "Most Recent Poster, Accepted Answer",267            "user": {268              "id": 18088,269              "username": "KFrank",270              "name": "K. Frank",271              "avatar_template": "/letter_avatar_proxy/v4/letter/k/ecb155/{size}.png",272              "trust_level": 2273            }274          },275          {276            "extras": null,277            "description": "Frequent Poster",278            "user": {279              "id": 3534,280              "username": "ptrblck",281              "name": "",282              "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",283              "admin": true,284              "moderator": true,285              "trust_level": 2286            }287          }288        ]289      },290      {291        "fancy_title": "Running PyTorch model in parallel on linux causes cores to die",292        "id": 217243,293        "title": "Running PyTorch model in parallel on linux causes cores to die",294        "slug": "running-pytorch-model-in-parallel-on-linux-causes-cores-to-die",295        "posts_count": 1,296        "reply_count": 0,297        "highest_post_number": 1,298        "image_url": null,299        "created_at": "2025-02-27T17:34:18.677Z",300        "last_posted_at": "2025-02-27T17:34:18.725Z",301        "bumped": true,302        "bumped_at": "2025-02-27T17:34:18.725Z",303        "archetype": "regular",304        "unseen": false,305        "pinned": false,306        "unpinned": null,307        "visible": true,308        "closed": false,309        "archived": false,310        "bookmarked": null,311        "liked": null,312        "tags_descriptions": {},313        "like_count": 0,314        "views": 56,315        "category_id": 1,316        "featured_link": null,317        "has_accepted_answer": false,318        "posters": [319          {320            "extras": "latest single",321            "description": "Original Poster, Most Recent Poster",322            "user": {323              "id": 77641,324              "username": "Matthew_Rajan",325              "name": "Matthew Rajan",326              "avatar_template": "/user_avatar/discuss.pytorch.org/matthew_rajan/{size}/62203_2.png",327              "trust_level": 1328            }329          }330        ]331      }332    ],333    "tags_descriptions": {},334    "fancy_title": "The loss will be Nan when I use loss function defined by torch.nn.function.mse_loss",335    "id": 109406,336    "title": "The loss will be Nan when I use loss function defined by torch.nn.function.mse_loss",337    "posts_count": 1,338    "created_at": "2021-01-20T08:11:55.968Z",339    "views": 339,340    "reply_count": 0,341    "like_count": 0,342    "last_posted_at": "2021-01-20T08:11:56.028Z",343    "visible": true,344    "closed": false,345    "archived": false,346    "has_summary": false,347    "archetype": "regular",348    "slug": "the-loss-will-be-nan-when-i-use-loss-function-defined-by-torch-nn-function-mse-loss",349    "category_id": 1,350    "word_count": 91,351    "deleted_at": null,352    "user_id": 41211,353    "featured_link": null,354    "pinned_globally": false,355    "pinned_at": null,356    "pinned_until": null,357    "image_url": null,358    "slow_mode_seconds": 0,359    "draft": null,360    "draft_key": "topic_109406",361    "draft_sequence": null,362    "unpinned": null,363    "pinned": false,364    "current_post_number": 1,365    "highest_post_number": 1,366    "deleted_by": null,367    "actions_summary": [368      {369        "id": 4,370        "count": 0,371        "hidden": false,372        "can_act": false373      },374      {375        "id": 8,376        "count": 0,377        "hidden": false,378        "can_act": false379      },380      {381        "id": 10,382        "count": 0,383        "hidden": false,384        "can_act": false385      },386      {387        "id": 7,388        "count": 0,389        "hidden": false,390        "can_act": false391      }392    ],393    "chunk_size": 20,394    "bookmarked": false,395    "topic_timer": null,396    "message_bus_last_id": 0,397    "participant_count": 1,398    "show_read_indicator": false,399    "thumbnails": null,400    "slow_mode_enabled_until": null,401    "can_vote": false,402    "vote_count": 0,403    "user_voted": false,404    "discourse_zendesk_plugin_zendesk_id": null,405    "discourse_zendesk_plugin_zendesk_url": "https://your-url.zendesk.com/agent/tickets/",406    "details": {407      "can_edit": false,408      "notification_level": 1,409      "participants": [410        {411          "id": 41211,412          "username": "Fangkang515",413          "name": "shuangkang fang",414          "avatar_template": "/user_avatar/discuss.pytorch.org/fangkang515/{size}/33626_2.png",415          "post_count": 1,416          "primary_group_name": null,417          "flair_name": null,418          "flair_url": null,419          "flair_color": null,420          "flair_bg_color": null,421          "flair_group_id": null,422          "trust_level": 1423        }424      ],425      "created_by": {426        "id": 41211,427        "username": "Fangkang515",428        "name": "shuangkang fang",429        "avatar_template": "/user_avatar/discuss.pytorch.org/fangkang515/{size}/33626_2.png"430      },431      "last_poster": {432        "id": 41211,433        "username": "Fangkang515",434        "name": "shuangkang fang",435        "avatar_template": "/user_avatar/discuss.pytorch.org/fangkang515/{size}/33626_2.png"436      }437    },438    "bookmarks": []439  },440  {441    "post_stream": {442      "posts": [443        {444          "id": 258222,445          "name": "",446          "username": "Johannes_L",447          "avatar_template": "/user_avatar/discuss.pytorch.org/johannes_l/{size}/30296_2.png",448          "created_at": "2021-01-20T07:59:33.750Z",449          "cooked": "<p>Hello!<br>\nI have one basic decision to make and don’t really know what’s the better way.<br>\nI am using a LSTM Network to classify time series. Later the network should work online so that every input state is classified.</p>\n<p>(1): Now, for training I could give a sliding window with the last n timesteps as input (n high enough/suitable for the task of course) and use the last output for the classification of the last time step (many-to-one)</p>\n<p>(2): I could also give a big sequence and use every output to classify every timestep in this sequence (many-to-many)</p>\n<p>Which is the better way to do it? In (1) I got for every timestep the same length of previous information. In (2), can I use a sliding window? Then every datapoint is used n times in one epoch with n=sliding_window_size.</p>\n<p>I’m thankful for any recommendations!</p>",450          "post_number": 1,451          "post_type": 1,452          "posts_count": 1,453          "updated_at": "2021-01-20T07:59:33.750Z",454          "reply_count": 0,455          "reply_to_post_number": null,456          "quote_count": 0,457          "incoming_link_count": 71,458          "reads": 6,459          "readers_count": 5,460          "score": 356.2,461          "yours": false,462          "topic_id": 109403,463          "topic_slug": "training-lstm-network-as-many-to-one-or-many-to-many",464          "display_username": "",465          "primary_group_name": null,466          "flair_name": null,467          "flair_url": null,468          "flair_bg_color": null,469          "flair_color": null,470          "flair_group_id": null,471          "badges_granted": [],472          "version": 1,473          "can_edit": false,474          "can_delete": false,475          "can_recover": false,476          "can_see_hidden_post": false,477          "can_wiki": false,478          "read": true,479          "user_title": "",480          "bookmarked": false,481          "actions_summary": [],482          "moderator": false,483          "admin": false,484          "staff": false,485          "user_id": 38182,486          "hidden": false,487          "trust_level": 1,488          "deleted_at": null,489          "user_deleted": false,490          "edit_reason": null,491          "can_view_edit_history": true,492          "wiki": false,493          "post_url": "/t/training-lstm-network-as-many-to-one-or-many-to-many/109403/1",494          "can_accept_answer": false,495          "can_unaccept_answer": false,496          "accepted_answer": false,497          "topic_accepted_answer": null,498          "can_vote": false499        }500      ],501      "stream": [502        258222503      ]504    },505    "timeline_lookup": [506      [507        1,508        1740509      ]510    ],511    "suggested_topics": [512      {513        "fancy_title": "Pytorch LSTM-VAE not able to learn",514        "id": 216945,515        "title": "Pytorch LSTM-VAE not able to learn",516        "slug": "pytorch-lstm-vae-not-able-to-learn",517        "posts_count": 1,518        "reply_count": 0,519        "highest_post_number": 1,520        "image_url": null,521        "created_at": "2025-02-20T13:07:20.715Z",522        "last_posted_at": "2025-02-20T13:07:20.803Z",523        "bumped": true,524        "bumped_at": "2025-02-20T13:07:20.803Z",525        "archetype": "regular",526        "unseen": false,527        "pinned": false,528        "unpinned": null,529        "visible": true,530        "closed": false,531        "archived": false,532        "bookmarked": null,533        "liked": null,534        "tags_descriptions": {},535        "like_count": 0,536        "views": 70,537        "category_id": 1,538        "featured_link": null,539        "has_accepted_answer": false,540        "posters": [541          {542            "extras": "latest single",543            "description": "Original Poster, Most Recent Poster",544            "user": {545              "id": 82476,546              "username": "remy",547              "name": "",548              "avatar_template": "/letter_avatar_proxy/v4/letter/r/71e660/{size}.png",549              "trust_level": 1550            }551          }552        ]553      },554      {555        "fancy_title": "Numpy is not avaiable when transfrom Torch tensor to numpy",556        "id": 213214,557        "title": "Numpy is not avaiable when transfrom Torch tensor to numpy",558        "slug": "numpy-is-not-avaiable-when-transfrom-torch-tensor-to-numpy",559        "posts_count": 2,560        "reply_count": 0,561        "highest_post_number": 2,562        "image_url": null,563        "created_at": "2024-11-20T16:23:48.805Z",564        "last_posted_at": "2024-11-20T21:45:13.447Z",565        "bumped": true,566        "bumped_at": "2024-11-20T21:45:13.447Z",567        "archetype": "regular",568        "unseen": false,569        "pinned": false,570        "unpinned": null,571        "visible": true,572        "closed": false,573        "archived": false,574        "bookmarked": null,575        "liked": null,576        "tags_descriptions": {},577        "like_count": 0,578        "views": 178,579        "category_id": 1,580        "featured_link": null,581        "has_accepted_answer": false,582        "posters": [583          {584            "extras": null,585            "description": "Original Poster",586            "user": {587              "id": 55933,588              "username": "miraboreasu",589              "name": "",590              "avatar_template": "/letter_avatar_proxy/v4/letter/m/6bbea6/{size}.png",591              "trust_level": 1592            }593          },594          {595            "extras": "latest",596            "description": "Most Recent Poster",597            "user": {598              "id": 3534,599              "username": "ptrblck",600              "name": "",601              "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",602              "admin": true,603              "moderator": true,604              "trust_level": 2605            }606          }607        ]608      },609      {610        "fancy_title": "How to traverse and copy a CNN pre-trained model by entering layer by layer?",611        "id": 212205,612        "title": "How to traverse and copy a CNN pre-trained model by entering layer by layer?",613        "slug": "how-to-traverse-and-copy-a-cnn-pre-trained-model-by-entering-layer-by-layer",614        "posts_count": 1,615        "reply_count": 0,616        "highest_post_number": 1,617        "image_url": null,618        "created_at": "2024-10-28T11:44:29.007Z",619        "last_posted_at": "2024-10-28T11:44:29.070Z",620        "bumped": true,621        "bumped_at": "2024-10-28T11:47:56.582Z",622        "archetype": "regular",623        "unseen": false,624        "pinned": false,625        "unpinned": null,626        "visible": true,627        "closed": false,628        "archived": false,629        "bookmarked": null,630        "liked": null,631        "tags_descriptions": {},632        "like_count": 0,633        "views": 30,634        "category_id": 1,635        "featured_link": null,636        "has_accepted_answer": false,637        "posters": [638          {639            "extras": "latest single",640            "description": "Original Poster, Most Recent Poster",641            "user": {642              "id": 77235,643              "username": "gota_12",644              "name": "Juan José Martín Osuna",645              "avatar_template": "/letter_avatar_proxy/v4/letter/g/54ee81/{size}.png",646              "trust_level": 1647            }648          }649        ]650      },651      {652        "fancy_title": "Pytorch install is that large? 5 Gbs?",653        "id": 213629,654        "title": "Pytorch install is that large? 5 Gbs?",655        "slug": "pytorch-install-is-that-large-5-gbs",656        "posts_count": 4,657        "reply_count": 0,658        "highest_post_number": 6,659        "image_url": null,660        "created_at": "2024-11-30T04:12:34.904Z",661        "last_posted_at": "2025-02-14T22:26:13.056Z",662        "bumped": true,663        "bumped_at": "2025-02-14T22:26:13.056Z",664        "archetype": "regular",665        "unseen": false,666        "pinned": false,667        "unpinned": null,668        "visible": true,669        "closed": false,670        "archived": false,671        "bookmarked": null,672        "liked": null,673        "tags_descriptions": {},674        "like_count": 2,675        "views": 2824,676        "category_id": 1,677        "featured_link": null,678        "has_accepted_answer": false,679        "posters": [680          {681            "extras": null,682            "description": "Original Poster",683            "user": {684              "id": 44461,685              "username": "JonathanAlis",686              "name": "Jonathan Alis Lima",687              "avatar_template": "/user_avatar/discuss.pytorch.org/jonathanalis/{size}/37279_2.png",688              "trust_level": 1689            }690          },691          {692            "extras": null,693            "description": "Frequent Poster",694            "user": {695              "id": 3534,696              "username": "ptrblck",697              "name": "",698              "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",699              "admin": true,700              "moderator": true,701              "trust_level": 2702            }703          },704          {705            "extras": null,706            "description": "Frequent Poster",707            "user": {708              "id": 76507,709              "username": "N_N_miko",710              "name": "-N_N- miko",711              "avatar_template": "/user_avatar/discuss.pytorch.org/n_n_miko/{size}/70619_2.png",712              "trust_level": 0713            }714          },715          {716            "extras": "latest",717            "description": "Most Recent Poster",718            "user": {719              "id": 82697,720              "username": "dariox",721              "name": "",722              "avatar_template": "/user_avatar/discuss.pytorch.org/dariox/{size}/75665_2.png",723              "trust_level": 0724            }725          }726        ]727      },728      {729        "fancy_title": "Aten arange behavior when dtype is int64 and step size is greater than range",730        "id": 217735,731        "title": "Aten arange behavior when dtype is int64 and step size is greater than range",732        "slug": "aten-arange-behavior-when-dtype-is-int64-and-step-size-is-greater-than-range",733        "posts_count": 3,734        "reply_count": 0,735        "highest_post_number": 3,736        "image_url": null,737        "created_at": "2025-03-12T08:57:33.017Z",738        "last_posted_at": "2025-03-13T03:12:02.406Z",739        "bumped": true,740        "bumped_at": "2025-03-13T03:12:02.406Z",741        "archetype": "regular",742        "unseen": false,743        "pinned": false,744        "unpinned": null,745        "visible": true,746        "closed": false,747        "archived": false,748        "bookmarked": null,749        "liked": null,750        "tags_descriptions": {},751        "like_count": 0,752        "views": 70,753        "category_id": 1,754        "featured_link": null,755        "has_accepted_answer": false,756        "posters": [757          {758            "extras": "latest",759            "description": "Original Poster, Most Recent Poster",760            "user": {761              "id": 82913,762              "username": "satheeshhab",763              "name": "satheesh babu sudarsanan",764              "avatar_template": "/user_avatar/discuss.pytorch.org/satheeshhab/{size}/75859_2.png",765              "trust_level": 0766            }767          },768          {769            "extras": null,770            "description": "Frequent Poster",771            "user": {772              "id": 18088,773              "username": "KFrank",774              "name": "K. Frank",775              "avatar_template": "/letter_avatar_proxy/v4/letter/k/ecb155/{size}.png",776              "trust_level": 2777            }778          }779        ]780      }781    ],782    "tags_descriptions": {},783    "fancy_title": "Training LSTM Network as many-to-one or many-to-many",784    "id": 109403,785    "title": "Training LSTM Network as many-to-one or many-to-many",786    "posts_count": 1,787    "created_at": "2021-01-20T07:59:33.688Z",788    "views": 413,789    "reply_count": 0,790    "like_count": 0,791    "last_posted_at": "2021-01-20T07:59:33.750Z",792    "visible": true,793    "closed": false,794    "archived": false,795    "has_summary": false,796    "archetype": "regular",797    "slug": "training-lstm-network-as-many-to-one-or-many-to-many",798    "category_id": 1,799    "word_count": 153,800    "deleted_at": null,801    "user_id": 38182,802    "featured_link": null,803    "pinned_globally": false,804    "pinned_at": null,805    "pinned_until": null,806    "image_url": null,807    "slow_mode_seconds": 0,808    "draft": null,809    "draft_key": "topic_109403",810    "draft_sequence": null,811    "unpinned": null,812    "pinned": false,813    "current_post_number": 1,814    "highest_post_number": 1,815    "deleted_by": null,816    "actions_summary": [817      {818        "id": 4,819        "count": 0,820        "hidden": false,821        "can_act": false822      },823      {824        "id": 8,825        "count": 0,826        "hidden": false,827        "can_act": false828      },829      {830        "id": 10,831        "count": 0,832        "hidden": false,833        "can_act": false834      },835      {836        "id": 7,837        "count": 0,838        "hidden": false,839        "can_act": false840      }841    ],842    "chunk_size": 20,843    "bookmarked": false,844    "topic_timer": null,845    "message_bus_last_id": 0,846    "participant_count": 1,847    "show_read_indicator": false,848    "thumbnails": null,849    "slow_mode_enabled_until": null,850    "can_vote": false,851    "vote_count": 0,852    "user_voted": false,853    "discourse_zendesk_plugin_zendesk_id": null,854    "discourse_zendesk_plugin_zendesk_url": "https://your-url.zendesk.com/agent/tickets/",855    "details": {856      "can_edit": false,857      "notification_level": 1,858      "participants": [859        {860          "id": 38182,861          "username": "Johannes_L",862          "name": "",863          "avatar_template": "/user_avatar/discuss.pytorch.org/johannes_l/{size}/30296_2.png",864          "post_count": 1,865          "primary_group_name": null,866          "flair_name": null,867          "flair_url": null,868          "flair_color": null,869          "flair_bg_color": null,870          "flair_group_id": null,871          "trust_level": 1872        }873      ],874      "created_by": {875        "id": 38182,876        "username": "Johannes_L",877        "name": "",878        "avatar_template": "/user_avatar/discuss.pytorch.org/johannes_l/{size}/30296_2.png"879      },880      "last_poster": {881        "id": 38182,882        "username": "Johannes_L",883        "name": "",884        "avatar_template": "/user_avatar/discuss.pytorch.org/johannes_l/{size}/30296_2.png"885      }886    },887    "bookmarks": []888  },889  {890    "post_stream": {891      "posts": [892        {893          "id": 257879,894          "name": "",895          "username": "danielmanu93",896          "avatar_template": "/letter_avatar_proxy/v4/letter/d/a88e4f/{size}.png",897          "created_at": "2021-01-18T21:36:45.945Z",898          "cooked": "<p>Hi everyone, I am trying to train a graph neural network on a PPI dataset. The code below shows a part of a code that passes messages from neighboring nodes through connecting edges. I get Type error as shown in the image below when I run this code through an import from the main program. From the error message, the error is from line 83, specifically \"edge_index[idx] which returns a “none” instead of an element corresponding to an idx value in the array. But when I print the “idx”, it returns “1” so it should probably return index 1 element from the edge_index array but returns a “none” instead which throws an error. See attached the images.</p>\n<p><img src=\"https://discuss.pytorch.org/uploads/default/original/3X/e/a/ea39f9f7ccf74dd955c3ae6424e1f453e074acc0.jpeg\" alt=\"1\" data-base62-sha1=\"xq3Wp9XEy7I2N6Ms5yF0COSQE8M\" width=\"581\" height=\"414\"></p>\n<p><div class=\"lightbox-wrapper\"><a class=\"lightbox\" href=\"https://discuss.pytorch.org/uploads/default/original/3X/7/2/72d10e9c95f813c65de388edfb8d2e6b2bb3dd60.jpeg\" data-download-href=\"https://discuss.pytorch.org/uploads/default/72d10e9c95f813c65de388edfb8d2e6b2bb3dd60\" title=\"2\"><img src=\"https://discuss.pytorch.org/uploads/default/optimized/3X/7/2/72d10e9c95f813c65de388edfb8d2e6b2bb3dd60_2_690x70.jpeg\" alt=\"2\" data-base62-sha1=\"gnIkJfzEunTIga2A30pOB1PlKx2\" width=\"690\" height=\"70\" srcset=\"https://discuss.pytorch.org/uploads/default/optimized/3X/7/2/72d10e9c95f813c65de388edfb8d2e6b2bb3dd60_2_690x70.jpeg, https://discuss.pytorch.org/uploads/default/original/3X/7/2/72d10e9c95f813c65de388edfb8d2e6b2bb3dd60.jpeg 1.5x, https://discuss.pytorch.org/uploads/default/original/3X/7/2/72d10e9c95f813c65de388edfb8d2e6b2bb3dd60.jpeg 2x\" data-dominant-color=\"313131\"><div class=\"meta\"><svg class=\"fa d-icon d-icon-far-image svg-icon\" aria-hidden=\"true\"><use href=\"#far-image\"></use></svg><span class=\"filename\">2</span><span class=\"informations\">721×74 26.5 KB</span><svg class=\"fa d-icon d-icon-discourse-expand svg-icon\" aria-hidden=\"true\"><use href=\"#discourse-expand\"></use></svg></div></a></div></p>",899          "post_number": 1,900          "post_type": 1,901          "posts_count": 6,902          "updated_at": "2021-01-18T21:39:02.703Z",903          "reply_count": 0,904          "reply_to_post_number": null,905          "quote_count": 0,906          "incoming_link_count": 1633,907          "reads": 16,908          "readers_count": 15,909          "score": 8163.2,910          "yours": false,911          "topic_id": 109239,912          "topic_slug": "typeerror-index-select-received-an-invalid-combination-of-arguments-got-tensor-int-nonetype-but-expected-one-of-tensor-input-name-dim-tensor-index-tensor-out",913          "display_username": "",914          "primary_group_name": null,915          "flair_name": null,916          "flair_url": null,917          "flair_bg_color": null,918          "flair_color": null,919          "flair_group_id": null,920          "badges_granted": [],921          "version": 1,922          "can_edit": false,923          "can_delete": false,924          "can_recover": false,925          "can_see_hidden_post": false,926          "can_wiki": false,927          "link_counts": [928            {929              "url": "https://discuss.pytorch.org/uploads/default/original/3X/7/2/72d10e9c95f813c65de388edfb8d2e6b2bb3dd60.jpeg",930              "internal": true,931              "reflection": false,932              "clicks": 0933            }934          ],935          "read": true,936          "user_title": null,937          "bookmarked": false,938          "actions_summary": [],939          "moderator": false,940          "admin": false,941          "staff": false,942          "user_id": 40263,943          "hidden": false,944          "trust_level": 1,945          "deleted_at": null,946          "user_deleted": false,947          "edit_reason": null,948          "can_view_edit_history": true,949          "wiki": false,950          "post_url": "/t/typeerror-index-select-received-an-invalid-combination-of-arguments-got-tensor-int-nonetype-but-expected-one-of-tensor-input-name-dim-tensor-index-tensor-out/109239/1",951          "can_accept_answer": false,952          "can_unaccept_answer": false,953          "accepted_answer": false,954          "topic_accepted_answer": null,955          "can_vote": false956        },957        {958          "id": 258174,959          "name": "",960          "username": "ptrblck",961          "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",962          "created_at": "2021-01-20T02:57:03.895Z",963          "cooked": "<p>What were the <code>print</code> statements returning in the iteration before this error is raised?<br>\nDid you make sure that <code>edge_index[idx]</code> returned a valid tensor? If so, could you post an executable code snippet to reproduce this issue?</p>",964          "post_number": 2,965          "post_type": 1,966          "posts_count": 6,967          "updated_at": "2021-01-20T02:57:03.895Z",968          "reply_count": 1,969          "reply_to_post_number": null,970          "quote_count": 0,971          "incoming_link_count": 5,972          "reads": 15,973          "readers_count": 14,974          "score": 33.0,975          "yours": false,976          "topic_id": 109239,977          "topic_slug": "typeerror-index-select-received-an-invalid-combination-of-arguments-got-tensor-int-nonetype-but-expected-one-of-tensor-input-name-dim-tensor-index-tensor-out",978          "display_username": "",979          "primary_group_name": null,980          "flair_name": null,981          "flair_url": null,982          "flair_bg_color": null,983          "flair_color": null,984          "flair_group_id": null,985          "badges_granted": [],986          "version": 1,987          "can_edit": false,988          "can_delete": false,989          "can_recover": false,990          "can_see_hidden_post": false,991          "can_wiki": false,992          "read": true,993          "user_title": "",994          "bookmarked": false,995          "actions_summary": [],996          "moderator": true,997          "admin": true,998          "staff": true,999          "user_id": 3534,1000          "hidden": false,1001          "trust_level": 2,1002          "deleted_at": null,1003          "user_deleted": false,1004          "edit_reason": null,1005          "can_view_edit_history": true,1006          "wiki": false,1007          "post_url": "/t/typeerror-index-select-received-an-invalid-combination-of-arguments-got-tensor-int-nonetype-but-expected-one-of-tensor-input-name-dim-tensor-index-tensor-out/109239/2",1008          "can_accept_answer": false,1009          "can_unaccept_answer": false,1010          "accepted_answer": false,1011          "topic_accepted_answer": null1012        },1013        {1014          "id": 258181,1015          "name": "",1016          "username": "danielmanu93",1017          "avatar_template": "/letter_avatar_proxy/v4/letter/d/a88e4f/{size}.png",1018          "created_at": "2021-01-20T03:26:18.703Z",1019          "cooked": "<p><a class=\"mention\" href=\"/u/ptrblck\">@ptrblck</a>, the results for the print statements are shown in the image below. The tensor is the edge_index tuple with size “none”, “idx” prints “1” and edge_index[idx] prints a “none”.<br>\nWith the posting of executable code to reproduce the issue, that will be a lot of code files to post because I’m running the main program which import a lot of different python files to execute including this message passing code. Probably I can post the full message passing code so that you can have a look.<br>\n<img src=\"https://discuss.pytorch.org/uploads/default/original/3X/6/c/6c0ba9cd2c1a39d25ef603a7e0bbeb6f6e189bc1.jpeg\" alt=\"3\" data-base62-sha1=\"fpOyqw58fuDGjILB1dHZZD8crT3\" width=\"422\" height=\"57\"></p>",1020          "post_number": 3,1021          "post_type": 1,1022          "posts_count": 6,1023          "updated_at": "2021-01-20T03:26:18.703Z",1024          "reply_count": 1,1025          "reply_to_post_number": 2,1026          "quote_count": 0,1027          "incoming_link_count": 2,1028          "reads": 15,1029          "readers_count": 14,1030          "score": 18.0,1031          "yours": false,1032          "topic_id": 109239,1033          "topic_slug": "typeerror-index-select-received-an-invalid-combination-of-arguments-got-tensor-int-nonetype-but-expected-one-of-tensor-input-name-dim-tensor-index-tensor-out",1034          "display_username": "",1035          "primary_group_name": null,1036          "flair_name": null,1037          "flair_url": null,1038          "flair_bg_color": null,1039          "flair_color": null,1040          "flair_group_id": null,1041          "badges_granted": [],1042          "version": 1,1043          "can_edit": false,1044          "can_delete": false,1045          "can_recover": false,1046          "can_see_hidden_post": false,1047          "can_wiki": false,1048          "read": true,1049          "user_title": null,1050          "reply_to_user": {1051            "id": 3534,1052            "username": "ptrblck",1053            "name": "",1054            "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png"1055          },1056          "bookmarked": false,1057          "actions_summary": [],1058          "moderator": false,1059          "admin": false,1060          "staff": false,1061          "user_id": 40263,1062          "hidden": false,1063          "trust_level": 1,1064          "deleted_at": null,1065          "user_deleted": false,1066          "edit_reason": null,1067          "can_view_edit_history": true,1068          "wiki": false,1069          "post_url": "/t/typeerror-index-select-received-an-invalid-combination-of-arguments-got-tensor-int-nonetype-but-expected-one-of-tensor-input-name-dim-tensor-index-tensor-out/109239/3",1070          "can_accept_answer": false,1071          "can_unaccept_answer": false,1072          "accepted_answer": false,1073          "topic_accepted_answer": null1074        },1075        {1076          "id": 258182,1077          "name": "",1078          "username": "danielmanu93",1079          "avatar_template": "/letter_avatar_proxy/v4/letter/d/a88e4f/{size}.png",1080          "created_at": "2021-01-20T03:38:55.043Z",1081          "cooked": "<p>Here is the full message passing code:</p>\n<p>import inspect<br>\nimport torch<br>\nfrom torch_geometric.utils import scatter_</p>\n<p>class MessagePassing(torch.nn.Module):<br>\ndef <strong>init</strong>(self, aggr=‘add’, flow=‘source_to_target’):<br>\nsuper(MessagePassing, self).<strong>init</strong>()</p>\n<pre><code>    self.aggr = aggr\n    assert self.aggr in ['add', 'mean', 'max']\n\n    self.flow = flow\n    assert self.flow in ['source_to_target', 'target_to_source']\n\n    self.message_args = inspect.getargspec(self.message)[0][1:]\n    self.update_args = inspect.getargspec(self.update)[0][2:]\n\ndef propagate(self, edge_index, size=None, **kwargs):\n    r\"\"\"The initial call to start propagating messages.\n\n    Args:\n        edge_index (Tensor): The indices of a general (sparse) assignment\n            matrix with shape :obj:`[N, M]` (can be directed or\n            undirected).\n        size (list or tuple, optional): The size :obj:`[N, M]` of the\n            assignment matrix. If set to :obj:`None`, the size is tried to\n            get automatically inferrred. (default: :obj:`None`)\n        **kwargs: Any additional data which is needed to construct messages\n            and to update node embeddings.\n    \"\"\"\n\n    size = [None, None] if size is None else list(size)\n    assert len(size) == 2\n\n    kwargs['edge_index'] = edge_index\n    i, j = (0, 1) if self.flow == 'target_to_source' else (1, 0)\n    ij = {\"_i\": i, \"_j\": j}\n    \n    message_args = []\n    for arg in self.message_args:\n        if arg[-2:] in ij.keys():\n            tmp = kwargs[arg[:-2]]\n            if tmp is None:\n                message_args.append(tmp)\n            else:\n                idx = ij[arg[-2:]]\n                if isinstance(tmp, tuple):\n                    assert len(tmp) == 2\n                    if size[1 - idx] is None:\n                        size[1 - idx] = tmp[1 - idx].size(0)\n                    tmp = tmp[idx]\n\n                if size[idx] is None:\n                    size[idx] = tmp.size(0)\n                #print(edge_index)\n                #print(edge_index[idx])\n                #print(idx)\n                tmp = torch.index_select(tmp, 0, edge_index[idx])\n                message_args.append(tmp)\n        else:\n            message_args.append(kwargs[arg])\n\n    size[0] = size[1] if size[0] is None else size[0]\n    size[1] = size[0] if size[1] is None else size[1]\n\n    kwargs['size'] = size\n    update_args = [kwargs[arg] for arg in self.update_args]\n\n    out = self.message(*message_args)\n    if self.aggr in [\"add\", \"mean\", \"max\"]:\n        out = scatter_(self.aggr, out, edge_index[i], dim_size=size[i])\n    else:\n        pass\n    out = self.update(out, *update_args)\n\n    return out\n\ndef message(self, x_j):  # pragma: no cover\n    return x_j\n\ndef update(self, aggr_out):  # pragma: no cover\n    return aggr_out</code></pre>",1082          "post_number": 4,1083          "post_type": 1,1084          "posts_count": 6,1085          "updated_at": "2021-01-23T23:25:56.721Z",1086          "reply_count": 1,1087          "reply_to_post_number": 3,1088          "quote_count": 0,1089          "incoming_link_count": 17,1090          "reads": 13,1091          "readers_count": 12,1092          "score": 92.6,1093          "yours": false,1094          "topic_id": 109239,1095          "topic_slug": "typeerror-index-select-received-an-invalid-combination-of-arguments-got-tensor-int-nonetype-but-expected-one-of-tensor-input-name-dim-tensor-index-tensor-out",1096          "display_username": "",1097          "primary_group_name": null,1098          "flair_name": null,1099          "flair_url": null,1100          "flair_bg_color": null,1101          "flair_color": null,1102          "flair_group_id": null,1103          "badges_granted": [],1104          "version": 3,1105          "can_edit": false,1106          "can_delete": false,1107          "can_recover": false,1108          "can_see_hidden_post": false,1109          "can_wiki": false,1110          "read": true,1111          "user_title": null,1112          "reply_to_user": {1113            "id": 40263,1114            "username": "danielmanu93",1115            "name": "",1116            "avatar_template": "/letter_avatar_proxy/v4/letter/d/a88e4f/{size}.png"1117          },1118          "bookmarked": false,1119          "actions_summary": [],1120          "moderator": false,1121          "admin": false,1122          "staff": false,1123          "user_id": 40263,1124          "hidden": false,1125          "trust_level": 1,1126          "deleted_at": null,1127          "user_deleted": false,1128          "edit_reason": null,1129          "can_view_edit_history": true,1130          "wiki": false,1131          "post_url": "/t/typeerror-index-select-received-an-invalid-combination-of-arguments-got-tensor-int-nonetype-but-expected-one-of-tensor-input-name-dim-tensor-index-tensor-out/109239/4",1132          "can_accept_answer": false,1133          "can_unaccept_answer": false,1134          "accepted_answer": false,1135          "topic_accepted_answer": null1136        },1137        {1138          "id": 258209,1139          "name": "",1140          "username": "ptrblck",1141          "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",1142          "created_at": "2021-01-20T06:58:39.605Z",1143          "cooked": "<p>Based on the posted outputs it seems <code>edge_index</code> is a <code>tuple</code> containing a tensor and <code>None</code>.<br>\nIf <code>idx</code> is set to <code>1</code>, you would index the <code>tuple</code> and get the <code>None</code> value as the return value.<br>\nI’m not sure what the <code>None</code> represents, but in case you want to index the stored tensor, you would have to use <code>edge_index[0][idx]</code>.</p>",1144          "post_number": 5,1145          "post_type": 1,1146          "posts_count": 6,1147          "updated_at": "2021-01-20T06:58:39.605Z",1148          "reply_count": 1,1149          "reply_to_post_number": 4,1150          "quote_count": 0,1151          "incoming_link_count": 6,1152          "reads": 10,1153          "readers_count": 9,1154          "score": 37.0,1155          "yours": false,1156          "topic_id": 109239,1157          "topic_slug": "typeerror-index-select-received-an-invalid-combination-of-arguments-got-tensor-int-nonetype-but-expected-one-of-tensor-input-name-dim-tensor-index-tensor-out",1158          "display_username": "",1159          "primary_group_name": null,1160          "flair_name": null,1161          "flair_url": null,1162          "flair_bg_color": null,1163          "flair_color": null,1164          "flair_group_id": null,1165          "badges_granted": [],1166          "version": 1,1167          "can_edit": false,1168          "can_delete": false,1169          "can_recover": false,1170          "can_see_hidden_post": false,1171          "can_wiki": false,1172          "read": true,1173          "user_title": "",1174          "reply_to_user": {1175            "id": 40263,1176            "username": "danielmanu93",1177            "name": "",1178            "avatar_template": "/letter_avatar_proxy/v4/letter/d/a88e4f/{size}.png"1179          },1180          "bookmarked": false,1181          "actions_summary": [],1182          "moderator": true,1183          "admin": true,1184          "staff": true,1185          "user_id": 3534,1186          "hidden": false,1187          "trust_level": 2,1188          "deleted_at": null,1189          "user_deleted": false,1190          "edit_reason": null,1191          "can_view_edit_history": true,1192          "wiki": false,1193          "post_url": "/t/typeerror-index-select-received-an-invalid-combination-of-arguments-got-tensor-int-nonetype-but-expected-one-of-tensor-input-name-dim-tensor-index-tensor-out/109239/5",1194          "can_accept_answer": false,1195          "can_unaccept_answer": false,1196          "accepted_answer": false,1197          "topic_accepted_answer": null1198        },1199        {1200          "id": 258216,

Showing the first 1,200 of 62589 lines. Download the file for the rest.