Anurag1734/cuda-error-resolution-analysis
07
1[2 {3 "post_stream": {4 "posts": [5 {6 "id": 284028,7 "name": "Muhammad Ahmed",8 "username": "Muhammad4hmed",9 "avatar_template": "/user_avatar/discuss.pytorch.org/muhammad4hmed/{size}/26387_2.png",10 "created_at": "2021-05-16T16:17:53.804Z",11 "cooked": "<p>I am getting above mentioned error, my pytorch version is <code>'1.7.0'</code></p>",12 "post_number": 1,13 "post_type": 1,14 "posts_count": 2,15 "updated_at": "2021-05-16T16:32:50.515Z",16 "reply_count": 0,17 "reply_to_post_number": null,18 "quote_count": 0,19 "incoming_link_count": 976,20 "reads": 17,21 "readers_count": 16,22 "score": 4883.4,23 "yours": false,24 "topic_id": 121425,25 "topic_slug": "attributeerror-module-torch-nn-has-no-attribute-gaussiannllloss",26 "display_username": "Muhammad Ahmed",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": 2,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": 33959,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/attributeerror-module-torch-nn-has-no-attribute-gaussiannllloss/121425/1",56 "can_accept_answer": false,57 "can_unaccept_answer": false,58 "accepted_answer": false,59 "topic_accepted_answer": true,60 "can_vote": false61 },62 {63 "id": 284052,64 "name": "Alban D",65 "username": "albanD",66 "avatar_template": "/user_avatar/discuss.pytorch.org/alband/{size}/215_2.png",67 "created_at": "2021-05-16T17:47:30.249Z",68 "cooked": "<p>You can check the doc for <code>1.7.0</code> <a href=\"https://pytorch.org/docs/1.7.0/search.html?q=gaussiannllloss&check_keywords=yes&area=default\">https://pytorch.org/docs/1.7.0/search.html?q=gaussiannllloss&check_keywords=yes&area=default</a> this module did not exist back then.<br>\nYou will need to use <code>1.8+</code> to be able to use that: <a href=\"https://pytorch.org/docs/1.8.1/search.html?q=gaussiannllloss&check_keywords=yes&area=default\" class=\"inline-onebox\">Search — PyTorch 1.8.1 documentation</a></p>",69 "post_number": 2,70 "post_type": 1,71 "posts_count": 2,72 "updated_at": "2021-05-16T18:05:33.383Z",73 "reply_count": 0,74 "reply_to_post_number": null,75 "quote_count": 0,76 "incoming_link_count": 21,77 "reads": 16,78 "readers_count": 15,79 "score": 123.2,80 "yours": false,81 "topic_id": 121425,82 "topic_slug": "attributeerror-module-torch-nn-has-no-attribute-gaussiannllloss",83 "display_username": "Alban D",84 "primary_group_name": null,85 "flair_name": null,86 "flair_url": null,87 "flair_bg_color": null,88 "flair_color": null,89 "flair_group_id": null,90 "badges_granted": [],91 "version": 1,92 "can_edit": false,93 "can_delete": false,94 "can_recover": false,95 "can_see_hidden_post": false,96 "can_wiki": false,97 "link_counts": [98 {99 "url": "https://pytorch.org/docs/1.7.0/search.html?q=gaussiannllloss&check_keywords=yes&area=default",100 "internal": false,101 "reflection": false,102 "title": "Search — PyTorch 1.7.0 documentation",103 "clicks": 59104 },105 {106 "url": "https://pytorch.org/docs/1.8.1/search.html?q=gaussiannllloss&check_keywords=yes&area=default",107 "internal": false,108 "reflection": false,109 "title": "Search — PyTorch 1.8.1 documentation",110 "clicks": 49111 }112 ],113 "read": true,114 "user_title": "",115 "bookmarked": false,116 "actions_summary": [117 {118 "id": 2,119 "count": 1120 }121 ],122 "moderator": true,123 "admin": true,124 "staff": true,125 "user_id": 211,126 "hidden": false,127 "trust_level": 4,128 "deleted_at": null,129 "user_deleted": false,130 "edit_reason": null,131 "can_view_edit_history": true,132 "wiki": false,133 "post_url": "/t/attributeerror-module-torch-nn-has-no-attribute-gaussiannllloss/121425/2",134 "can_accept_answer": false,135 "can_unaccept_answer": false,136 "accepted_answer": true,137 "topic_accepted_answer": true138 }139 ],140 "stream": [141 284028,142 284052143 ]144 },145 "timeline_lookup": [146 [147 1,148 1623149 ]150 ],151 "suggested_topics": [152 {153 "fancy_title": "Cannot find unused Parameters (DDP Training)",154 "id": 219344,155 "title": "Cannot find unused Parameters (DDP Training)",156 "slug": "cannot-find-unused-parameters-ddp-training",157 "posts_count": 1,158 "reply_count": 0,159 "highest_post_number": 1,160 "image_url": null,161 "created_at": "2025-04-22T16:49:57.607Z",162 "last_posted_at": "2025-04-22T16:49:57.652Z",163 "bumped": true,164 "bumped_at": "2025-04-22T16:53:49.141Z",165 "archetype": "regular",166 "unseen": false,167 "pinned": false,168 "unpinned": null,169 "visible": true,170 "closed": false,171 "archived": false,172 "bookmarked": null,173 "liked": null,174 "tags_descriptions": {},175 "like_count": 0,176 "views": 200,177 "category_id": 5,178 "featured_link": null,179 "has_accepted_answer": false,180 "posters": [181 {182 "extras": "latest single",183 "description": "Original Poster, Most Recent Poster",184 "user": {185 "id": 83950,186 "username": "rdslater",187 "name": "rds",188 "avatar_template": "/user_avatar/discuss.pytorch.org/rdslater/{size}/75820_2.png",189 "trust_level": 1190 }191 }192 ]193 },194 {195 "fancy_title": "Looking for realiable pytorch code base finetune stable diffusion",196 "id": 216254,197 "title": "Looking for realiable pytorch code base finetune stable diffusion",198 "slug": "looking-for-realiable-pytorch-code-base-finetune-stable-diffusion",199 "posts_count": 1,200 "reply_count": 0,201 "highest_post_number": 1,202 "image_url": null,203 "created_at": "2025-02-05T07:11:21.881Z",204 "last_posted_at": "2025-02-05T07:11:21.968Z",205 "bumped": true,206 "bumped_at": "2025-02-05T07:11:21.968Z",207 "archetype": "regular",208 "unseen": false,209 "pinned": false,210 "unpinned": null,211 "visible": true,212 "closed": false,213 "archived": false,214 "bookmarked": null,215 "liked": null,216 "tags_descriptions": {},217 "like_count": 0,218 "views": 21,219 "category_id": 5,220 "featured_link": null,221 "has_accepted_answer": false,222 "posters": [223 {224 "extras": "latest single",225 "description": "Original Poster, Most Recent Poster",226 "user": {227 "id": 60459,228 "username": "hiru",229 "name": "Hiru",230 "avatar_template": "/letter_avatar_proxy/v4/letter/h/d2c977/{size}.png",231 "trust_level": 1232 }233 }234 ]235 },236 {237 "fancy_title": "Parallel processing a RealESRGAN",238 "id": 217772,239 "title": "Parallel processing a RealESRGAN",240 "slug": "parallel-processing-a-realesrgan",241 "posts_count": 1,242 "reply_count": 0,243 "highest_post_number": 1,244 "image_url": null,245 "created_at": "2025-03-13T04:18:41.381Z",246 "last_posted_at": "2025-03-13T04:18:41.420Z",247 "bumped": true,248 "bumped_at": "2025-03-13T04:18:41.420Z",249 "archetype": "regular",250 "unseen": false,251 "pinned": false,252 "unpinned": null,253 "visible": true,254 "closed": false,255 "archived": false,256 "bookmarked": null,257 "liked": null,258 "tags_descriptions": {},259 "like_count": 0,260 "views": 24,261 "category_id": 5,262 "featured_link": null,263 "has_accepted_answer": false,264 "posters": [265 {266 "extras": "latest single",267 "description": "Original Poster, Most Recent Poster",268 "user": {269 "id": 83232,270 "username": "HAli",271 "name": "",272 "avatar_template": "/user_avatar/discuss.pytorch.org/hali/{size}/76127_2.png",273 "trust_level": 0274 }275 }276 ]277 },278 {279 "fancy_title": "Custom Dataset __getitem__ is receiving a list from DataLoader",280 "id": 217592,281 "title": "Custom Dataset __getitem__ is receiving a list from DataLoader",282 "slug": "custom-dataset-getitem-is-receiving-a-list-from-dataloader",283 "posts_count": 4,284 "reply_count": 2,285 "highest_post_number": 4,286 "image_url": null,287 "created_at": "2025-03-08T12:27:38.663Z",288 "last_posted_at": "2025-03-14T05:32:05.342Z",289 "bumped": true,290 "bumped_at": "2025-03-14T05:32:05.342Z",291 "archetype": "regular",292 "unseen": false,293 "pinned": false,294 "unpinned": null,295 "visible": true,296 "closed": false,297 "archived": false,298 "bookmarked": null,299 "liked": null,300 "tags_descriptions": {},301 "like_count": 0,302 "views": 77,303 "category_id": 5,304 "featured_link": null,305 "has_accepted_answer": false,306 "posters": [307 {308 "extras": null,309 "description": "Original Poster",310 "user": {311 "id": 83139,312 "username": "Gabrichilleron",313 "name": "Gabriel Chilleron peinado",314 "avatar_template": "/user_avatar/discuss.pytorch.org/gabrichilleron/{size}/76040_2.png",315 "trust_level": 0316 }317 },318 {319 "extras": null,320 "description": "Frequent Poster",321 "user": {322 "id": 69167,323 "username": "lostalot",324 "name": "",325 "avatar_template": "/letter_avatar_proxy/v4/letter/l/858c86/{size}.png",326 "trust_level": 1327 }328 },329 {330 "extras": "latest",331 "description": "Most Recent Poster",332 "user": {333 "id": 74591,334 "username": "UMAR_MASUD",335 "name": "UMAR MASUD",336 "avatar_template": "/user_avatar/discuss.pytorch.org/umar_masud/{size}/68863_2.png",337 "trust_level": 2338 }339 }340 ]341 },342 {343 "fancy_title": "RTX5080 win11 Torchvision::nms couldn’t run",344 "id": 221809,345 "title": "RTX5080 win11 Torchvision::nms couldn’t run",346 "slug": "rtx5080-win11-torchvision-nms-couldn-t-run",347 "posts_count": 6,348 "reply_count": 4,349 "highest_post_number": 8,350 "image_url": null,351 "created_at": "2025-07-25T13:59:03.944Z",352 "last_posted_at": "2025-07-26T13:48:09.123Z",353 "bumped": true,354 "bumped_at": "2025-07-26T13:48:09.123Z",355 "archetype": "regular",356 "unseen": false,357 "pinned": false,358 "unpinned": null,359 "visible": true,360 "closed": false,361 "archived": false,362 "bookmarked": null,363 "liked": null,364 "tags_descriptions": {},365 "like_count": 0,366 "views": 154,367 "category_id": 5,368 "featured_link": null,369 "has_accepted_answer": false,370 "posters": [371 {372 "extras": null,373 "description": "Original Poster",374 "user": {375 "id": 85228,376 "username": "xiangxingchina",377 "name": "Xiangxingchina",378 "avatar_template": "/user_avatar/discuss.pytorch.org/xiangxingchina/{size}/77779_2.png",379 "trust_level": 0380 }381 },382 {383 "extras": "latest",384 "description": "Most Recent Poster",385 "user": {386 "id": 3534,387 "username": "ptrblck",388 "name": "",389 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",390 "admin": true,391 "moderator": true,392 "trust_level": 2393 }394 }395 ]396 }397 ],398 "tags_descriptions": {},399 "fancy_title": "AttributeError: module ‘torch.nn’ has no attribute ‘GaussianNLLLoss’",400 "id": 121425,401 "title": "AttributeError: module 'torch.nn' has no attribute 'GaussianNLLLoss'",402 "posts_count": 2,403 "created_at": "2021-05-16T16:17:53.751Z",404 "views": 2054,405 "reply_count": 0,406 "like_count": 1,407 "last_posted_at": "2021-05-16T17:47:30.249Z",408 "visible": true,409 "closed": false,410 "archived": false,411 "has_summary": false,412 "archetype": "regular",413 "slug": "attributeerror-module-torch-nn-has-no-attribute-gaussiannllloss",414 "category_id": 5,415 "word_count": 72,416 "deleted_at": null,417 "user_id": 33959,418 "featured_link": null,419 "pinned_globally": false,420 "pinned_at": null,421 "pinned_until": null,422 "image_url": null,423 "slow_mode_seconds": 0,424 "draft": null,425 "draft_key": "topic_121425",426 "draft_sequence": null,427 "unpinned": null,428 "pinned": false,429 "current_post_number": 1,430 "highest_post_number": 2,431 "deleted_by": null,432 "actions_summary": [433 {434 "id": 4,435 "count": 0,436 "hidden": false,437 "can_act": false438 },439 {440 "id": 8,441 "count": 0,442 "hidden": false,443 "can_act": false444 },445 {446 "id": 10,447 "count": 0,448 "hidden": false,449 "can_act": false450 },451 {452 "id": 7,453 "count": 0,454 "hidden": false,455 "can_act": false456 }457 ],458 "chunk_size": 20,459 "bookmarked": false,460 "topic_timer": null,461 "message_bus_last_id": 0,462 "participant_count": 2,463 "show_read_indicator": false,464 "thumbnails": null,465 "slow_mode_enabled_until": null,466 "accepted_answer": {467 "post_number": 2,468 "username": "albanD",469 "name": "Alban D",470 "excerpt": "You can check the doc for 1.7.0 <a href=\"https://pytorch.org/docs/1.7.0/search.html?q=gaussiannllloss&check_keywords=yes&area=default\">https://pytorch.org/docs/1.7.0/search.html?q=gaussiannllloss&check_keywords=yes&area=default</a> this module did not exist back then. \nYou will need to use 1.8+ to be able to use that: <a href=\"https://pytorch.org/docs/1.8.1/search.html?q=gaussiannllloss&check_keywords=yes&area=default\" class=\"inline-onebox\">Search — PyTorch 1.8.1 documentation</a>"471 },472 "can_vote": false,473 "vote_count": 0,474 "user_voted": false,475 "discourse_zendesk_plugin_zendesk_id": null,476 "discourse_zendesk_plugin_zendesk_url": "https://your-url.zendesk.com/agent/tickets/",477 "details": {478 "can_edit": false,479 "notification_level": 1,480 "participants": [481 {482 "id": 211,483 "username": "albanD",484 "name": "Alban D",485 "avatar_template": "/user_avatar/discuss.pytorch.org/alband/{size}/215_2.png",486 "post_count": 1,487 "primary_group_name": null,488 "flair_name": null,489 "flair_url": null,490 "flair_color": null,491 "flair_bg_color": null,492 "flair_group_id": null,493 "admin": true,494 "moderator": true,495 "trust_level": 4496 },497 {498 "id": 33959,499 "username": "Muhammad4hmed",500 "name": "Muhammad Ahmed",501 "avatar_template": "/user_avatar/discuss.pytorch.org/muhammad4hmed/{size}/26387_2.png",502 "post_count": 1,503 "primary_group_name": null,504 "flair_name": null,505 "flair_url": null,506 "flair_color": null,507 "flair_bg_color": null,508 "flair_group_id": null,509 "trust_level": 1510 }511 ],512 "created_by": {513 "id": 33959,514 "username": "Muhammad4hmed",515 "name": "Muhammad Ahmed",516 "avatar_template": "/user_avatar/discuss.pytorch.org/muhammad4hmed/{size}/26387_2.png"517 },518 "last_poster": {519 "id": 211,520 "username": "albanD",521 "name": "Alban D",522 "avatar_template": "/user_avatar/discuss.pytorch.org/alband/{size}/215_2.png"523 },524 "links": [525 {526 "url": "https://pytorch.org/docs/1.7.0/search.html?q=gaussiannllloss&check_keywords=yes&area=default",527 "title": "Search — PyTorch 1.7.0 documentation",528 "internal": false,529 "attachment": false,530 "reflection": false,531 "clicks": 59,532 "user_id": 211,533 "domain": "pytorch.org",534 "root_domain": "pytorch.org"535 },536 {537 "url": "https://pytorch.org/docs/1.8.1/search.html?q=gaussiannllloss&check_keywords=yes&area=default",538 "title": "Search — PyTorch 1.8.1 documentation",539 "internal": false,540 "attachment": false,541 "reflection": false,542 "clicks": 49,543 "user_id": 211,544 "domain": "pytorch.org",545 "root_domain": "pytorch.org"546 }547 ]548 },549 "bookmarks": []550 },551 {552 "post_stream": {553 "posts": [554 {555 "id": 284049,556 "name": "Xuye Liu",557 "username": "Xuye_Liu",558 "avatar_template": "/user_avatar/discuss.pytorch.org/xuye_liu/{size}/38355_2.png",559 "created_at": "2021-05-16T17:44:20.257Z",560 "cooked": "<h2>\n<a name=\"to-reproduce-1\" class=\"anchor\" href=\"#to-reproduce-1\"></a>To Reproduce</h2>\n<p>Steps to reproduce the behavior:</p>\n<ol>\n<li>I create a specific model with pytorch when I use loss.backward, it has bugs. But it works when I use cuda gpu. When I try to run my model with cpu, it appears this bug.</li>\n<li>I already try to reinstall pytorch version like 1.5.0, 1.6.0, 1.8.0. But it all not works</li>\n</ol>\n<p>code:</p>\n<pre><code class=\"lang-auto\">optimizer = torch.optim.Adamax(net.parameters(), lr = 2e-3)\nloss_func = torch.nn.CrossEntropyLoss()\noutput = net([train1[0], train1[1], train1[2], train1[3]])\nloss = loss_func(output, train2)\ntotal_correct += get_accuracy(output, train2)\nml_loss.update(loss, batch_size*30)\nacc.update(total_correct, batch_size * 30)\noptimizer.zero_grad()\n# backward propogation\nloss.backward()\n# weight optimizer\noptimizer.step()\n</code></pre>\n<p>bug:</p>\n<pre><code class=\"lang-auto\"> loss.backward()\n File \"/Users/leo/.pyenv/versions/3.7.7/lib/python3.7/site-packages/torch/tensor.py\", line 198, in backward\n torch.autograd.backward(self, gradient, retain_graph, create_graph)\n File \"/Users/leo/.pyenv/versions/3.7.7/lib/python3.7/site-packages/torch/autograd/__init__.py\", line 100, in backward\n allow_unreachable=True) # allow_unreachable flag\nRuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.FloatTensor [300, 300, 300]], which is output 0 of SelectBackward, is at version 16; expected version 15 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True).\n</code></pre>\n<h2>\n<a name=\"expected-behavior-2\" class=\"anchor\" href=\"#expected-behavior-2\"></a>Expected behavior</h2>\n<p>Succeed to running my model script.</p>\n<h2>\n<a name=\"environment-3\" class=\"anchor\" href=\"#environment-3\"></a>Environment</h2>\n<ul>\n<li>PyTorch Version 1.5.0:</li>\n<li>OS (e.g., Linux) Mac:</li>\n<li>How you installed PyTorch (<code>conda</code>, <code>pip</code>, source):pip install torch==1.5.0</li>\n<li>Build command you used (if compiling from source):</li>\n<li>Python version: 3.7.7</li>\n<li>CUDA/cuDNN version:cpu</li>\n<li>GPU models and configuration:</li>\n<li>Any other relevant information:</li>\n</ul>",561 "post_number": 1,562 "post_type": 1,563 "posts_count": 2,564 "updated_at": "2021-05-16T17:44:20.257Z",565 "reply_count": 0,566 "reply_to_post_number": null,567 "quote_count": 0,568 "incoming_link_count": 27,569 "reads": 6,570 "readers_count": 5,571 "score": 136.2,572 "yours": false,573 "topic_id": 121434,574 "topic_slug": "when-use-loss-backward-it-has-bugs-runtimeerror-one-of-the-variables-needed-for-gradient-computation-has-been-modified-by-an-inplace-operation",575 "display_username": "Xuye Liu",576 "primary_group_name": null,577 "flair_name": null,578 "flair_url": null,579 "flair_bg_color": null,580 "flair_color": null,581 "flair_group_id": null,582 "badges_granted": [],583 "version": 1,584 "can_edit": false,585 "can_delete": false,586 "can_recover": false,587 "can_see_hidden_post": false,588 "can_wiki": false,589 "read": true,590 "user_title": null,591 "bookmarked": false,592 "actions_summary": [],593 "moderator": false,594 "admin": false,595 "staff": false,596 "user_id": 45422,597 "hidden": false,598 "trust_level": 1,599 "deleted_at": null,600 "user_deleted": false,601 "edit_reason": null,602 "can_view_edit_history": true,603 "wiki": false,604 "post_url": "/t/when-use-loss-backward-it-has-bugs-runtimeerror-one-of-the-variables-needed-for-gradient-computation-has-been-modified-by-an-inplace-operation/121434/1",605 "can_accept_answer": false,606 "can_unaccept_answer": false,607 "accepted_answer": false,608 "topic_accepted_answer": null,609 "can_vote": false610 },611 {612 "id": 284051,613 "name": "Alban D",614 "username": "albanD",615 "avatar_template": "/user_avatar/discuss.pytorch.org/alband/{size}/215_2.png",616 "created_at": "2021-05-16T17:46:12.627Z",617 "cooked": "<p>Hey</p>\n<p>As mentioned in the error message, have you tried setting <code>torch.autograd.set_detect_anomaly(True)</code> and see if you get useful informations from that?</p>",618 "post_number": 2,619 "post_type": 1,620 "posts_count": 2,621 "updated_at": "2021-05-16T17:46:12.627Z",622 "reply_count": 0,623 "reply_to_post_number": null,624 "quote_count": 0,625 "incoming_link_count": 1,626 "reads": 5,627 "readers_count": 4,628 "score": 6.0,629 "yours": false,630 "topic_id": 121434,631 "topic_slug": "when-use-loss-backward-it-has-bugs-runtimeerror-one-of-the-variables-needed-for-gradient-computation-has-been-modified-by-an-inplace-operation",632 "display_username": "Alban D",633 "primary_group_name": null,634 "flair_name": null,635 "flair_url": null,636 "flair_bg_color": null,637 "flair_color": null,638 "flair_group_id": null,639 "badges_granted": [],640 "version": 1,641 "can_edit": false,642 "can_delete": false,643 "can_recover": false,644 "can_see_hidden_post": false,645 "can_wiki": false,646 "read": true,647 "user_title": "",648 "bookmarked": false,649 "actions_summary": [],650 "moderator": true,651 "admin": true,652 "staff": true,653 "user_id": 211,654 "hidden": false,655 "trust_level": 4,656 "deleted_at": null,657 "user_deleted": false,658 "edit_reason": null,659 "can_view_edit_history": true,660 "wiki": false,661 "post_url": "/t/when-use-loss-backward-it-has-bugs-runtimeerror-one-of-the-variables-needed-for-gradient-computation-has-been-modified-by-an-inplace-operation/121434/2",662 "can_accept_answer": false,663 "can_unaccept_answer": false,664 "accepted_answer": false,665 "topic_accepted_answer": null666 }667 ],668 "stream": [669 284049,670 284051671 ]672 },673 "timeline_lookup": [674 [675 1,676 1623677 ]678 ],679 "suggested_topics": [680 {681 "fancy_title": "Help with a 3d unet",682 "id": 217679,683 "title": "Help with a 3d unet",684 "slug": "help-with-a-3d-unet",685 "posts_count": 1,686 "reply_count": 0,687 "highest_post_number": 1,688 "image_url": null,689 "created_at": "2025-03-10T22:33:48.535Z",690 "last_posted_at": "2025-03-10T22:33:48.577Z",691 "bumped": true,692 "bumped_at": "2025-03-10T22:33:48.577Z",693 "archetype": "regular",694 "unseen": false,695 "pinned": false,696 "unpinned": null,697 "visible": true,698 "closed": false,699 "archived": false,700 "bookmarked": null,701 "liked": null,702 "tags_descriptions": {},703 "like_count": 0,704 "views": 32,705 "category_id": 5,706 "featured_link": null,707 "has_accepted_answer": false,708 "posters": [709 {710 "extras": "latest single",711 "description": "Original Poster, Most Recent Poster",712 "user": {713 "id": 74076,714 "username": "Zotnam",715 "name": "pasquale c.",716 "avatar_template": "/user_avatar/discuss.pytorch.org/zotnam/{size}/68428_2.png",717 "trust_level": 1718 }719 }720 ]721 },722 {723 "fancy_title": "*I made a ResUNet code but during testing i found some unusual error*",724 "id": 217339,725 "title": "*I made a ResUNet code but during testing i found some unusual error*",726 "slug": "i-made-a-resunet-code-but-during-testing-i-found-some-unusual-error",727 "posts_count": 2,728 "reply_count": 0,729 "highest_post_number": 2,730 "image_url": "https://discuss.pytorch.org/uploads/default/optimized/3X/4/8/48d4b1b0014d22b1ea6a94c28a341501f5d6e857_2_1024x401.jpeg",731 "created_at": "2025-03-02T10:48:42.216Z",732 "last_posted_at": "2025-03-02T12:20:06.478Z",733 "bumped": true,734 "bumped_at": "2025-03-02T12:20:06.478Z",735 "archetype": "regular",736 "unseen": false,737 "pinned": false,738 "unpinned": null,739 "visible": true,740 "closed": false,741 "archived": false,742 "bookmarked": null,743 "liked": null,744 "tags_descriptions": {},745 "like_count": 0,746 "views": 30,747 "category_id": 5,748 "featured_link": null,749 "has_accepted_answer": false,750 "posters": [751 {752 "extras": null,753 "description": "Original Poster",754 "user": {755 "id": 83020,756 "username": "arup01",757 "name": "Arup Sankar Roy",758 "avatar_template": "/user_avatar/discuss.pytorch.org/arup01/{size}/75943_2.png",759 "trust_level": 0760 }761 },762 {763 "extras": "latest",764 "description": "Most Recent Poster",765 "user": {766 "id": 41458,767 "username": "J_Johnson",768 "name": "J Johnson",769 "avatar_template": "/user_avatar/discuss.pytorch.org/j_johnson/{size}/55494_2.png",770 "trust_level": 2771 }772 }773 ]774 },775 {776 "fancy_title": "Vision mamba implementation",777 "id": 216820,778 "title": "Vision mamba implementation",779 "slug": "vision-mamba-implementation",780 "posts_count": 1,781 "reply_count": 0,782 "highest_post_number": 1,783 "image_url": null,784 "created_at": "2025-02-18T12:27:27.042Z",785 "last_posted_at": "2025-02-18T12:27:27.080Z",786 "bumped": true,787 "bumped_at": "2025-02-18T12:27:27.080Z",788 "archetype": "regular",789 "unseen": false,790 "pinned": false,791 "unpinned": null,792 "visible": true,793 "closed": false,794 "archived": false,795 "bookmarked": null,796 "liked": null,797 "tags_descriptions": {},798 "like_count": 0,799 "views": 227,800 "category_id": 5,801 "featured_link": null,802 "has_accepted_answer": false,803 "posters": [804 {805 "extras": "latest single",806 "description": "Original Poster, Most Recent Poster",807 "user": {808 "id": 78321,809 "username": "Omaralmaqtari",810 "name": "Omar al-maqtari",811 "avatar_template": "/user_avatar/discuss.pytorch.org/omaralmaqtari/{size}/72219_2.png",812 "trust_level": 1813 }814 }815 ]816 },817 {818 "fancy_title": "I am unable to export my model properly and use it through onnxruntime",819 "id": 217523,820 "title": "I am unable to export my model properly and use it through onnxruntime",821 "slug": "i-am-unable-to-export-my-model-properly-and-use-it-through-onnxruntime",822 "posts_count": 4,823 "reply_count": 2,824 "highest_post_number": 4,825 "image_url": null,826 "created_at": "2025-03-06T15:25:11.690Z",827 "last_posted_at": "2025-03-07T01:19:16.265Z",828 "bumped": true,829 "bumped_at": "2025-03-07T01:19:16.265Z",830 "archetype": "regular",831 "unseen": false,832 "pinned": false,833 "unpinned": null,834 "visible": true,835 "closed": false,836 "archived": false,837 "bookmarked": null,838 "liked": null,839 "tags_descriptions": {},840 "like_count": 0,841 "views": 103,842 "category_id": 5,843 "featured_link": null,844 "has_accepted_answer": false,845 "posters": [846 {847 "extras": "latest",848 "description": "Original Poster, Most Recent Poster",849 "user": {850 "id": 71147,851 "username": "yinjun1131",852 "name": "yinjun",853 "avatar_template": "/letter_avatar_proxy/v4/letter/y/439d5e/{size}.png",854 "trust_level": 1855 }856 },857 {858 "extras": null,859 "description": "Frequent Poster",860 "user": {861 "id": 3534,862 "username": "ptrblck",863 "name": "",864 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",865 "admin": true,866 "moderator": true,867 "trust_level": 2868 }869 }870 ]871 },872 {873 "fancy_title": "Behavior of Autocontrast on Normalized Images and Default Value for `contrast_factor`",874 "id": 218967,875 "title": "Behavior of Autocontrast on Normalized Images and Default Value for `contrast_factor`",876 "slug": "behavior-of-autocontrast-on-normalized-images-and-default-value-for-contrast-factor",877 "posts_count": 1,878 "reply_count": 0,879 "highest_post_number": 1,880 "image_url": null,881 "created_at": "2025-04-11T10:07:41.312Z",882 "last_posted_at": "2025-04-11T10:07:41.358Z",883 "bumped": true,884 "bumped_at": "2025-04-11T10:07:41.358Z",885 "archetype": "regular",886 "unseen": false,887 "pinned": false,888 "unpinned": null,889 "visible": true,890 "closed": false,891 "archived": false,892 "bookmarked": null,893 "liked": null,894 "tags_descriptions": {},895 "like_count": 0,896 "views": 22,897 "category_id": 5,898 "featured_link": null,899 "has_accepted_answer": false,900 "posters": [901 {902 "extras": "latest single",903 "description": "Original Poster, Most Recent Poster",904 "user": {905 "id": 71430,906 "username": "Fatemeh_A",907 "name": "Fatemeh",908 "avatar_template": "/user_avatar/discuss.pytorch.org/fatemeh_a/{size}/65970_2.png",909 "trust_level": 1910 }911 }912 ]913 }914 ],915 "tags_descriptions": {},916 "fancy_title": "When use loss.backward, it has bugs. RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation",917 "id": 121434,918 "title": "When use loss.backward, it has bugs. RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation",919 "posts_count": 2,920 "created_at": "2021-05-16T17:44:20.169Z",921 "views": 457,922 "reply_count": 0,923 "like_count": 0,924 "last_posted_at": "2021-05-16T17:46:12.627Z",925 "visible": true,926 "closed": false,927 "archived": false,928 "has_summary": false,929 "archetype": "regular",930 "slug": "when-use-loss-backward-it-has-bugs-runtimeerror-one-of-the-variables-needed-for-gradient-computation-has-been-modified-by-an-inplace-operation",931 "category_id": 5,932 "word_count": 309,933 "deleted_at": null,934 "user_id": 45422,935 "featured_link": null,936 "pinned_globally": false,937 "pinned_at": null,938 "pinned_until": null,939 "image_url": null,940 "slow_mode_seconds": 0,941 "draft": null,942 "draft_key": "topic_121434",943 "draft_sequence": null,944 "unpinned": null,945 "pinned": false,946 "current_post_number": 1,947 "highest_post_number": 2,948 "deleted_by": null,949 "actions_summary": [950 {951 "id": 4,952 "count": 0,953 "hidden": false,954 "can_act": false955 },956 {957 "id": 8,958 "count": 0,959 "hidden": false,960 "can_act": false961 },962 {963 "id": 10,964 "count": 0,965 "hidden": false,966 "can_act": false967 },968 {969 "id": 7,970 "count": 0,971 "hidden": false,972 "can_act": false973 }974 ],975 "chunk_size": 20,976 "bookmarked": false,977 "topic_timer": null,978 "message_bus_last_id": 0,979 "participant_count": 2,980 "show_read_indicator": false,981 "thumbnails": null,982 "slow_mode_enabled_until": null,983 "can_vote": false,984 "vote_count": 0,985 "user_voted": false,986 "discourse_zendesk_plugin_zendesk_id": null,987 "discourse_zendesk_plugin_zendesk_url": "https://your-url.zendesk.com/agent/tickets/",988 "details": {989 "can_edit": false,990 "notification_level": 1,991 "participants": [992 {993 "id": 211,994 "username": "albanD",995 "name": "Alban D",996 "avatar_template": "/user_avatar/discuss.pytorch.org/alband/{size}/215_2.png",997 "post_count": 1,998 "primary_group_name": null,999 "flair_name": null,1000 "flair_url": null,1001 "flair_color": null,1002 "flair_bg_color": null,1003 "flair_group_id": null,1004 "admin": true,1005 "moderator": true,1006 "trust_level": 41007 },1008 {1009 "id": 45422,1010 "username": "Xuye_Liu",1011 "name": "Xuye Liu",1012 "avatar_template": "/user_avatar/discuss.pytorch.org/xuye_liu/{size}/38355_2.png",1013 "post_count": 1,1014 "primary_group_name": null,1015 "flair_name": null,1016 "flair_url": null,1017 "flair_color": null,1018 "flair_bg_color": null,1019 "flair_group_id": null,1020 "trust_level": 11021 }1022 ],1023 "created_by": {1024 "id": 45422,1025 "username": "Xuye_Liu",1026 "name": "Xuye Liu",1027 "avatar_template": "/user_avatar/discuss.pytorch.org/xuye_liu/{size}/38355_2.png"1028 },1029 "last_poster": {1030 "id": 211,1031 "username": "albanD",1032 "name": "Alban D",1033 "avatar_template": "/user_avatar/discuss.pytorch.org/alband/{size}/215_2.png"1034 }1035 },1036 "bookmarks": []1037 },1038 {1039 "post_stream": {1040 "posts": [1041 {1042 "id": 284016,1043 "name": "",1044 "username": "DoYourBest",1045 "avatar_template": "/user_avatar/discuss.pytorch.org/doyourbest/{size}/38365_2.png",1046 "created_at": "2021-05-16T16:10:47.765Z",1047 "cooked": "<p>I have two models then how could I save the models parameter?<br>\n<code>torch.save(model1.state_dict(), 'model1_parameter_save_path') torch.save(model2.state_dict(), 'model2_parameter_save_path')</code><br>\nDo I understand it right??</p>",1048 "post_number": 1,1049 "post_type": 1,1050 "posts_count": 2,1051 "updated_at": "2021-05-16T16:10:47.765Z",1052 "reply_count": 0,1053 "reply_to_post_number": null,1054 "quote_count": 0,1055 "incoming_link_count": 9,1056 "reads": 10,1057 "readers_count": 9,1058 "score": 47.0,1059 "yours": false,1060 "topic_id": 121424,1061 "topic_slug": "pytorch-model-save",1062 "display_username": "",1063 "primary_group_name": null,1064 "flair_name": null,1065 "flair_url": null,1066 "flair_bg_color": null,1067 "flair_color": null,1068 "flair_group_id": null,1069 "badges_granted": [],1070 "version": 1,1071 "can_edit": false,1072 "can_delete": false,1073 "can_recover": false,1074 "can_see_hidden_post": false,1075 "can_wiki": false,1076 "read": true,1077 "user_title": null,1078 "bookmarked": false,1079 "actions_summary": [],1080 "moderator": false,1081 "admin": false,1082 "staff": false,1083 "user_id": 45416,1084 "hidden": false,1085 "trust_level": 1,1086 "deleted_at": null,1087 "user_deleted": false,1088 "edit_reason": null,1089 "can_view_edit_history": true,1090 "wiki": false,1091 "post_url": "/t/pytorch-model-save/121424/1",1092 "can_accept_answer": false,1093 "can_unaccept_answer": false,1094 "accepted_answer": false,1095 "topic_accepted_answer": null,1096 "can_vote": false1097 },1098 {1099 "id": 284045,1100 "name": "Hmrishav Bandyopadhyay",1101 "username": "Hmrishav_Bandyopadhy",1102 "avatar_template": "/user_avatar/discuss.pytorch.org/hmrishav_bandyopadhy/{size}/24065_2.png",1103 "created_at": "2021-05-16T17:43:24.120Z",1104 "cooked": "<p>Yes. More info on the other ways to do this <a href=\"https://pytorch.org/tutorials/beginner/saving_loading_models.html\" rel=\"noopener nofollow ugc\">here</a></p>",1105 "post_number": 2,1106 "post_type": 1,1107 "posts_count": 2,1108 "updated_at": "2021-05-16T17:43:24.120Z",1109 "reply_count": 0,1110 "reply_to_post_number": null,1111 "quote_count": 0,1112 "incoming_link_count": 2,1113 "reads": 10,1114 "readers_count": 9,1115 "score": 27.0,1116 "yours": false,1117 "topic_id": 121424,1118 "topic_slug": "pytorch-model-save",1119 "display_username": "Hmrishav Bandyopadhyay",1120 "primary_group_name": null,1121 "flair_name": null,1122 "flair_url": null,1123 "flair_bg_color": null,1124 "flair_color": null,1125 "flair_group_id": null,1126 "badges_granted": [],1127 "version": 1,1128 "can_edit": false,1129 "can_delete": false,1130 "can_recover": false,1131 "can_see_hidden_post": false,1132 "can_wiki": false,1133 "link_counts": [1134 {1135 "url": "https://pytorch.org/tutorials/beginner/saving_loading_models.html",1136 "internal": false,1137 "reflection": false,1138 "title": "Saving and Loading Models — PyTorch Tutorials 1.8.1+cu102 documentation",1139 "clicks": 31140 }1141 ],1142 "read": true,1143 "user_title": null,1144 "bookmarked": false,1145 "actions_summary": [1146 {1147 "id": 2,1148 "count": 11149 }1150 ],1151 "moderator": false,1152 "admin": false,1153 "staff": false,1154 "user_id": 31444,1155 "hidden": false,1156 "trust_level": 2,1157 "deleted_at": null,1158 "user_deleted": false,1159 "edit_reason": null,1160 "can_view_edit_history": true,1161 "wiki": false,1162 "post_url": "/t/pytorch-model-save/121424/2",1163 "can_accept_answer": false,1164 "can_unaccept_answer": false,1165 "accepted_answer": false,1166 "topic_accepted_answer": null1167 }1168 ],1169 "stream": [1170 284016,1171 2840451172 ]1173 },1174 "timeline_lookup": [1175 [1176 1,1177 16231178 ]1179 ],1180 "suggested_topics": [1181 {1182 "fancy_title": "Convert Conv3d to Conv2d but outputs different",1183 "id": 212246,1184 "title": "Convert Conv3d to Conv2d but outputs different",1185 "slug": "convert-conv3d-to-conv2d-but-outputs-different",1186 "posts_count": 2,1187 "reply_count": 0,1188 "highest_post_number": 2,1189 "image_url": null,1190 "created_at": "2024-10-29T06:46:01.486Z",1191 "last_posted_at": "2024-10-29T19:39:20.194Z",1192 "bumped": true,1193 "bumped_at": "2024-10-29T19:39:20.194Z",1194 "archetype": "regular",1195 "unseen": false,1196 "pinned": false,1197 "unpinned": null,1198 "visible": true,1199 "closed": false,1200 "archived": false,