Anurag1734/cuda-error-resolution-analysis
07
1[2 {3 "post_stream": {4 "posts": [5 {6 "id": 124488,7 "name": "Freeman G",8 "username": "FreemanG",9 "avatar_template": "/user_avatar/discuss.pytorch.org/freemang/{size}/14283_2.png",10 "created_at": "2019-07-21T09:22:12.683Z",11 "cooked": "<p>I am using pytorch 1.1 (python 3.6, cuda 10, ubuntu 18.04).<br>\nTest with an official imagenet code <a href=\"https://github.com/pytorch/examples/tree/master/imagenet\" rel=\"nofollow noopener\">pytorch example imagenet</a>.</p>\n<p>Kept running into an unspecified launch failure:</p>\n<pre><code class=\"lang-auto\">terminate called after throwing an instance of 'c10::Error' \n what(): CUDA error: unspecified launch failure (insert_events at /pytorch/c10/cuda/CUDACachingAllo\ncator.cpp:564)\nframe #0: std::function<std::string ()>::operator()() const + 0x11 (0x7fe33af7f441 in /home/ana\nconda3/envs/pt1.1/lib/python3.6/site-packages/torch/lib/libc10.so) \nframe #1: c10::Error::Error(c10::SourceLocation, std::string const&) + 0x2a (0x7fe33af7ed7a in /home/\nanaconda3/envs/pt1.1/lib/python3.6/site-packages/torch/lib/libc10.so) \nframe #2: <unknown function> + 0x13652 (0x7fe33a51e652 in /home/anaconda3/envs/pt1.1/lib/python\n3.6/site-packages/torch/lib/libc10_cuda.so) \nframe #3: c10::TensorImpl::release_resources() + 0x50 (0x7fe33af6fce0 in /home/anaconda3/envs/p\nt1.1/lib/python3.6/site-packages/torch/lib/libc10.so) \nframe #4: <unknown function> + 0x30facb (0x7fe2d6406acb in /home/anaconda3/envs/pt1.1/lib/pytho\nn3.6/site-packages/torch/lib/libtorch.so.1) \nframe #5: <unknown function> + 0x1420bb (0x7fe33b5080bb in /home/anaconda3/envs/pt1.1/lib/pytho\nn3.6/site-packages/torch/lib/libtorch_python.so) \nframe #6: <unknown function> + 0x6be7c1 (0x7fe33ba847c1 in /home/anaconda3/envs/pt1.1/lib/pytho\nn3.6/site-packages/torch/lib/libtorch_python.so) \nframe #7: std::_Sp_counted_ptr<c10d::Reducer*, (__gnu_cxx::_Lock_policy)2>::_M_dispose() + 0x12 (0x7f\ne33ba84902 in /home/anaconda3/envs/pt1.1/lib/python3.6/site-packages/torch/lib/libtorch_python.\nso) \nframe #8: std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() + 0xa2 (0x7fe33b4e4bb2 in /\nhome/anaconda3/envs/pt1.1/lib/python3.6/site-packages/torch/lib/libtorch_python.so) \nframe #9: <unknown function> + 0x6b375b (0x7fe33ba7975b in /home/anaconda3/envs/pt1.1/lib/pytho\nn3.6/site-packages/torch/lib/libtorch_python.so) \nframe #10: <unknown function> + 0x12fbc7 (0x7fe33b4f5bc7 in /home/anaconda3/envs/pt1.1/lib/pyth\non3.6/site-packages/torch/lib/libtorch_python.so) \nframe #11: <unknown function> + 0x12fe2e (0x7fe33b4f5e2e in /home/anaconda3/envs/pt1.1/lib/pyth\non3.6/site-packages/torch/lib/libtorch_python.so)\n...\n\n-- Process 0 terminated with the following error:\nTraceback (most recent call last):\n File \"/home/anaconda3/envs/pt1.1/lib/python3.6/site-packages/torch/multiprocessing/spawn.py\",\n line 19, in _wrap\n fn(i, *args)\n File \"/share/imagenet/main.py\", line 238, in main_worker\n train(train_loader, model, criterion, optimizer, epoch, args)\n File \"/share/imagenet/main.py\", line 301, in train\n progress.display(i)\n File \"/share/imagenet/main.py\", line 386, in display\n entries += [str(meter) for meter in self.meters]\n File \"/share/imagenet/main.py\", line 386, in <listcomp>\n entries += [str(meter) for meter in self.meters]\n File \"/share/imagenet/main.py\", line 375, in __str__\n return fmtstr.format(**self.__dict__)\n File \"/home/anaconda3/envs/pt1.1/lib/python3.6/site-packages/torch/tensor.py\", line 386, in $\n_format__\n return self.item().__format__(format_spec)\nRuntimeError: CUDA error: unspecified launch failure\n</code></pre>",12 "post_number": 1,13 "post_type": 1,14 "posts_count": 4,15 "updated_at": "2019-07-21T09:22:12.683Z",16 "reply_count": 0,17 "reply_to_post_number": null,18 "quote_count": 0,19 "incoming_link_count": 5340,20 "reads": 130,21 "readers_count": 129,22 "score": 26666.0,23 "yours": false,24 "topic_id": 51191,25 "topic_slug": "terminate-called-after-throwing-an-instance-of-c10-error",26 "display_username": "Freeman G",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 "link_counts": [41 {42 "url": "https://github.com/pytorch/examples/tree/master/imagenet",43 "internal": false,44 "reflection": false,45 "title": "examples/imagenet at master · pytorch/examples · GitHub",46 "clicks": 747 }48 ],49 "read": true,50 "user_title": null,51 "bookmarked": false,52 "actions_summary": [],53 "moderator": false,54 "admin": false,55 "staff": false,56 "user_id": 20814,57 "hidden": false,58 "trust_level": 1,59 "deleted_at": null,60 "user_deleted": false,61 "edit_reason": null,62 "can_view_edit_history": true,63 "wiki": false,64 "post_url": "/t/terminate-called-after-throwing-an-instance-of-c10-error/51191/1",65 "can_accept_answer": false,66 "can_unaccept_answer": false,67 "accepted_answer": false,68 "topic_accepted_answer": null,69 "can_vote": false70 },71 {72 "id": 135826,73 "name": "Xiaqing Xu",74 "username": "sherylwang",75 "avatar_template": "/user_avatar/discuss.pytorch.org/sherylwang/{size}/1550_2.png",76 "created_at": "2019-09-20T03:33:48.282Z",77 "cooked": "<p>Have you solved the problem? I met the same error recently.</p>",78 "post_number": 2,79 "post_type": 1,80 "posts_count": 4,81 "updated_at": "2019-09-20T03:33:48.282Z",82 "reply_count": 0,83 "reply_to_post_number": null,84 "quote_count": 0,85 "incoming_link_count": 36,86 "reads": 117,87 "readers_count": 116,88 "score": 203.4,89 "yours": false,90 "topic_id": 51191,91 "topic_slug": "terminate-called-after-throwing-an-instance-of-c10-error",92 "display_username": "Xiaqing Xu",93 "primary_group_name": null,94 "flair_name": null,95 "flair_url": null,96 "flair_bg_color": null,97 "flair_color": null,98 "flair_group_id": null,99 "badges_granted": [],100 "version": 1,101 "can_edit": false,102 "can_delete": false,103 "can_recover": false,104 "can_see_hidden_post": false,105 "can_wiki": false,106 "read": true,107 "user_title": null,108 "bookmarked": false,109 "actions_summary": [],110 "moderator": false,111 "admin": false,112 "staff": false,113 "user_id": 3232,114 "hidden": false,115 "trust_level": 1,116 "deleted_at": null,117 "user_deleted": false,118 "edit_reason": null,119 "can_view_edit_history": true,120 "wiki": false,121 "post_url": "/t/terminate-called-after-throwing-an-instance-of-c10-error/51191/2",122 "can_accept_answer": false,123 "can_unaccept_answer": false,124 "accepted_answer": false,125 "topic_accepted_answer": null126 },127 {128 "id": 135862,129 "name": "Freeman G",130 "username": "FreemanG",131 "avatar_template": "/user_avatar/discuss.pytorch.org/freemang/{size}/14283_2.png",132 "created_at": "2019-09-20T08:50:38.362Z",133 "cooked": "<p>Actually, I am not sure how I solved this. After I re-installed pytorch, cuda/cudnn, nvidia-driver, the problem had gone away.</p>\n<p>Also, this could be a hardware problem, since the problem occured on a flawed workstation (multi-gpu training might make it crash).</p>",134 "post_number": 3,135 "post_type": 1,136 "posts_count": 4,137 "updated_at": "2019-09-20T08:50:38.362Z",138 "reply_count": 0,139 "reply_to_post_number": null,140 "quote_count": 0,141 "incoming_link_count": 48,142 "reads": 113,143 "readers_count": 112,144 "score": 257.6,145 "yours": false,146 "topic_id": 51191,147 "topic_slug": "terminate-called-after-throwing-an-instance-of-c10-error",148 "display_username": "Freeman G",149 "primary_group_name": null,150 "flair_name": null,151 "flair_url": null,152 "flair_bg_color": null,153 "flair_color": null,154 "flair_group_id": null,155 "badges_granted": [],156 "version": 1,157 "can_edit": false,158 "can_delete": false,159 "can_recover": false,160 "can_see_hidden_post": false,161 "can_wiki": false,162 "read": true,163 "user_title": null,164 "bookmarked": false,165 "actions_summary": [],166 "moderator": false,167 "admin": false,168 "staff": false,169 "user_id": 20814,170 "hidden": false,171 "trust_level": 1,172 "deleted_at": null,173 "user_deleted": false,174 "edit_reason": null,175 "can_view_edit_history": true,176 "wiki": false,177 "post_url": "/t/terminate-called-after-throwing-an-instance-of-c10-error/51191/3",178 "can_accept_answer": false,179 "can_unaccept_answer": false,180 "accepted_answer": false,181 "topic_accepted_answer": null182 },183 {184 "id": 331394,185 "name": "Ziyu Huang",186 "username": "Ziyu_Huang",187 "avatar_template": "/user_avatar/discuss.pytorch.org/ziyu_huang/{size}/14158_2.png",188 "created_at": "2022-02-14T14:42:12.499Z",189 "cooked": "<p>I met a same problem when I am running 2 GPU task on school’s server…But I rerun it and it disappear! Maybe this is just hardware communication occational problem…</p>",190 "post_number": 4,191 "post_type": 1,192 "posts_count": 4,193 "updated_at": "2022-02-14T14:42:12.499Z",194 "reply_count": 0,195 "reply_to_post_number": null,196 "quote_count": 0,197 "incoming_link_count": 37,198 "reads": 45,199 "readers_count": 44,200 "score": 194.0,201 "yours": false,202 "topic_id": 51191,203 "topic_slug": "terminate-called-after-throwing-an-instance-of-c10-error",204 "display_username": "Ziyu Huang",205 "primary_group_name": null,206 "flair_name": null,207 "flair_url": null,208 "flair_bg_color": null,209 "flair_color": null,210 "flair_group_id": null,211 "badges_granted": [],212 "version": 1,213 "can_edit": false,214 "can_delete": false,215 "can_recover": false,216 "can_see_hidden_post": false,217 "can_wiki": false,218 "read": true,219 "user_title": null,220 "bookmarked": false,221 "actions_summary": [],222 "moderator": false,223 "admin": false,224 "staff": false,225 "user_id": 33077,226 "hidden": false,227 "trust_level": 2,228 "deleted_at": null,229 "user_deleted": false,230 "edit_reason": null,231 "can_view_edit_history": true,232 "wiki": false,233 "post_url": "/t/terminate-called-after-throwing-an-instance-of-c10-error/51191/4",234 "can_accept_answer": false,235 "can_unaccept_answer": false,236 "accepted_answer": false,237 "topic_accepted_answer": null238 }239 ],240 "stream": [241 124488,242 135826,243 135862,244 331394245 ]246 },247 "timeline_lookup": [248 [249 1,250 2288251 ],252 [253 2,254 2228255 ],256 [257 4,258 1349259 ]260 ],261 "suggested_topics": [262 {263 "fancy_title": "Torch not enabled with CUDA",264 "id": 220565,265 "title": "Torch not enabled with CUDA",266 "slug": "torch-not-enabled-with-cuda",267 "posts_count": 7,268 "reply_count": 5,269 "highest_post_number": 7,270 "image_url": "https://discuss.pytorch.org/uploads/default/original/3X/3/6/36c74f46b2cc8f9026f6f874cbc80f0c02d9140e.jpeg",271 "created_at": "2025-06-04T08:20:59.925Z",272 "last_posted_at": "2025-06-06T17:40:17.037Z",273 "bumped": true,274 "bumped_at": "2025-06-06T17:40:17.037Z",275 "archetype": "regular",276 "unseen": false,277 "pinned": false,278 "unpinned": null,279 "visible": true,280 "closed": false,281 "archived": false,282 "bookmarked": null,283 "liked": null,284 "tags_descriptions": {},285 "like_count": 0,286 "views": 210,287 "category_id": 14,288 "featured_link": null,289 "has_accepted_answer": true,290 "posters": [291 {292 "extras": "latest",293 "description": "Original Poster, Most Recent Poster, Accepted Answer",294 "user": {295 "id": 84576,296 "username": "shaheembacker",297 "name": "Shaheem Backer",298 "avatar_template": "/letter_avatar_proxy/v4/letter/s/838e76/{size}.png",299 "trust_level": 0300 }301 },302 {303 "extras": null,304 "description": "Frequent Poster",305 "user": {306 "id": 3534,307 "username": "ptrblck",308 "name": "",309 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",310 "admin": true,311 "moderator": true,312 "trust_level": 2313 }314 }315 ]316 },317 {318 "fancy_title": "Problems with RTX5090 in compatibility with PyTorch",319 "id": 221446,320 "title": "Problems with RTX5090 in compatibility with PyTorch",321 "slug": "problems-with-rtx5090-in-compatibility-with-pytorch",322 "posts_count": 3,323 "reply_count": 1,324 "highest_post_number": 3,325 "image_url": null,326 "created_at": "2025-07-11T18:08:46.194Z",327 "last_posted_at": "2025-07-11T18:19:18.364Z",328 "bumped": true,329 "bumped_at": "2025-07-11T18:19:18.364Z",330 "archetype": "regular",331 "unseen": false,332 "pinned": false,333 "unpinned": null,334 "visible": true,335 "closed": false,336 "archived": false,337 "bookmarked": null,338 "liked": null,339 "tags_descriptions": {},340 "like_count": 0,341 "views": 87,342 "category_id": 14,343 "featured_link": null,344 "has_accepted_answer": false,345 "posters": [346 {347 "extras": "latest",348 "description": "Original Poster, Most Recent Poster",349 "user": {350 "id": 85038,351 "username": "Botd",352 "name": null,353 "avatar_template": "/letter_avatar_proxy/v4/letter/b/d2c977/{size}.png",354 "trust_level": 0355 }356 },357 {358 "extras": null,359 "description": "Frequent Poster",360 "user": {361 "id": 3534,362 "username": "ptrblck",363 "name": "",364 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",365 "admin": true,366 "moderator": true,367 "trust_level": 2368 }369 }370 ]371 },372 {373 "fancy_title": "Updating Jetson AGX Orin with Jepack 5.1.2 to CUDA 11.8 and PyTorch installation from source",374 "id": 217761,375 "title": "Updating Jetson AGX Orin with Jepack 5.1.2 to CUDA 11.8 and PyTorch installation from source",376 "slug": "updating-jetson-agx-orin-with-jepack-5-1-2-to-cuda-11-8-and-pytorch-installation-from-source",377 "posts_count": 2,378 "reply_count": 0,379 "highest_post_number": 2,380 "image_url": null,381 "created_at": "2025-03-12T21:01:53.164Z",382 "last_posted_at": "2025-03-22T10:08:41.800Z",383 "bumped": true,384 "bumped_at": "2025-03-22T10:08:41.800Z",385 "archetype": "regular",386 "unseen": false,387 "pinned": false,388 "unpinned": null,389 "visible": true,390 "closed": false,391 "archived": false,392 "bookmarked": null,393 "liked": null,394 "tags_descriptions": {},395 "like_count": 0,396 "views": 807,397 "category_id": 14,398 "featured_link": null,399 "has_accepted_answer": false,400 "posters": [401 {402 "extras": "latest single",403 "description": "Original Poster, Most Recent Poster",404 "user": {405 "id": 83220,406 "username": "konegen",407 "name": "",408 "avatar_template": "/user_avatar/discuss.pytorch.org/konegen/{size}/76116_2.png",409 "trust_level": 0410 }411 }412 ]413 },414 {415 "fancy_title": "Pytorch support for sm120",416 "id": 216099,417 "title": "Pytorch support for sm120",418 "slug": "pytorch-support-for-sm120",419 "posts_count": 65,420 "reply_count": 49,421 "highest_post_number": 68,422 "image_url": null,423 "created_at": "2025-01-31T17:59:06.720Z",424 "last_posted_at": "2025-09-20T19:22:35.369Z",425 "bumped": true,426 "bumped_at": "2025-09-20T19:22:35.369Z",427 "archetype": "regular",428 "unseen": false,429 "pinned": false,430 "unpinned": null,431 "visible": true,432 "closed": false,433 "archived": false,434 "bookmarked": null,435 "liked": null,436 "tags_descriptions": {},437 "like_count": 41,438 "views": 28061,439 "category_id": 14,440 "featured_link": null,441 "has_accepted_answer": false,442 "posters": [443 {444 "extras": null,445 "description": "Original Poster",446 "user": {447 "id": 82411,448 "username": "Sean_V",449 "name": "Sean V",450 "avatar_template": "/user_avatar/discuss.pytorch.org/sean_v/{size}/74711_2.png",451 "trust_level": 1452 }453 },454 {455 "extras": null,456 "description": "Frequent Poster",457 "user": {458 "id": 82825,459 "username": "Godmax",460 "name": "Godmax",461 "avatar_template": "/user_avatar/discuss.pytorch.org/godmax/{size}/75783_2.png",462 "trust_level": 0463 }464 },465 {466 "extras": null,467 "description": "Frequent Poster",468 "user": {469 "id": 82646,470 "username": "Omegadarling",471 "name": "Omegadarling",472 "avatar_template": "/user_avatar/discuss.pytorch.org/omegadarling/{size}/75621_2.png",473 "trust_level": 0474 }475 },476 {477 "extras": null,478 "description": "Frequent Poster",479 "user": {480 "id": 83656,481 "username": "Digatron",482 "name": "",483 "avatar_template": "/user_avatar/discuss.pytorch.org/digatron/{size}/75721_2.png",484 "trust_level": 0485 }486 },487 {488 "extras": "latest",489 "description": "Most Recent Poster",490 "user": {491 "id": 85924,492 "username": "Aliadin",493 "name": "",494 "avatar_template": "/letter_avatar_proxy/v4/letter/a/cab0a1/{size}.png",495 "trust_level": 0496 }497 }498 ]499 },500 {501 "fancy_title": "Issues with CUDA 12.8 and Pytorch Installation",502 "id": 221904,503 "title": "Issues with CUDA 12.8 and Pytorch Installation",504 "slug": "issues-with-cuda-12-8-and-pytorch-installation",505 "posts_count": 5,506 "reply_count": 2,507 "highest_post_number": 5,508 "image_url": "https://discuss.pytorch.org/uploads/default/original/3X/4/a/4a7e2a00b3a30f77bf46f0ca069f5afbb624042e.png",509 "created_at": "2025-07-28T18:47:24.147Z",510 "last_posted_at": "2025-07-29T18:39:50.223Z",511 "bumped": true,512 "bumped_at": "2025-07-29T18:39:50.223Z",513 "archetype": "regular",514 "unseen": false,515 "pinned": false,516 "unpinned": null,517 "visible": true,518 "closed": false,519 "archived": false,520 "bookmarked": null,521 "liked": null,522 "tags_descriptions": {},523 "like_count": 1,524 "views": 211,525 "category_id": 14,526 "featured_link": null,527 "has_accepted_answer": false,528 "posters": [529 {530 "extras": null,531 "description": "Original Poster",532 "user": {533 "id": 85272,534 "username": "jeburling",535 "name": "Jeburling",536 "avatar_template": "/user_avatar/discuss.pytorch.org/jeburling/{size}/77813_2.png",537 "trust_level": 0538 }539 },540 {541 "extras": null,542 "description": "Frequent Poster",543 "user": {544 "id": 3534,545 "username": "ptrblck",546 "name": "",547 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",548 "admin": true,549 "moderator": true,550 "trust_level": 2551 }552 },553 {554 "extras": "latest",555 "description": "Most Recent Poster",556 "user": {557 "id": 35151,558 "username": "malfet",559 "name": "Nikita Shulga",560 "avatar_template": "/user_avatar/discuss.pytorch.org/malfet/{size}/27485_2.png",561 "trust_level": 2562 }563 }564 ]565 }566 ],567 "tags_descriptions": {},568 "fancy_title": "Terminate called after throwing an instance of ‘c10::Error’",569 "id": 51191,570 "title": "Terminate called after throwing an instance of 'c10::Error'",571 "posts_count": 4,572 "created_at": "2019-07-21T09:22:12.635Z",573 "views": 7769,574 "reply_count": 0,575 "like_count": 0,576 "last_posted_at": "2022-02-14T14:42:12.499Z",577 "visible": true,578 "closed": false,579 "archived": false,580 "has_summary": false,581 "archetype": "regular",582 "slug": "terminate-called-after-throwing-an-instance-of-c10-error",583 "category_id": 14,584 "word_count": 572,585 "deleted_at": null,586 "user_id": 20814,587 "featured_link": null,588 "pinned_globally": false,589 "pinned_at": null,590 "pinned_until": null,591 "image_url": null,592 "slow_mode_seconds": 0,593 "draft": null,594 "draft_key": "topic_51191",595 "draft_sequence": null,596 "unpinned": null,597 "pinned": false,598 "current_post_number": 1,599 "highest_post_number": 4,600 "deleted_by": null,601 "actions_summary": [602 {603 "id": 4,604 "count": 0,605 "hidden": false,606 "can_act": false607 },608 {609 "id": 8,610 "count": 0,611 "hidden": false,612 "can_act": false613 },614 {615 "id": 10,616 "count": 0,617 "hidden": false,618 "can_act": false619 },620 {621 "id": 7,622 "count": 0,623 "hidden": false,624 "can_act": false625 }626 ],627 "chunk_size": 20,628 "bookmarked": false,629 "topic_timer": null,630 "message_bus_last_id": 0,631 "participant_count": 3,632 "show_read_indicator": false,633 "thumbnails": null,634 "slow_mode_enabled_until": null,635 "can_vote": false,636 "vote_count": 0,637 "user_voted": false,638 "discourse_zendesk_plugin_zendesk_id": null,639 "discourse_zendesk_plugin_zendesk_url": "https://your-url.zendesk.com/agent/tickets/",640 "details": {641 "can_edit": false,642 "notification_level": 1,643 "participants": [644 {645 "id": 20814,646 "username": "FreemanG",647 "name": "Freeman G",648 "avatar_template": "/user_avatar/discuss.pytorch.org/freemang/{size}/14283_2.png",649 "post_count": 2,650 "primary_group_name": null,651 "flair_name": null,652 "flair_url": null,653 "flair_color": null,654 "flair_bg_color": null,655 "flair_group_id": null,656 "trust_level": 1657 },658 {659 "id": 3232,660 "username": "sherylwang",661 "name": "Xiaqing Xu",662 "avatar_template": "/user_avatar/discuss.pytorch.org/sherylwang/{size}/1550_2.png",663 "post_count": 1,664 "primary_group_name": null,665 "flair_name": null,666 "flair_url": null,667 "flair_color": null,668 "flair_bg_color": null,669 "flair_group_id": null,670 "trust_level": 1671 },672 {673 "id": 33077,674 "username": "Ziyu_Huang",675 "name": "Ziyu Huang",676 "avatar_template": "/user_avatar/discuss.pytorch.org/ziyu_huang/{size}/14158_2.png",677 "post_count": 1,678 "primary_group_name": null,679 "flair_name": null,680 "flair_url": null,681 "flair_color": null,682 "flair_bg_color": null,683 "flair_group_id": null,684 "trust_level": 2685 }686 ],687 "created_by": {688 "id": 20814,689 "username": "FreemanG",690 "name": "Freeman G",691 "avatar_template": "/user_avatar/discuss.pytorch.org/freemang/{size}/14283_2.png"692 },693 "last_poster": {694 "id": 33077,695 "username": "Ziyu_Huang",696 "name": "Ziyu Huang",697 "avatar_template": "/user_avatar/discuss.pytorch.org/ziyu_huang/{size}/14158_2.png"698 },699 "links": [700 {701 "url": "https://github.com/pytorch/examples/tree/master/imagenet",702 "title": "examples/imagenet at master · pytorch/examples · GitHub",703 "internal": false,704 "attachment": false,705 "reflection": false,706 "clicks": 7,707 "user_id": 20814,708 "domain": "github.com",709 "root_domain": "github.com"710 }711 ]712 },713 "bookmarks": []714 },715 {716 "post_stream": {717 "posts": [718 {719 "id": 330778,720 "name": "Emre Çelikel",721 "username": "formidiable",722 "avatar_template": "/letter_avatar_proxy/v4/letter/f/b782af/{size}.png",723 "created_at": "2022-02-10T20:38:34.813Z",724 "cooked": "<p>Hi,</p>\n<p>I have trained reinforcement learning model with windowed time-series data and now i am getting inference. But i have a doubt that model(batch) works in order to Last IN First OUT. Cause, otherwise it seems like the last action is the first which always leave the action_list.</p>\n<p>(An action is being decided in respect to the current one line and past 19 line of data.)</p>\n<p>Is there anybody who knows which order the model function works in Pytorch, First in First out or Last in First Out?</p>",725 "post_number": 1,726 "post_type": 1,727 "posts_count": 2,728 "updated_at": "2022-02-11T01:32:42.014Z",729 "reply_count": 0,730 "reply_to_post_number": null,731 "quote_count": 0,732 "incoming_link_count": 50,733 "reads": 6,734 "readers_count": 5,735 "score": 251.2,736 "yours": false,737 "topic_id": 143842,738 "topic_slug": "is-model-batch-fifo-or-lifo",739 "display_username": "Emre Çelikel",740 "primary_group_name": null,741 "flair_name": null,742 "flair_url": null,743 "flair_bg_color": null,744 "flair_color": null,745 "flair_group_id": null,746 "badges_granted": [],747 "version": 4,748 "can_edit": false,749 "can_delete": false,750 "can_recover": false,751 "can_see_hidden_post": false,752 "can_wiki": false,753 "read": true,754 "user_title": null,755 "bookmarked": false,756 "actions_summary": [],757 "moderator": false,758 "admin": false,759 "staff": false,760 "user_id": 52900,761 "hidden": false,762 "trust_level": 1,763 "deleted_at": null,764 "user_deleted": false,765 "edit_reason": null,766 "can_view_edit_history": true,767 "wiki": false,768 "post_url": "/t/is-model-batch-fifo-or-lifo/143842/1",769 "can_accept_answer": false,770 "can_unaccept_answer": false,771 "accepted_answer": false,772 "topic_accepted_answer": null,773 "can_vote": false774 },775 {776 "id": 330853,777 "name": "Anant Gupta",778 "username": "anantguptadbl",779 "avatar_template": "/user_avatar/discuss.pytorch.org/anantguptadbl/{size}/17784_2.png",780 "created_at": "2022-02-11T05:28:16.515Z",781 "cooked": "<p><a class=\"mention\" href=\"/u/formidiable\">@formidiable</a> model generally works on the indices of the data. The lower index data is considered to be the first data point. Can you share your model and point out the section which gave you this doubt</p>",782 "post_number": 2,783 "post_type": 1,784 "posts_count": 2,785 "updated_at": "2022-02-11T05:28:16.515Z",786 "reply_count": 0,787 "reply_to_post_number": null,788 "quote_count": 0,789 "incoming_link_count": 5,790 "reads": 5,791 "readers_count": 4,792 "score": 26.0,793 "yours": false,794 "topic_id": 143842,795 "topic_slug": "is-model-batch-fifo-or-lifo",796 "display_username": "Anant Gupta",797 "primary_group_name": null,798 "flair_name": null,799 "flair_url": null,800 "flair_bg_color": null,801 "flair_color": null,802 "flair_group_id": null,803 "badges_granted": [],804 "version": 1,805 "can_edit": false,806 "can_delete": false,807 "can_recover": false,808 "can_see_hidden_post": false,809 "can_wiki": false,810 "read": true,811 "user_title": "",812 "bookmarked": false,813 "actions_summary": [],814 "moderator": false,815 "admin": false,816 "staff": false,817 "user_id": 19553,818 "hidden": false,819 "trust_level": 2,820 "deleted_at": null,821 "user_deleted": false,822 "edit_reason": null,823 "can_view_edit_history": true,824 "wiki": false,825 "post_url": "/t/is-model-batch-fifo-or-lifo/143842/2",826 "can_accept_answer": false,827 "can_unaccept_answer": false,828 "accepted_answer": false,829 "topic_accepted_answer": null830 }831 ],832 "stream": [833 330778,834 330853835 ]836 },837 "timeline_lookup": [838 [839 1,840 1353841 ]842 ],843 "suggested_topics": [844 {845 "fancy_title": "Model almost instantly produces “nan”",846 "id": 221483,847 "title": "Model almost instantly produces \"nan\"",848 "slug": "model-almost-instantly-produces-nan",849 "posts_count": 5,850 "reply_count": 3,851 "highest_post_number": 5,852 "image_url": null,853 "created_at": "2025-07-13T13:59:04.663Z",854 "last_posted_at": "2025-07-19T20:44:56.915Z",855 "bumped": true,856 "bumped_at": "2025-07-19T20:44:56.915Z",857 "archetype": "regular",858 "unseen": false,859 "pinned": false,860 "unpinned": null,861 "visible": true,862 "closed": false,863 "archived": false,864 "bookmarked": null,865 "liked": null,866 "tags_descriptions": {},867 "like_count": 0,868 "views": 142,869 "category_id": 6,870 "featured_link": null,871 "has_accepted_answer": false,872 "posters": [873 {874 "extras": "latest",875 "description": "Original Poster, Most Recent Poster",876 "user": {877 "id": 85057,878 "username": "Jake_Watson",879 "name": "Jake Watson",880 "avatar_template": "/user_avatar/discuss.pytorch.org/jake_watson/{size}/77660_2.png",881 "trust_level": 1882 }883 },884 {885 "extras": null,886 "description": "Frequent Poster",887 "user": {888 "id": 3534,889 "username": "ptrblck",890 "name": "",891 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",892 "admin": true,893 "moderator": true,894 "trust_level": 2895 }896 }897 ]898 },899 {900 "fancy_title": "RuntimeError: Gradient computation modified by an inplace operation",901 "id": 212813,902 "title": "RuntimeError: Gradient computation modified by an inplace operation",903 "slug": "runtimeerror-gradient-computation-modified-by-an-inplace-operation",904 "posts_count": 2,905 "reply_count": 0,906 "highest_post_number": 2,907 "image_url": null,908 "created_at": "2024-11-11T17:07:15.503Z",909 "last_posted_at": "2025-01-17T11:09:43.719Z",910 "bumped": true,911 "bumped_at": "2025-01-17T11:09:43.719Z",912 "archetype": "regular",913 "unseen": false,914 "pinned": false,915 "unpinned": null,916 "visible": true,917 "closed": false,918 "archived": false,919 "bookmarked": null,920 "liked": null,921 "tags_descriptions": {},922 "like_count": 0,923 "views": 222,924 "category_id": 6,925 "featured_link": null,926 "has_accepted_answer": false,927 "posters": [928 {929 "extras": null,930 "description": "Original Poster",931 "user": {932 "id": 80824,933 "username": "Jerome",934 "name": "Jerome",935 "avatar_template": "/letter_avatar_proxy/v4/letter/j/a587f6/{size}.png",936 "trust_level": 0937 }938 },939 {940 "extras": "latest",941 "description": "Most Recent Poster",942 "user": {943 "id": 33609,944 "username": "vmoens",945 "name": "Vincent Moens",946 "avatar_template": "/user_avatar/discuss.pytorch.org/vmoens/{size}/26121_2.png",947 "trust_level": 2948 }949 }950 ]951 },952 {953 "fancy_title": "Best practice for integrared vs separate optimizers in actor-critic models",954 "id": 215041,955 "title": "Best practice for integrared vs separate optimizers in actor-critic models",956 "slug": "best-practice-for-integrared-vs-separate-optimizers-in-actor-critic-models",957 "posts_count": 3,958 "reply_count": 0,959 "highest_post_number": 3,960 "image_url": null,961 "created_at": "2025-01-06T18:02:34.885Z",962 "last_posted_at": "2025-02-07T02:49:08.346Z",963 "bumped": true,964 "bumped_at": "2025-02-07T02:50:08.280Z",965 "archetype": "regular",966 "unseen": false,967 "pinned": false,968 "unpinned": null,969 "visible": true,970 "closed": false,971 "archived": false,972 "bookmarked": null,973 "liked": null,974 "tags_descriptions": {},975 "like_count": 1,976 "views": 121,977 "category_id": 6,978 "featured_link": null,979 "has_accepted_answer": false,980 "posters": [981 {982 "extras": "latest",983 "description": "Original Poster, Most Recent Poster",984 "user": {985 "id": 55614,986 "username": "Ebrahim.Pichka",987 "name": "Ebrahim Pichka",988 "avatar_template": "/user_avatar/discuss.pytorch.org/ebrahim.pichka/{size}/71568_2.png",989 "trust_level": 1990 }991 },992 {993 "extras": null,994 "description": "Frequent Poster",995 "user": {996 "id": 33609,997 "username": "vmoens",998 "name": "Vincent Moens",999 "avatar_template": "/user_avatar/discuss.pytorch.org/vmoens/{size}/26121_2.png",1000 "trust_level": 21001 }1002 }1003 ]1004 },1005 {1006 "fancy_title": "Torchrl kl_div for old and new policy",1007 "id": 218844,1008 "title": "Torchrl kl_div for old and new policy",1009 "slug": "torchrl-kl-div-for-old-and-new-policy",1010 "posts_count": 1,1011 "reply_count": 0,1012 "highest_post_number": 1,1013 "image_url": null,1014 "created_at": "2025-04-07T22:04:47.411Z",1015 "last_posted_at": "2025-04-07T22:04:47.453Z",1016 "bumped": true,1017 "bumped_at": "2025-04-07T22:07:41.677Z",1018 "archetype": "regular",1019 "unseen": false,1020 "pinned": false,1021 "unpinned": null,1022 "visible": true,1023 "closed": false,1024 "archived": false,1025 "bookmarked": null,1026 "liked": null,1027 "tags_descriptions": {},1028 "like_count": 0,1029 "views": 40,1030 "category_id": 6,1031 "featured_link": null,1032 "has_accepted_answer": false,1033 "posters": [1034 {1035 "extras": "latest single",1036 "description": "Original Poster, Most Recent Poster",1037 "user": {1038 "id": 73402,1039 "username": "manavkoolz",1040 "name": "Manav Kulshrestha",1041 "avatar_template": "/user_avatar/discuss.pytorch.org/manavkoolz/{size}/67748_2.png",1042 "trust_level": 11043 }1044 }1045 ]1046 },1047 {1048 "fancy_title": "Should we split the trajectories prior to calculating the loss for a DQN?",1049 "id": 221749,1050 "title": "Should we split the trajectories prior to calculating the loss for a DQN?",1051 "slug": "should-we-split-the-trajectories-prior-to-calculating-the-loss-for-a-dqn",1052 "posts_count": 2,1053 "reply_count": 0,1054 "highest_post_number": 2,1055 "image_url": null,1056 "created_at": "2025-07-23T13:01:26.078Z",1057 "last_posted_at": "2025-08-04T21:31:18.537Z",1058 "bumped": true,1059 "bumped_at": "2025-08-04T21:31:18.537Z",1060 "archetype": "regular",1061 "unseen": false,1062 "pinned": false,1063 "unpinned": null,1064 "visible": true,1065 "closed": false,1066 "archived": false,1067 "bookmarked": null,1068 "liked": null,1069 "tags_descriptions": {},1070 "like_count": 1,1071 "views": 29,1072 "category_id": 6,1073 "featured_link": null,1074 "has_accepted_answer": false,1075 "posters": [1076 {1077 "extras": null,1078 "description": "Original Poster",1079 "user": {1080 "id": 23119,1081 "username": "icarosadero",1082 "name": "Ícaro",1083 "avatar_template": "/user_avatar/discuss.pytorch.org/icarosadero/{size}/16461_2.png",1084 "trust_level": 11085 }1086 },1087 {1088 "extras": "latest",1089 "description": "Most Recent Poster",1090 "user": {1091 "id": 33609,1092 "username": "vmoens",1093 "name": "Vincent Moens",1094 "avatar_template": "/user_avatar/discuss.pytorch.org/vmoens/{size}/26121_2.png",1095 "trust_level": 21096 }1097 }1098 ]1099 }1100 ],1101 "tags_descriptions": {},1102 "fancy_title": "Is model(batch) FIFO or LIFO?",1103 "id": 143842,1104 "title": "Is model(batch) FIFO or LIFO?",1105 "posts_count": 2,1106 "created_at": "2022-02-10T20:38:34.738Z",1107 "views": 763,1108 "reply_count": 0,1109 "like_count": 0,1110 "last_posted_at": "2022-02-11T05:28:16.515Z",1111 "visible": true,1112 "closed": false,1113 "archived": false,1114 "has_summary": false,1115 "archetype": "regular",1116 "slug": "is-model-batch-fifo-or-lifo",1117 "category_id": 6,1118 "word_count": 135,1119 "deleted_at": null,1120 "user_id": 52900,1121 "featured_link": null,1122 "pinned_globally": false,1123 "pinned_at": null,1124 "pinned_until": null,1125 "image_url": null,1126 "slow_mode_seconds": 0,1127 "draft": null,1128 "draft_key": "topic_143842",1129 "draft_sequence": null,1130 "unpinned": null,1131 "pinned": false,1132 "current_post_number": 1,1133 "highest_post_number": 2,1134 "deleted_by": null,1135 "actions_summary": [1136 {1137 "id": 4,1138 "count": 0,1139 "hidden": false,1140 "can_act": false1141 },1142 {1143 "id": 8,1144 "count": 0,1145 "hidden": false,1146 "can_act": false1147 },1148 {1149 "id": 10,1150 "count": 0,1151 "hidden": false,1152 "can_act": false1153 },1154 {1155 "id": 7,1156 "count": 0,1157 "hidden": false,1158 "can_act": false1159 }1160 ],1161 "chunk_size": 20,1162 "bookmarked": false,1163 "topic_timer": null,1164 "message_bus_last_id": 0,1165 "participant_count": 2,1166 "show_read_indicator": false,1167 "thumbnails": null,1168 "slow_mode_enabled_until": null,1169 "can_vote": false,1170 "vote_count": 0,1171 "user_voted": false,1172 "discourse_zendesk_plugin_zendesk_id": null,1173 "discourse_zendesk_plugin_zendesk_url": "https://your-url.zendesk.com/agent/tickets/",1174 "details": {1175 "can_edit": false,1176 "notification_level": 1,1177 "participants": [1178 {1179 "id": 19553,1180 "username": "anantguptadbl",1181 "name": "Anant Gupta",1182 "avatar_template": "/user_avatar/discuss.pytorch.org/anantguptadbl/{size}/17784_2.png",1183 "post_count": 1,1184 "primary_group_name": null,1185 "flair_name": null,1186 "flair_url": null,1187 "flair_color": null,1188 "flair_bg_color": null,1189 "flair_group_id": null,1190 "trust_level": 21191 },1192 {1193 "id": 52900,1194 "username": "formidiable",1195 "name": "Emre Çelikel",1196 "avatar_template": "/letter_avatar_proxy/v4/letter/f/b782af/{size}.png",1197 "post_count": 1,1198 "primary_group_name": null,1199 "flair_name": null,1200 "flair_url": null,