Anurag1734/cuda-error-resolution-analysis
07
1[2 {3 "post_stream": {4 "posts": [5 {6 "id": 348202,7 "name": "",8 "username": "mai1",9 "avatar_template": "/letter_avatar_proxy/v4/letter/m/a3d4f5/{size}.png",10 "created_at": "2022-05-24T15:37:43.567Z",11 "cooked": "<blockquote>\n<p>I get the following Error</p>\n<p>The function:</p>\n<p>def test_accuracy(model, test_loader):<br>\nmodel.eval()<br>\nacc = 0.0<br>\ntotal = 0.0</p>\n<pre><code class=\"lang-auto\">with torch.no_grad():\n for data in test_loader:\n images, labels = data\n images = images.to(torch.device('cuda'))\n labels = labels.to(torch.device('cuda'))\n # run the model on the test set to predict labels\n outputs = model(images)\n # the label with the highest energy will be our prediction\n _, predicted = torch.max(outputs.data, 1)\n total += labels.size(0)\n acc += (predicted == labels).sum().item()\n\n# compute the accuracy over all test images\nacc = (100 * acc / total)\nreturn (acc)\n</code></pre>\n<p>I would really appreciate your help,<br>\nthank you in advance</p>\n</blockquote>\n<blockquote>\n<p>Blockquote</p>\n</blockquote>",12 "post_number": 1,13 "post_type": 1,14 "posts_count": 2,15 "updated_at": "2022-05-24T15:45:45.183Z",16 "reply_count": 0,17 "reply_to_post_number": null,18 "quote_count": 0,19 "incoming_link_count": 66,20 "reads": 9,21 "readers_count": 8,22 "score": 331.8,23 "yours": false,24 "topic_id": 152505,25 "topic_slug": "runtimeerror-the-size-of-tensor-a-64-must-match-the-size-of-tensor-b-7-at-non-singleton-dimension-1",26 "display_username": "",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": 56226,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/runtimeerror-the-size-of-tensor-a-64-must-match-the-size-of-tensor-b-7-at-non-singleton-dimension-1/152505/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 "id": 348206,64 "name": "Arul",65 "username": "InnovArul",66 "avatar_template": "/user_avatar/discuss.pytorch.org/innovarul/{size}/5282_2.png",67 "created_at": "2022-05-24T15:57:47.827Z",68 "cooked": "<p>I would suggest printing <code>tensor.shape</code> in before the operations and see if there is any apparent size mismatch.<br>\nAlso, it will be helpful if you give the line number of the error.</p>",69 "post_number": 2,70 "post_type": 1,71 "posts_count": 2,72 "updated_at": "2022-05-24T15:57:47.827Z",73 "reply_count": 0,74 "reply_to_post_number": null,75 "quote_count": 0,76 "incoming_link_count": 1,77 "reads": 9,78 "readers_count": 8,79 "score": 6.8,80 "yours": false,81 "topic_id": 152505,82 "topic_slug": "runtimeerror-the-size-of-tensor-a-64-must-match-the-size-of-tensor-b-7-at-non-singleton-dimension-1",83 "display_username": "Arul",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 "read": true,98 "user_title": "",99 "bookmarked": false,100 "actions_summary": [],101 "moderator": false,102 "admin": false,103 "staff": false,104 "user_id": 998,105 "hidden": false,106 "trust_level": 2,107 "deleted_at": null,108 "user_deleted": false,109 "edit_reason": null,110 "can_view_edit_history": true,111 "wiki": false,112 "post_url": "/t/runtimeerror-the-size-of-tensor-a-64-must-match-the-size-of-tensor-b-7-at-non-singleton-dimension-1/152505/2",113 "can_accept_answer": false,114 "can_unaccept_answer": false,115 "accepted_answer": false,116 "topic_accepted_answer": null117 }118 ],119 "stream": [120 348202,121 348206122 ]123 },124 "timeline_lookup": [125 [126 1,127 1250128 ]129 ],130 "suggested_topics": [131 {132 "fancy_title": "Why does PyTorch + Ray Tune save the data twice?",133 "id": 213388,134 "title": "Why does PyTorch + Ray Tune save the data twice?",135 "slug": "why-does-pytorch-ray-tune-save-the-data-twice",136 "posts_count": 1,137 "reply_count": 0,138 "highest_post_number": 1,139 "image_url": null,140 "created_at": "2024-11-25T00:08:53.990Z",141 "last_posted_at": "2024-11-25T00:08:54.039Z",142 "bumped": true,143 "bumped_at": "2024-11-25T00:16:51.279Z",144 "archetype": "regular",145 "unseen": false,146 "pinned": false,147 "unpinned": null,148 "visible": true,149 "closed": false,150 "archived": false,151 "bookmarked": null,152 "liked": null,153 "tags_descriptions": {},154 "like_count": 0,155 "views": 28,156 "category_id": 1,157 "featured_link": null,158 "has_accepted_answer": false,159 "posters": [160 {161 "extras": "latest single",162 "description": "Original Poster, Most Recent Poster",163 "user": {164 "id": 81089,165 "username": "Aknw_Fen",166 "name": "Aknw Fen",167 "avatar_template": "/user_avatar/discuss.pytorch.org/aknw_fen/{size}/74156_2.png",168 "trust_level": 2169 }170 }171 ]172 },173 {174 "fancy_title": "CUDA out of memory while using Llama3.1-8B for inference",175 "id": 213808,176 "title": "CUDA out of memory while using Llama3.1-8B for inference",177 "slug": "cuda-out-of-memory-while-using-llama3-1-8b-for-inference",178 "posts_count": 1,179 "reply_count": 0,180 "highest_post_number": 1,181 "image_url": null,182 "created_at": "2024-12-04T17:52:39.019Z",183 "last_posted_at": "2024-12-04T17:52:39.070Z",184 "bumped": true,185 "bumped_at": "2024-12-04T17:52:39.070Z",186 "archetype": "regular",187 "unseen": false,188 "pinned": false,189 "unpinned": null,190 "visible": true,191 "closed": false,192 "archived": false,193 "bookmarked": null,194 "liked": null,195 "tags_descriptions": {},196 "like_count": 0,197 "views": 96,198 "category_id": 1,199 "featured_link": null,200 "has_accepted_answer": false,201 "posters": [202 {203 "extras": "latest single",204 "description": "Original Poster, Most Recent Poster",205 "user": {206 "id": 70667,207 "username": "tomwagstaff-opml",208 "name": "Tom Wagstaff",209 "avatar_template": "/user_avatar/discuss.pytorch.org/tomwagstaff-opml/{size}/65211_2.png",210 "trust_level": 0211 }212 }213 ]214 },215 {216 "fancy_title": "Install PyTorch 1.7",217 "id": 213881,218 "title": "Install PyTorch 1.7",219 "slug": "install-pytorch-1-7",220 "posts_count": 5,221 "reply_count": 3,222 "highest_post_number": 5,223 "image_url": "https://discuss.pytorch.org/uploads/default/optimized/3X/9/d/9d6121f6c5d76c51efced35dfb3949c6f5d304a3_2_1023x144.png",224 "created_at": "2024-12-05T22:40:54.483Z",225 "last_posted_at": "2024-12-06T16:09:25.133Z",226 "bumped": true,227 "bumped_at": "2024-12-06T16:58:31.417Z",228 "archetype": "regular",229 "unseen": false,230 "pinned": false,231 "unpinned": null,232 "visible": true,233 "closed": false,234 "archived": false,235 "bookmarked": null,236 "liked": null,237 "tags_descriptions": {},238 "like_count": 2,239 "views": 1244,240 "category_id": 1,241 "featured_link": null,242 "has_accepted_answer": true,243 "posters": [244 {245 "extras": "latest",246 "description": "Original Poster, Most Recent Poster",247 "user": {248 "id": 81343,249 "username": "adb57",250 "name": "",251 "avatar_template": "/letter_avatar_proxy/v4/letter/a/e9bcb4/{size}.png",252 "trust_level": 0253 }254 },255 {256 "extras": null,257 "description": "Frequent Poster, Accepted Answer",258 "user": {259 "id": 3534,260 "username": "ptrblck",261 "name": "",262 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",263 "admin": true,264 "moderator": true,265 "trust_level": 2266 }267 }268 ]269 },270 {271 "fancy_title": "Unable to import torch after update no module torch._utils",272 "id": 214243,273 "title": "Unable to import torch after update no module torch._utils",274 "slug": "unable-to-import-torch-after-update-no-module-torch-utils",275 "posts_count": 3,276 "reply_count": 0,277 "highest_post_number": 3,278 "image_url": null,279 "created_at": "2024-12-15T11:34:25.337Z",280 "last_posted_at": "2024-12-19T01:03:21.350Z",281 "bumped": true,282 "bumped_at": "2024-12-19T01:03:21.350Z",283 "archetype": "regular",284 "unseen": false,285 "pinned": false,286 "unpinned": null,287 "visible": true,288 "closed": false,289 "archived": false,290 "bookmarked": null,291 "liked": null,292 "tags_descriptions": {},293 "like_count": 0,294 "views": 305,295 "category_id": 1,296 "featured_link": null,297 "has_accepted_answer": true,298 "posters": [299 {300 "extras": "latest single",301 "description": "Original Poster, Most Recent Poster, Accepted Answer",302 "user": {303 "id": 81514,304 "username": "SpaceBearEngee",305 "name": "SpaceBearEngee",306 "avatar_template": "/user_avatar/discuss.pytorch.org/spacebearengee/{size}/74525_2.png",307 "trust_level": 0308 }309 }310 ]311 },312 {313 "fancy_title": "Efficiently Combine Two Tensors Based on a Boolean Mask",314 "id": 213115,315 "title": "Efficiently Combine Two Tensors Based on a Boolean Mask",316 "slug": "efficiently-combine-two-tensors-based-on-a-boolean-mask",317 "posts_count": 2,318 "reply_count": 0,319 "highest_post_number": 2,320 "image_url": null,321 "created_at": "2024-11-18T13:56:03.713Z",322 "last_posted_at": "2024-11-18T19:41:47.129Z",323 "bumped": true,324 "bumped_at": "2024-11-19T06:22:55.779Z",325 "archetype": "regular",326 "unseen": false,327 "pinned": false,328 "unpinned": null,329 "visible": true,330 "closed": false,331 "archived": false,332 "bookmarked": null,333 "liked": null,334 "tags_descriptions": {},335 "like_count": 1,336 "views": 113,337 "category_id": 1,338 "featured_link": null,339 "has_accepted_answer": true,340 "posters": [341 {342 "extras": null,343 "description": "Original Poster",344 "user": {345 "id": 80975,346 "username": "Shinnosuke_Uesaka",347 "name": "Shinnosuke Uesaka",348 "avatar_template": "/user_avatar/discuss.pytorch.org/shinnosuke_uesaka/{size}/74054_2.png",349 "trust_level": 1350 }351 },352 {353 "extras": "latest",354 "description": "Most Recent Poster, Accepted Answer",355 "user": {356 "id": 3534,357 "username": "ptrblck",358 "name": "",359 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",360 "admin": true,361 "moderator": true,362 "trust_level": 2363 }364 }365 ]366 }367 ],368 "tags_descriptions": {},369 "fancy_title": "RuntimeError: The size of tensor a (64) must match the size of tensor b (7) at non-singleton dimension 1",370 "id": 152505,371 "title": "RuntimeError: The size of tensor a (64) must match the size of tensor b (7) at non-singleton dimension 1",372 "posts_count": 2,373 "created_at": "2022-05-24T15:37:43.504Z",374 "views": 538,375 "reply_count": 0,376 "like_count": 0,377 "last_posted_at": "2022-05-24T15:57:47.827Z",378 "visible": true,379 "closed": false,380 "archived": false,381 "has_summary": false,382 "archetype": "regular",383 "slug": "runtimeerror-the-size-of-tensor-a-64-must-match-the-size-of-tensor-b-7-at-non-singleton-dimension-1",384 "category_id": 1,385 "word_count": 137,386 "deleted_at": null,387 "user_id": 56226,388 "featured_link": null,389 "pinned_globally": false,390 "pinned_at": null,391 "pinned_until": null,392 "image_url": null,393 "slow_mode_seconds": 0,394 "draft": null,395 "draft_key": "topic_152505",396 "draft_sequence": null,397 "unpinned": null,398 "pinned": false,399 "current_post_number": 1,400 "highest_post_number": 2,401 "deleted_by": null,402 "actions_summary": [403 {404 "id": 4,405 "count": 0,406 "hidden": false,407 "can_act": false408 },409 {410 "id": 8,411 "count": 0,412 "hidden": false,413 "can_act": false414 },415 {416 "id": 10,417 "count": 0,418 "hidden": false,419 "can_act": false420 },421 {422 "id": 7,423 "count": 0,424 "hidden": false,425 "can_act": false426 }427 ],428 "chunk_size": 20,429 "bookmarked": false,430 "topic_timer": null,431 "message_bus_last_id": 0,432 "participant_count": 2,433 "show_read_indicator": false,434 "thumbnails": null,435 "slow_mode_enabled_until": null,436 "can_vote": false,437 "vote_count": 0,438 "user_voted": false,439 "discourse_zendesk_plugin_zendesk_id": null,440 "discourse_zendesk_plugin_zendesk_url": "https://your-url.zendesk.com/agent/tickets/",441 "details": {442 "can_edit": false,443 "notification_level": 1,444 "participants": [445 {446 "id": 998,447 "username": "InnovArul",448 "name": "Arul",449 "avatar_template": "/user_avatar/discuss.pytorch.org/innovarul/{size}/5282_2.png",450 "post_count": 1,451 "primary_group_name": null,452 "flair_name": null,453 "flair_url": null,454 "flair_color": null,455 "flair_bg_color": null,456 "flair_group_id": null,457 "trust_level": 2458 },459 {460 "id": 56226,461 "username": "mai1",462 "name": "",463 "avatar_template": "/letter_avatar_proxy/v4/letter/m/a3d4f5/{size}.png",464 "post_count": 1,465 "primary_group_name": null,466 "flair_name": null,467 "flair_url": null,468 "flair_color": null,469 "flair_bg_color": null,470 "flair_group_id": null,471 "trust_level": 1472 }473 ],474 "created_by": {475 "id": 56226,476 "username": "mai1",477 "name": "",478 "avatar_template": "/letter_avatar_proxy/v4/letter/m/a3d4f5/{size}.png"479 },480 "last_poster": {481 "id": 998,482 "username": "InnovArul",483 "name": "Arul",484 "avatar_template": "/user_avatar/discuss.pytorch.org/innovarul/{size}/5282_2.png"485 }486 },487 "bookmarks": []488 },489 {490 "post_stream": {491 "posts": [492 {493 "id": 348193,494 "name": "",495 "username": "sfr000",496 "avatar_template": "/user_avatar/discuss.pytorch.org/sfr000/{size}/45097_2.png",497 "created_at": "2022-05-24T15:08:53.259Z",498 "cooked": "<p>I am creating my own <code>nn.Module</code> with its own <code>forward</code> function and matrix of parameters, <code>P</code>. But, I would like to impose that part of the matrix of parameters is set to zero and remains zero. Is there a way to do so without defining the matrix using multiple parameters definition?</p>\n<pre><code class=\"lang-auto\">class Model(nn.Module):\n def __init__(self, n_objects):\n super(Model, self).__init__()\n\n self.n_objects = n_objects\n P = torch.empty(\n\n (self.n_objects, self.n_objects),\n requires_grad=True)\n nn.init.uniform_(P)\n\n self.P = torch.nn.Parameter(P)\n</code></pre>\n<p>Here, for example, I would like that all the elements in the main diagonal of <code>P</code> should not change w.r.t. the original values.<br>\nThanks for the help!</p>",499 "post_number": 1,500 "post_type": 1,501 "posts_count": 1,502 "updated_at": "2022-05-24T15:21:57.418Z",503 "reply_count": 0,504 "reply_to_post_number": null,505 "quote_count": 0,506 "incoming_link_count": 19,507 "reads": 8,508 "readers_count": 7,509 "score": 96.6,510 "yours": false,511 "topic_id": 152497,512 "topic_slug": "not-to-update-part-of-the-parameters-with-backpropagation",513 "display_username": "",514 "primary_group_name": null,515 "flair_name": null,516 "flair_url": null,517 "flair_bg_color": null,518 "flair_color": null,519 "flair_group_id": null,520 "badges_granted": [],521 "version": 2,522 "can_edit": false,523 "can_delete": false,524 "can_recover": false,525 "can_see_hidden_post": false,526 "can_wiki": false,527 "read": true,528 "user_title": null,529 "bookmarked": false,530 "actions_summary": [],531 "moderator": false,532 "admin": false,533 "staff": false,534 "user_id": 56198,535 "hidden": false,536 "trust_level": 1,537 "deleted_at": null,538 "user_deleted": false,539 "edit_reason": null,540 "can_view_edit_history": true,541 "wiki": false,542 "post_url": "/t/not-to-update-part-of-the-parameters-with-backpropagation/152497/1",543 "can_accept_answer": false,544 "can_unaccept_answer": false,545 "accepted_answer": false,546 "topic_accepted_answer": null,547 "can_vote": false548 }549 ],550 "stream": [551 348193552 ]553 },554 "timeline_lookup": [555 [556 1,557 1250558 ]559 ],560 "suggested_topics": [561 {562 "fancy_title": "Gradient computation performance",563 "id": 219084,564 "title": "Gradient computation performance",565 "slug": "gradient-computation-performance",566 "posts_count": 3,567 "reply_count": 1,568 "highest_post_number": 3,569 "image_url": null,570 "created_at": "2025-04-14T21:55:51.980Z",571 "last_posted_at": "2025-04-15T19:18:56.355Z",572 "bumped": true,573 "bumped_at": "2025-04-15T19:18:56.355Z",574 "archetype": "regular",575 "unseen": false,576 "pinned": false,577 "unpinned": null,578 "visible": true,579 "closed": false,580 "archived": false,581 "bookmarked": null,582 "liked": null,583 "tags_descriptions": {},584 "like_count": 0,585 "views": 97,586 "category_id": 7,587 "featured_link": null,588 "has_accepted_answer": false,589 "posters": [590 {591 "extras": "latest",592 "description": "Original Poster, Most Recent Poster",593 "user": {594 "id": 81171,595 "username": "gideonsimpson",596 "name": "Gideonsimpson",597 "avatar_template": "/user_avatar/discuss.pytorch.org/gideonsimpson/{size}/74237_2.png",598 "trust_level": 1599 }600 },601 {602 "extras": null,603 "description": "Frequent Poster",604 "user": {605 "id": 41396,606 "username": "soulitzer",607 "name": "",608 "avatar_template": "/letter_avatar_proxy/v4/letter/s/839c29/{size}.png",609 "trust_level": 2610 }611 }612 ]613 },614 {615 "fancy_title": "Error when updating policy networks: Trying to backward through the graph a second time",616 "id": 212741,617 "title": "Error when updating policy networks: Trying to backward through the graph a second time",618 "slug": "error-when-updating-policy-networks-trying-to-backward-through-the-graph-a-second-time",619 "posts_count": 3,620 "reply_count": 1,621 "highest_post_number": 3,622 "image_url": null,623 "created_at": "2024-11-09T13:52:28.199Z",624 "last_posted_at": "2024-12-15T17:27:12.045Z",625 "bumped": true,626 "bumped_at": "2024-12-15T17:27:12.045Z",627 "archetype": "regular",628 "unseen": false,629 "pinned": false,630 "unpinned": null,631 "visible": true,632 "closed": false,633 "archived": false,634 "bookmarked": null,635 "liked": null,636 "tags_descriptions": {},637 "like_count": 0,638 "views": 66,639 "category_id": 7,640 "featured_link": null,641 "has_accepted_answer": false,642 "posters": [643 {644 "extras": null,645 "description": "Original Poster",646 "user": {647 "id": 80778,648 "username": "AVS_Origami",649 "name": "AVS Origami",650 "avatar_template": "/user_avatar/discuss.pytorch.org/avs_origami/{size}/73871_2.png",651 "trust_level": 1652 }653 },654 {655 "extras": "latest",656 "description": "Most Recent Poster",657 "user": {658 "id": 41396,659 "username": "soulitzer",660 "name": "",661 "avatar_template": "/letter_avatar_proxy/v4/letter/s/839c29/{size}.png",662 "trust_level": 2663 }664 }665 ]666 },667 {668 "fancy_title": "Checking what autodiff is differentiating",669 "id": 213549,670 "title": "Checking what autodiff is differentiating",671 "slug": "checking-what-autodiff-is-differentiating",672 "posts_count": 2,673 "reply_count": 0,674 "highest_post_number": 2,675 "image_url": null,676 "created_at": "2024-11-27T18:29:28.231Z",677 "last_posted_at": "2024-11-28T01:47:21.241Z",678 "bumped": true,679 "bumped_at": "2024-11-28T01:48:22.511Z",680 "archetype": "regular",681 "unseen": false,682 "pinned": false,683 "unpinned": null,684 "visible": true,685 "closed": false,686 "archived": false,687 "bookmarked": null,688 "liked": null,689 "tags_descriptions": {},690 "like_count": 1,691 "views": 148,692 "category_id": 7,693 "featured_link": null,694 "has_accepted_answer": false,695 "posters": [696 {697 "extras": null,698 "description": "Original Poster",699 "user": {700 "id": 81171,701 "username": "gideonsimpson",702 "name": "Gideonsimpson",703 "avatar_template": "/user_avatar/discuss.pytorch.org/gideonsimpson/{size}/74237_2.png",704 "trust_level": 1705 }706 },707 {708 "extras": "latest",709 "description": "Most Recent Poster",710 "user": {711 "id": 81089,712 "username": "Aknw_Fen",713 "name": "Aknw Fen",714 "avatar_template": "/user_avatar/discuss.pytorch.org/aknw_fen/{size}/74156_2.png",715 "trust_level": 2716 }717 }718 ]719 },720 {721 "fancy_title": "Grad is None confusion in the “what is torch.nn” tutorial",722 "id": 217061,723 "title": "Grad is None confusion in the \"what is torch.nn\" tutorial",724 "slug": "grad-is-none-confusion-in-the-what-is-torch-nn-tutorial",725 "posts_count": 4,726 "reply_count": 1,727 "highest_post_number": 4,728 "image_url": null,729 "created_at": "2025-02-23T21:17:11.536Z",730 "last_posted_at": "2025-02-24T13:51:12.027Z",731 "bumped": true,732 "bumped_at": "2025-02-24T13:51:12.027Z",733 "archetype": "regular",734 "unseen": false,735 "pinned": false,736 "unpinned": null,737 "visible": true,738 "closed": false,739 "archived": false,740 "bookmarked": null,741 "liked": null,742 "tags_descriptions": {},743 "like_count": 2,744 "views": 48,745 "category_id": 7,746 "featured_link": null,747 "has_accepted_answer": true,748 "posters": [749 {750 "extras": null,751 "description": "Original Poster",752 "user": {753 "id": 7372,754 "username": "hunan-rostomyan",755 "name": "Hunan Rostomyan",756 "avatar_template": "/user_avatar/discuss.pytorch.org/hunan-rostomyan/{size}/75838_2.png",757 "trust_level": 1758 }759 },760 {761 "extras": "latest",762 "description": "Most Recent Poster, Accepted Answer",763 "user": {764 "id": 3534,765 "username": "ptrblck",766 "name": "",767 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",768 "admin": true,769 "moderator": true,770 "trust_level": 2771 }772 }773 ]774 },775 {776 "fancy_title": "Defining loss that maximizes separation",777 "id": 223419,778 "title": "Defining loss that maximizes separation",779 "slug": "defining-loss-that-maximizes-separation",780 "posts_count": 1,781 "reply_count": 0,782 "highest_post_number": 1,783 "image_url": null,784 "created_at": "2025-10-01T19:28:39.522Z",785 "last_posted_at": "2025-10-01T19:28:39.576Z",786 "bumped": true,787 "bumped_at": "2025-10-01T19:28:39.576Z",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": 22,800 "category_id": 7,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": 86036,809 "username": "maxspiri",810 "name": "Max Spiridonov",811 "avatar_template": "/user_avatar/discuss.pytorch.org/maxspiri/{size}/78345_2.png",812 "trust_level": 0813 }814 }815 ]816 }817 ],818 "tags_descriptions": {},819 "fancy_title": "Not to update part of the parameters with backpropagation",820 "id": 152497,821 "title": "Not to update part of the parameters with backpropagation",822 "posts_count": 1,823 "created_at": "2022-05-24T15:08:53.202Z",824 "views": 408,825 "reply_count": 0,826 "like_count": 0,827 "last_posted_at": "2022-05-24T15:08:53.259Z",828 "visible": true,829 "closed": false,830 "archived": false,831 "has_summary": false,832 "archetype": "regular",833 "slug": "not-to-update-part-of-the-parameters-with-backpropagation",834 "category_id": 7,835 "word_count": 115,836 "deleted_at": null,837 "user_id": 56198,838 "featured_link": null,839 "pinned_globally": false,840 "pinned_at": null,841 "pinned_until": null,842 "image_url": null,843 "slow_mode_seconds": 0,844 "draft": null,845 "draft_key": "topic_152497",846 "draft_sequence": null,847 "unpinned": null,848 "pinned": false,849 "current_post_number": 1,850 "highest_post_number": 1,851 "deleted_by": null,852 "actions_summary": [853 {854 "id": 4,855 "count": 0,856 "hidden": false,857 "can_act": false858 },859 {860 "id": 8,861 "count": 0,862 "hidden": false,863 "can_act": false864 },865 {866 "id": 10,867 "count": 0,868 "hidden": false,869 "can_act": false870 },871 {872 "id": 7,873 "count": 0,874 "hidden": false,875 "can_act": false876 }877 ],878 "chunk_size": 20,879 "bookmarked": false,880 "topic_timer": null,881 "message_bus_last_id": 0,882 "participant_count": 1,883 "show_read_indicator": false,884 "thumbnails": null,885 "slow_mode_enabled_until": null,886 "can_vote": false,887 "vote_count": 0,888 "user_voted": false,889 "discourse_zendesk_plugin_zendesk_id": null,890 "discourse_zendesk_plugin_zendesk_url": "https://your-url.zendesk.com/agent/tickets/",891 "details": {892 "can_edit": false,893 "notification_level": 1,894 "participants": [895 {896 "id": 56198,897 "username": "sfr000",898 "name": "",899 "avatar_template": "/user_avatar/discuss.pytorch.org/sfr000/{size}/45097_2.png",900 "post_count": 1,901 "primary_group_name": null,902 "flair_name": null,903 "flair_url": null,904 "flair_color": null,905 "flair_bg_color": null,906 "flair_group_id": null,907 "trust_level": 1908 }909 ],910 "created_by": {911 "id": 56198,912 "username": "sfr000",913 "name": "",914 "avatar_template": "/user_avatar/discuss.pytorch.org/sfr000/{size}/45097_2.png"915 },916 "last_poster": {917 "id": 56198,918 "username": "sfr000",919 "name": "",920 "avatar_template": "/user_avatar/discuss.pytorch.org/sfr000/{size}/45097_2.png"921 }922 },923 "bookmarks": []924 },925 {926 "post_stream": {927 "posts": [928 {929 "id": 348194,930 "name": "AP",931 "username": "AP_M",932 "avatar_template": "/user_avatar/discuss.pytorch.org/ap_m/{size}/32203_2.png",933 "created_at": "2022-05-24T15:18:32.900Z",934 "cooked": "<p>How can I compute the other metrics such as f1 score, sensitivity, specificity in QSVM…Link: “<a href=\"https://qiskit.org/documentation/stable/0.24/tutorials/machine_learning/01_qsvm_classification.html\" class=\"inline-onebox\" rel=\"noopener nofollow ugc\">Quantum-enhanced Support Vector Machine (QSVM) — Qiskit 0.24.1 documentation</a>” taking example of breast cancer dataset.</p>",935 "post_number": 1,936 "post_type": 1,937 "posts_count": 1,938 "updated_at": "2022-05-24T15:18:32.900Z",939 "reply_count": 0,940 "reply_to_post_number": null,941 "quote_count": 0,942 "incoming_link_count": 39,943 "reads": 4,944 "readers_count": 3,945 "score": 195.8,946 "yours": false,947 "topic_id": 152498,948 "topic_slug": "f1-score-in-qsvm",949 "display_username": "AP",950 "primary_group_name": null,951 "flair_name": null,952 "flair_url": null,953 "flair_bg_color": null,954 "flair_color": null,955 "flair_group_id": null,956 "badges_granted": [],957 "version": 1,958 "can_edit": false,959 "can_delete": false,960 "can_recover": false,961 "can_see_hidden_post": false,962 "can_wiki": false,963 "link_counts": [964 {965 "url": "https://qiskit.org/documentation/stable/0.24/tutorials/machine_learning/01_qsvm_classification.html",966 "internal": false,967 "reflection": false,968 "title": "Quantum-enhanced Support Vector Machine (QSVM) — Qiskit 0.24.1 documentation",969 "clicks": 9970 }971 ],972 "read": true,973 "user_title": "",974 "bookmarked": false,975 "actions_summary": [],976 "moderator": false,977 "admin": false,978 "staff": false,979 "user_id": 43856,980 "hidden": false,981 "trust_level": 1,982 "deleted_at": null,983 "user_deleted": false,984 "edit_reason": null,985 "can_view_edit_history": true,986 "wiki": false,987 "post_url": "/t/f1-score-in-qsvm/152498/1",988 "can_accept_answer": false,989 "can_unaccept_answer": false,990 "accepted_answer": false,991 "topic_accepted_answer": null,992 "can_vote": false993 }994 ],995 "stream": [996 348194997 ]998 },999 "timeline_lookup": [1000 [1001 1,1002 12501003 ]1004 ],1005 "suggested_topics": [1006 {1007 "fancy_title": "F.cross_entropy unexpectedly slower than F.log_softmax + torch.gather",1008 "id": 213425,1009 "title": "F.cross_entropy unexpectedly slower than F.log_softmax + torch.gather",1010 "slug": "f-cross-entropy-unexpectedly-slower-than-f-log-softmax-torch-gather",1011 "posts_count": 2,1012 "reply_count": 0,1013 "highest_post_number": 2,1014 "image_url": null,1015 "created_at": "2024-11-25T21:27:40.120Z",1016 "last_posted_at": "2024-11-25T22:36:33.756Z",1017 "bumped": true,1018 "bumped_at": "2024-11-25T22:36:33.756Z",1019 "archetype": "regular",1020 "unseen": false,1021 "pinned": false,1022 "unpinned": null,1023 "visible": true,1024 "closed": false,1025 "archived": false,1026 "bookmarked": null,1027 "liked": null,1028 "tags_descriptions": {},1029 "like_count": 1,1030 "views": 44,1031 "category_id": 1,1032 "featured_link": null,1033 "has_accepted_answer": false,1034 "posters": [1035 {1036 "extras": null,1037 "description": "Original Poster",1038 "user": {1039 "id": 40732,1040 "username": "normster",1041 "name": "Norman Mu",1042 "avatar_template": "/user_avatar/discuss.pytorch.org/normster/{size}/33059_2.png",1043 "trust_level": 11044 }1045 },1046 {1047 "extras": "latest",1048 "description": "Most Recent Poster",1049 "user": {1050 "id": 3534,1051 "username": "ptrblck",1052 "name": "",1053 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",1054 "admin": true,1055 "moderator": true,1056 "trust_level": 21057 }1058 }1059 ]1060 },1061 {1062 "fancy_title": "Optimizing difference of two outer products help",1063 "id": 214326,1064 "title": "Optimizing difference of two outer products help",1065 "slug": "optimizing-difference-of-two-outer-products-help",1066 "posts_count": 2,1067 "reply_count": 0,1068 "highest_post_number": 2,1069 "image_url": null,1070 "created_at": "2024-12-17T17:23:18.739Z",1071 "last_posted_at": "2024-12-17T21:31:49.025Z",1072 "bumped": true,1073 "bumped_at": "2024-12-17T21:31:49.025Z",1074 "archetype": "regular",1075 "unseen": false,1076 "pinned": false,1077 "unpinned": null,1078 "visible": true,1079 "closed": false,1080 "archived": false,1081 "bookmarked": null,1082 "liked": null,1083 "tags_descriptions": {},1084 "like_count": 1,1085 "views": 30,1086 "category_id": 1,1087 "featured_link": null,1088 "has_accepted_answer": false,1089 "posters": [1090 {1091 "extras": null,1092 "description": "Original Poster",1093 "user": {1094 "id": 57398,1095 "username": "Nyakov",1096 "name": "",1097 "avatar_template": "/user_avatar/discuss.pytorch.org/nyakov/{size}/51180_2.png",1098 "trust_level": 11099 }1100 },1101 {1102 "extras": "latest",1103 "description": "Most Recent Poster",1104 "user": {1105 "id": 41396,1106 "username": "soulitzer",1107 "name": "",1108 "avatar_template": "/letter_avatar_proxy/v4/letter/s/839c29/{size}.png",1109 "trust_level": 21110 }1111 }1112 ]1113 },1114 {1115 "fancy_title": "What caused the large difference in execution time between these two forward passes?",1116 "id": 215460,1117 "title": "What caused the large difference in execution time between these two forward passes?",1118 "slug": "what-caused-the-large-difference-in-execution-time-between-these-two-forward-passes",1119 "posts_count": 4,1120 "reply_count": 0,1121 "highest_post_number": 4,1122 "image_url": null,1123 "created_at": "2025-01-16T08:59:28.503Z",1124 "last_posted_at": "2025-01-17T08:46:15.277Z",1125 "bumped": true,1126 "bumped_at": "2025-01-17T08:46:15.277Z",1127 "archetype": "regular",1128 "unseen": false,1129 "pinned": false,1130 "unpinned": null,1131 "visible": true,1132 "closed": false,1133 "archived": false,1134 "bookmarked": null,1135 "liked": null,1136 "tags_descriptions": {},1137 "like_count": 0,1138 "views": 34,1139 "category_id": 1,1140 "featured_link": null,1141 "has_accepted_answer": false,1142 "posters": [1143 {1144 "extras": "latest",1145 "description": "Original Poster, Most Recent Poster",1146 "user": {1147 "id": 82118,1148 "username": "ChristopherHsieh",1149 "name": "ChristopherHsieh",1150 "avatar_template": "/letter_avatar_proxy/v4/letter/c/3be4f8/{size}.png",1151 "trust_level": 11152 }1153 },1154 {1155 "extras": null,1156 "description": "Frequent Poster",1157 "user": {1158 "id": 3534,1159 "username": "ptrblck",1160 "name": "",1161 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",1162 "admin": true,1163 "moderator": true,1164 "trust_level": 21165 }1166 }1167 ]1168 },1169 {1170 "fancy_title": "Randomly masking a variable number of selected positions in a 2D tensor",1171 "id": 215554,1172 "title": "Randomly masking a variable number of selected positions in a 2D tensor",1173 "slug": "randomly-masking-a-variable-number-of-selected-positions-in-a-2d-tensor",1174 "posts_count": 2,1175 "reply_count": 0,1176 "highest_post_number": 2,1177 "image_url": null,1178 "created_at": "2025-01-18T12:00:29.986Z",1179 "last_posted_at": "2025-01-19T23:42:00.120Z",1180 "bumped": true,1181 "bumped_at": "2025-01-19T23:42:00.120Z",1182 "archetype": "regular",1183 "unseen": false,1184 "pinned": false,1185 "unpinned": null,1186 "visible": true,1187 "closed": false,1188 "archived": false,1189 "bookmarked": null,1190 "liked": null,1191 "tags_descriptions": {},1192 "like_count": 0,1193 "views": 50,1194 "category_id": 1,1195 "featured_link": null,1196 "has_accepted_answer": false,1197 "posters": [1198 {1199 "extras": null,1200 "description": "Original Poster",