Anurag1734/cuda-error-resolution-analysis
07
1[2 {3 "post_stream": {4 "posts": [5 {6 "id": 438356,7 "name": "Satya Prakash Dash",8 "username": "sprakashdash",9 "avatar_template": "/user_avatar/discuss.pytorch.org/sprakashdash/{size}/48780_2.png",10 "created_at": "2024-04-04T21:40:35.180Z",11 "cooked": "<p>I have an index tensor like we send input to a bert model after tokenization, so the shape is <code>[batch_size, seq_len]</code> and I have to return a tensor with <code>0</code>’s and <code>1</code>’s (<code>1</code>’s where the indices are matched) of shape <code>[batch_size, seq_len, vocab_size]</code>.</p>",12 "post_number": 1,13 "post_type": 1,14 "posts_count": 3,15 "updated_at": "2024-04-04T21:40:35.180Z",16 "reply_count": 0,17 "reply_to_post_number": null,18 "quote_count": 0,19 "incoming_link_count": 33,20 "reads": 6,21 "readers_count": 5,22 "score": 166.2,23 "yours": false,24 "topic_id": 200269,25 "topic_slug": "create-binary-tensor-from-index-tensor",26 "display_username": "Satya Prakash Dash",27 "primary_group_name": null,28 "flair_name": null,29 "flair_url": null,30 "flair_bg_color": null,31 "flair_color": null,32 "flair_group_id": null,33 "badges_granted": [],34 "version": 1,35 "can_edit": false,36 "can_delete": false,37 "can_recover": false,38 "can_see_hidden_post": false,39 "can_wiki": false,40 "read": true,41 "user_title": null,42 "bookmarked": false,43 "actions_summary": [],44 "moderator": false,45 "admin": false,46 "staff": false,47 "user_id": 45903,48 "hidden": false,49 "trust_level": 2,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/create-binary-tensor-from-index-tensor/200269/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": 438389,64 "name": "Satya Prakash Dash",65 "username": "sprakashdash",66 "avatar_template": "/user_avatar/discuss.pytorch.org/sprakashdash/{size}/48780_2.png",67 "created_at": "2024-04-05T10:52:37.615Z",68 "cooked": "<p>The closest solution I could find is to use <a href=\"https://pytorch.org/functorch/stable/generated/functorch.vmap.html\" rel=\"noopener nofollow ugc\">vmap</a>.<br>\nI defined a function to take an index and dimension and output a <code>torch.zeros</code> of the given dim (which is a 1-dimensional for my case) and add 1 to a specific index.</p>\n<pre><code class=\"lang-auto\">def idx2tensor(val, dim): # apply this across second dimension\n empty_tensor = torch.zeros(dim)\n empty_tensor[val] = 1\n</code></pre>\n<p>Now I am applying vmap for an input tensor of shape <code>[batch_size, seq_length]</code> and expect to get <code>[batch_size, seq_length, dim]</code>.<br>\n<code>batched_idx2ten = torch.vmap(idx2tensor, in_dims=(0, None))</code> following <a href=\"https://pytorch.org/functorch/stable/generated/functorch.vmap.html#:~:text=If%20there%20are%20multiple%20inputs%20each%20of%20which%20is%20batched%20along%20different%20dimensions%2C%20in_dims%20must%20be%20a%20tuple%20with%20the%20batch%20dimension%20for%20each%20input%20as\" rel=\"noopener nofollow ugc\">this example in docs</a>.<br>\nApply the <code>batched_idx2ten</code> to a random input and a fixed dim:</p>\n<pre><code class=\"lang-auto\">x = 10 * torch.rand(4, 10) - 1\nx = torch.tensor(x, dtype=torch.int64)\nbatched_idx2ten(x, 15)\n</code></pre>\n<p>I am now stuck with the following error:</p>\n<pre><code class=\"lang-auto\">---------------------------------------------------------------------------\nRuntimeError Traceback (most recent call last)\n<ipython-input-26-80c94fc2eaa3> in <cell line: 2>()\n 1 x = 10 * torch.rand(4, 10) - 1\n----> 2 batched_idx2ten(x, 15)\n\n4 frames\n/usr/local/lib/python3.10/dist-packages/torch/_functorch/apis.py in wrapped(*args, **kwargs)\n 186 # @functools.wraps(func)\n 187 def wrapped(*args, **kwargs):\n--> 188 return vmap_impl(func, in_dims, out_dims, randomness, chunk_size, *args, **kwargs)\n 189 \n 190 return wrapped\n\n/usr/local/lib/python3.10/dist-packages/torch/_functorch/vmap.py in vmap_impl(func, in_dims, out_dims, randomness, chunk_size, *args, **kwargs)\n 276 \n 277 # If chunk_size is not specified.\n--> 278 return _flat_vmap(\n 279 func, batch_size, flat_in_dims, flat_args, args_spec, out_dims, randomness, **kwargs\n 280 )\n\n/usr/local/lib/python3.10/dist-packages/torch/_functorch/vmap.py in fn(*args, **kwargs)\n 42 def fn(*args, **kwargs):\n 43 with torch.autograd.graph.disable_saved_tensors_hooks(message):\n---> 44 return f(*args, **kwargs)\n 45 return fn\n 46 \n\n/usr/local/lib/python3.10/dist-packages/torch/_functorch/vmap.py in _flat_vmap(func, batch_size, flat_in_dims, flat_args, args_spec, out_dims, randomness, **kwargs)\n 389 try:\n 390 batched_inputs = _create_batched_inputs(flat_in_dims, flat_args, vmap_level, args_spec)\n--> 391 batched_outputs = func(*batched_inputs, **kwargs)\n 392 return _unwrap_batched(batched_outputs, out_dims, vmap_level, batch_size, func)\n 393 finally:\n\n<ipython-input-25-c7783e629350> in idx2tensor(val, dim)\n 1 def idx2tensor(val, dim): # apply this across second dimension\n 2 empty_tensor = torch.zeros(dim)\n----> 3 empty_tensor[val] = 1\n 4 \n 5 batched_idx2ten = torch.vmap(idx2tensor, in_dims=(0, None))\n\nRuntimeError: vmap: index_put_(self, *extra_args) is not possible because there exists a Tensor `other`\nin extra_args that has more elements than `self`. This happened due to `other` being vmapped over but\n`self` not being vmapped over in a vmap. Please try to use out-of-place operators instead of index_put_. \nIf said operator is being called inside the PyTorch framework, please file a bug report instead.\n</code></pre>",69 "post_number": 2,70 "post_type": 1,71 "posts_count": 3,72 "updated_at": "2024-04-05T11:19:09.922Z",73 "reply_count": 1,74 "reply_to_post_number": null,75 "quote_count": 0,76 "incoming_link_count": 0,77 "reads": 6,78 "readers_count": 5,79 "score": 6.2,80 "yours": false,81 "topic_id": 200269,82 "topic_slug": "create-binary-tensor-from-index-tensor",83 "display_username": "Satya Prakash Dash",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": 2,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/functorch/stable/generated/functorch.vmap.html",100 "internal": false,101 "reflection": false,102 "title": "functorch.vmap — functorch nightly documentation",103 "clicks": 0104 },105 {106 "url": "https://pytorch.org/functorch/stable/generated/functorch.vmap.html#:~:text=If%20there%20are%20multiple%20inputs%20each%20of%20which%20is%20batched%20along%20different%20dimensions%2C%20in_dims%20must%20be%20a%20tuple%20with%20the%20batch%20dimension%20for%20each%20input%20as",107 "internal": false,108 "reflection": false,109 "title": "functorch.vmap — functorch nightly documentation",110 "clicks": 0111 }112 ],113 "read": true,114 "user_title": null,115 "bookmarked": false,116 "actions_summary": [],117 "moderator": false,118 "admin": false,119 "staff": false,120 "user_id": 45903,121 "hidden": false,122 "trust_level": 2,123 "deleted_at": null,124 "user_deleted": false,125 "edit_reason": null,126 "can_view_edit_history": true,127 "wiki": false,128 "post_url": "/t/create-binary-tensor-from-index-tensor/200269/2",129 "can_accept_answer": false,130 "can_unaccept_answer": false,131 "accepted_answer": false,132 "topic_accepted_answer": true133 },134 {135 "id": 438417,136 "name": "K. Frank",137 "username": "KFrank",138 "avatar_template": "/letter_avatar_proxy/v4/letter/k/ecb155/{size}.png",139 "created_at": "2024-04-05T15:32:22.780Z",140 "cooked": "<p>Hi Satya!</p>\n<aside class=\"quote no-group\" data-username=\"sprakashdash\" data-post=\"2\" data-topic=\"200269\" data-full=\"true\">\n<div class=\"title\">\n<div class=\"quote-controls\"></div>\n<img loading=\"lazy\" alt=\"\" width=\"24\" height=\"24\" src=\"https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/sprakashdash/48/48780_2.png\" class=\"avatar\"> sprakashdash:</div>\n<blockquote>\n<pre><code class=\"lang-auto\">def idx2tensor(val, dim): # apply this across second dimension\n empty_tensor = torch.zeros(dim)\n empty_tensor[val] = 1\n</code></pre>\n</blockquote>\n</aside>\n<p>I believe that you are looking for <code>torch.nn.functional.one_hot()</code>:</p>\n<pre><code class=\"lang-plaintext\">>>> import torch\n>>> torch.__version__\n'2.2.2'\n>>> _ = torch.manual_seed (2024)\n>>> x = 10 * torch.rand(4, 10) - 1\n>>> x = torch.tensor(x, dtype=torch.int64)\n<stdin>:1: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).\n>>> x\ntensor([[4, 7, 8, 0, 0, 2, 1, 5, 3, 6],\n [0, 4, 0, 6, 8, 3, 2, 8, 6, 5],\n [7, 8, 5, 5, 1, 4, 1, 6, 0, 0],\n [1, 0, 8, 5, 5, 3, 4, 0, 2, 4]])\n>>> result = torch.nn.functional.one_hot (x, 15)\n>>> result.shape\ntorch.Size([4, 10, 15])\n>>> result[0]\ntensor([[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0],\n [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]])\n</code></pre>\n<p>Best.</p>\n<p>K. Frank</p>",141 "post_number": 3,142 "post_type": 1,143 "posts_count": 3,144 "updated_at": "2024-04-05T15:32:22.780Z",145 "reply_count": 0,146 "reply_to_post_number": 2,147 "quote_count": 1,148 "incoming_link_count": 6,149 "reads": 4,150 "readers_count": 3,151 "score": 45.8,152 "yours": false,153 "topic_id": 200269,154 "topic_slug": "create-binary-tensor-from-index-tensor",155 "display_username": "K. Frank",156 "primary_group_name": null,157 "flair_name": null,158 "flair_url": null,159 "flair_bg_color": null,160 "flair_color": null,161 "flair_group_id": null,162 "badges_granted": [],163 "version": 1,164 "can_edit": false,165 "can_delete": false,166 "can_recover": false,167 "can_see_hidden_post": false,168 "can_wiki": false,169 "read": true,170 "user_title": null,171 "bookmarked": false,172 "actions_summary": [173 {174 "id": 2,175 "count": 1176 }177 ],178 "moderator": false,179 "admin": false,180 "staff": false,181 "user_id": 18088,182 "hidden": false,183 "trust_level": 2,184 "deleted_at": null,185 "user_deleted": false,186 "edit_reason": null,187 "can_view_edit_history": true,188 "wiki": false,189 "post_url": "/t/create-binary-tensor-from-index-tensor/200269/3",190 "can_accept_answer": false,191 "can_unaccept_answer": false,192 "accepted_answer": true,193 "topic_accepted_answer": true194 }195 ],196 "stream": [197 438356,198 438389,199 438417200 ]201 },202 "timeline_lookup": [203 [204 1,205 569206 ],207 [208 2,209 568210 ]211 ],212 "suggested_topics": [213 {214 "fancy_title": "Process Pool freezes",215 "id": 214981,216 "title": "Process Pool freezes",217 "slug": "process-pool-freezes",218 "posts_count": 1,219 "reply_count": 0,220 "highest_post_number": 1,221 "image_url": null,222 "created_at": "2025-01-04T22:52:42.533Z",223 "last_posted_at": "2025-01-04T22:52:42.574Z",224 "bumped": true,225 "bumped_at": "2025-01-04T22:52:42.574Z",226 "archetype": "regular",227 "unseen": false,228 "pinned": false,229 "unpinned": null,230 "visible": true,231 "closed": false,232 "archived": false,233 "bookmarked": null,234 "liked": null,235 "tags_descriptions": {},236 "like_count": 0,237 "views": 106,238 "category_id": 1,239 "featured_link": null,240 "has_accepted_answer": false,241 "posters": [242 {243 "extras": "latest single",244 "description": "Original Poster, Most Recent Poster",245 "user": {246 "id": 81433,247 "username": "ACitronella",248 "name": "",249 "avatar_template": "/letter_avatar_proxy/v4/letter/a/9fc29f/{size}.png",250 "trust_level": 1251 }252 }253 ]254 },255 {256 "fancy_title": "How to run PyTorch DDP with Hydra + Optuna?",257 "id": 213316,258 "title": "How to run PyTorch DDP with Hydra + Optuna?",259 "slug": "how-to-run-pytorch-ddp-with-hydra-optuna",260 "posts_count": 1,261 "reply_count": 0,262 "highest_post_number": 1,263 "image_url": null,264 "created_at": "2024-11-22T17:40:03.638Z",265 "last_posted_at": "2024-11-22T17:40:03.696Z",266 "bumped": true,267 "bumped_at": "2024-11-22T17:40:03.696Z",268 "archetype": "regular",269 "unseen": false,270 "pinned": false,271 "unpinned": null,272 "visible": true,273 "closed": false,274 "archived": false,275 "bookmarked": null,276 "liked": null,277 "tags_descriptions": {},278 "like_count": 0,279 "views": 235,280 "category_id": 1,281 "featured_link": null,282 "has_accepted_answer": false,283 "posters": [284 {285 "extras": "latest single",286 "description": "Original Poster, Most Recent Poster",287 "user": {288 "id": 81072,289 "username": "deepakpokkalla",290 "name": "Deepak Pokkalla",291 "avatar_template": "/user_avatar/discuss.pytorch.org/deepakpokkalla/{size}/74136_2.png",292 "trust_level": 1293 }294 }295 ]296 },297 {298 "fancy_title": "During evaluation process, my model keeps predicting the same result",299 "id": 215639,300 "title": "During evaluation process, my model keeps predicting the same result",301 "slug": "during-evaluation-process-my-model-keeps-predicting-the-same-result",302 "posts_count": 1,303 "reply_count": 0,304 "highest_post_number": 1,305 "image_url": null,306 "created_at": "2025-01-20T21:47:32.297Z",307 "last_posted_at": "2025-01-20T21:47:32.341Z",308 "bumped": true,309 "bumped_at": "2025-01-22T09:04:02.720Z",310 "archetype": "regular",311 "unseen": false,312 "pinned": false,313 "unpinned": null,314 "visible": true,315 "closed": false,316 "archived": false,317 "bookmarked": null,318 "liked": null,319 "tags_descriptions": {},320 "like_count": 0,321 "views": 52,322 "category_id": 1,323 "featured_link": null,324 "has_accepted_answer": false,325 "posters": [326 {327 "extras": "latest single",328 "description": "Original Poster, Most Recent Poster",329 "user": {330 "id": 77180,331 "username": "L_Z",332 "name": "L Z",333 "avatar_template": "/user_avatar/discuss.pytorch.org/l_z/{size}/71230_2.png",334 "trust_level": 1335 }336 }337 ]338 },339 {340 "fancy_title": "`sm_89` not listed in the `torch.cuda.get_arch_list()`",341 "id": 215827,342 "title": "`sm_89` not listed in the `torch.cuda.get_arch_list()`",343 "slug": "sm-89-not-listed-in-the-torch-cuda-get-arch-list",344 "posts_count": 6,345 "reply_count": 4,346 "highest_post_number": 6,347 "image_url": null,348 "created_at": "2025-01-24T14:41:00.900Z",349 "last_posted_at": "2025-01-24T20:32:06.683Z",350 "bumped": true,351 "bumped_at": "2025-01-24T20:32:06.683Z",352 "archetype": "regular",353 "unseen": false,354 "pinned": false,355 "unpinned": null,356 "visible": true,357 "closed": false,358 "archived": false,359 "bookmarked": null,360 "liked": null,361 "tags_descriptions": {},362 "like_count": 1,363 "views": 997,364 "category_id": 1,365 "featured_link": null,366 "has_accepted_answer": false,367 "posters": [368 {369 "extras": null,370 "description": "Original Poster",371 "user": {372 "id": 3938,373 "username": "vgoklani",374 "name": "Vishal Goklani",375 "avatar_template": "/user_avatar/discuss.pytorch.org/vgoklani/{size}/1971_2.png",376 "trust_level": 1377 }378 },379 {380 "extras": "latest",381 "description": "Most Recent Poster",382 "user": {383 "id": 3534,384 "username": "ptrblck",385 "name": "",386 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",387 "admin": true,388 "moderator": true,389 "trust_level": 2390 }391 }392 ]393 },394 {395 "fancy_title": "GQA support in scaled_dot_product_attention",396 "id": 216288,397 "title": "GQA support in scaled_dot_product_attention",398 "slug": "gqa-support-in-scaled-dot-product-attention",399 "posts_count": 3,400 "reply_count": 0,401 "highest_post_number": 3,402 "image_url": null,403 "created_at": "2025-02-05T19:45:10.249Z",404 "last_posted_at": "2025-03-29T00:34:36.072Z",405 "bumped": true,406 "bumped_at": "2025-03-29T00:34:36.072Z",407 "archetype": "regular",408 "unseen": false,409 "pinned": false,410 "unpinned": null,411 "visible": true,412 "closed": false,413 "archived": false,414 "bookmarked": null,415 "liked": null,416 "tags_descriptions": {},417 "like_count": 0,418 "views": 165,419 "category_id": 1,420 "featured_link": null,421 "has_accepted_answer": false,422 "posters": [423 {424 "extras": null,425 "description": "Original Poster",426 "user": {427 "id": 81725,428 "username": "mseeger",429 "name": null,430 "avatar_template": "/letter_avatar_proxy/v4/letter/m/6bbea6/{size}.png",431 "trust_level": 1432 }433 },434 {435 "extras": "latest",436 "description": "Most Recent Poster",437 "user": {438 "id": 82717,439 "username": "ReadyPlayerEmma",440 "name": "ReadyPlayerEmma",441 "avatar_template": "/user_avatar/discuss.pytorch.org/readyplayeremma/{size}/75681_2.png",442 "trust_level": 0443 }444 }445 ]446 }447 ],448 "tags_descriptions": {},449 "fancy_title": "Create binary tensor from index tensor",450 "id": 200269,451 "title": "Create binary tensor from index tensor",452 "posts_count": 3,453 "created_at": "2024-04-04T21:40:35.052Z",454 "views": 369,455 "reply_count": 1,456 "like_count": 1,457 "last_posted_at": "2024-04-05T15:32:22.780Z",458 "visible": true,459 "closed": false,460 "archived": false,461 "has_summary": false,462 "archetype": "regular",463 "slug": "create-binary-tensor-from-index-tensor",464 "category_id": 1,465 "word_count": 813,466 "deleted_at": null,467 "user_id": 45903,468 "featured_link": null,469 "pinned_globally": false,470 "pinned_at": null,471 "pinned_until": null,472 "image_url": null,473 "slow_mode_seconds": 0,474 "draft": null,475 "draft_key": "topic_200269",476 "draft_sequence": null,477 "unpinned": null,478 "pinned": false,479 "current_post_number": 1,480 "highest_post_number": 3,481 "deleted_by": null,482 "actions_summary": [483 {484 "id": 4,485 "count": 0,486 "hidden": false,487 "can_act": false488 },489 {490 "id": 8,491 "count": 0,492 "hidden": false,493 "can_act": false494 },495 {496 "id": 10,497 "count": 0,498 "hidden": false,499 "can_act": false500 },501 {502 "id": 7,503 "count": 0,504 "hidden": false,505 "can_act": false506 }507 ],508 "chunk_size": 20,509 "bookmarked": false,510 "topic_timer": null,511 "message_bus_last_id": 0,512 "participant_count": 2,513 "show_read_indicator": false,514 "thumbnails": null,515 "slow_mode_enabled_until": null,516 "accepted_answer": {517 "post_number": 3,518 "username": "KFrank",519 "name": "K. Frank",520 "excerpt": "Hi Satya! \n\nI believe that you are looking for torch.nn.functional.one_hot(): \n>>> import torch\n>>> torch.__version__\n'2.2.2'\n>>> _ = torch.manual_seed (2024)\n>>> x = 10 * torch.rand(4, 10) - 1\n>>> x = torch.tensor(x, dtype=torch.int64)\n<stdin>:1: UserWarning: To copy construct from a tensor, it is …"521 },522 "can_vote": false,523 "vote_count": 0,524 "user_voted": false,525 "discourse_zendesk_plugin_zendesk_id": null,526 "discourse_zendesk_plugin_zendesk_url": "https://your-url.zendesk.com/agent/tickets/",527 "details": {528 "can_edit": false,529 "notification_level": 1,530 "participants": [531 {532 "id": 45903,533 "username": "sprakashdash",534 "name": "Satya Prakash Dash",535 "avatar_template": "/user_avatar/discuss.pytorch.org/sprakashdash/{size}/48780_2.png",536 "post_count": 2,537 "primary_group_name": null,538 "flair_name": null,539 "flair_url": null,540 "flair_color": null,541 "flair_bg_color": null,542 "flair_group_id": null,543 "trust_level": 2544 },545 {546 "id": 18088,547 "username": "KFrank",548 "name": "K. Frank",549 "avatar_template": "/letter_avatar_proxy/v4/letter/k/ecb155/{size}.png",550 "post_count": 1,551 "primary_group_name": null,552 "flair_name": null,553 "flair_url": null,554 "flair_color": null,555 "flair_bg_color": null,556 "flair_group_id": null,557 "trust_level": 2558 }559 ],560 "created_by": {561 "id": 45903,562 "username": "sprakashdash",563 "name": "Satya Prakash Dash",564 "avatar_template": "/user_avatar/discuss.pytorch.org/sprakashdash/{size}/48780_2.png"565 },566 "last_poster": {567 "id": 18088,568 "username": "KFrank",569 "name": "K. Frank",570 "avatar_template": "/letter_avatar_proxy/v4/letter/k/ecb155/{size}.png"571 }572 },573 "bookmarks": []574 },575 {576 "post_stream": {577 "posts": [578 {579 "id": 438052,580 "name": "ViktorPavlovA",581 "username": "ViktorPavlovA",582 "avatar_template": "/user_avatar/discuss.pytorch.org/viktorpavlova/{size}/68931_2.png",583 "created_at": "2024-04-02T18:55:48.931Z",584 "cooked": "<p>Hello.</p>\n<p>I have jetson xavier nx. I have already install version of torch-2.1.0a0+41361538.nv23.06-cp38-cp38-linux_aarch64.whl with using this <a href=\"https://forums.developer.nvidia.com/t/pytorch-for-jetson/72048\" rel=\"noopener nofollow ugc\">guide</a> . But i don’t found correct version of torchvision. it must be 0.15.1 but what’s the name of the branch ? I guess i try wrong branch…</p>\n<p>Thank you!</p>",585 "post_number": 1,586 "post_type": 1,587 "posts_count": 4,588 "updated_at": "2024-04-02T19:39:20.974Z",589 "reply_count": 0,590 "reply_to_post_number": null,591 "quote_count": 0,592 "incoming_link_count": 500,593 "reads": 4,594 "readers_count": 3,595 "score": 2490.8,596 "yours": false,597 "topic_id": 200103,598 "topic_slug": "trouble-with-installing-torchvision-on-jetson-xavier-nx",599 "display_username": "ViktorPavlovA",600 "primary_group_name": null,601 "flair_name": null,602 "flair_url": null,603 "flair_bg_color": null,604 "flair_color": null,605 "flair_group_id": null,606 "badges_granted": [],607 "version": 2,608 "can_edit": false,609 "can_delete": false,610 "can_recover": false,611 "can_see_hidden_post": false,612 "can_wiki": false,613 "link_counts": [614 {615 "url": "https://forums.developer.nvidia.com/t/pytorch-for-jetson/72048",616 "internal": false,617 "reflection": false,618 "title": "PyTorch for Jetson - Announcements - NVIDIA Developer Forums",619 "clicks": 39620 }621 ],622 "read": true,623 "user_title": null,624 "bookmarked": false,625 "actions_summary": [],626 "moderator": false,627 "admin": false,628 "staff": false,629 "user_id": 74654,630 "hidden": false,631 "trust_level": 0,632 "deleted_at": null,633 "user_deleted": false,634 "edit_reason": null,635 "can_view_edit_history": true,636 "wiki": false,637 "post_url": "/t/trouble-with-installing-torchvision-on-jetson-xavier-nx/200103/1",638 "can_accept_answer": false,639 "can_unaccept_answer": false,640 "accepted_answer": false,641 "topic_accepted_answer": true,642 "can_vote": false643 },644 {645 "id": 438058,646 "name": "",647 "username": "ptrblck",648 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",649 "created_at": "2024-04-02T19:41:57.122Z",650 "cooked": "<p>This older PyTorch release shipped with <a href=\"https://github.com/pytorch/vision/commit/912c44fa\">this <code>torchvision</code> tag</a> and your link shows how to build it from source.</p>",651 "post_number": 2,652 "post_type": 1,653 "posts_count": 4,654 "updated_at": "2024-04-02T19:41:57.122Z",655 "reply_count": 0,656 "reply_to_post_number": null,657 "quote_count": 0,658 "incoming_link_count": 14,659 "reads": 4,660 "readers_count": 3,661 "score": 85.8,662 "yours": false,663 "topic_id": 200103,664 "topic_slug": "trouble-with-installing-torchvision-on-jetson-xavier-nx",665 "display_username": "",666 "primary_group_name": null,667 "flair_name": null,668 "flair_url": null,669 "flair_bg_color": null,670 "flair_color": null,671 "flair_group_id": null,672 "badges_granted": [],673 "version": 1,674 "can_edit": false,675 "can_delete": false,676 "can_recover": false,677 "can_see_hidden_post": false,678 "can_wiki": false,679 "link_counts": [680 {681 "url": "https://github.com/pytorch/vision/commit/912c44fa",682 "internal": false,683 "reflection": false,684 "title": "Fix Resize() documentation (#7536) · pytorch/vision@912c44f · GitHub",685 "clicks": 70686 }687 ],688 "read": true,689 "user_title": "",690 "bookmarked": false,691 "actions_summary": [692 {693 "id": 2,694 "count": 1695 }696 ],697 "moderator": true,698 "admin": true,699 "staff": true,700 "user_id": 3534,701 "hidden": false,702 "trust_level": 2,703 "deleted_at": null,704 "user_deleted": false,705 "edit_reason": null,706 "can_view_edit_history": true,707 "wiki": false,708 "post_url": "/t/trouble-with-installing-torchvision-on-jetson-xavier-nx/200103/2",709 "can_accept_answer": false,710 "can_unaccept_answer": false,711 "accepted_answer": true,712 "topic_accepted_answer": true713 },714 {715 "id": 438374,716 "name": "ViktorPavlovA",717 "username": "ViktorPavlovA",718 "avatar_template": "/user_avatar/discuss.pytorch.org/viktorpavlova/{size}/68931_2.png",719 "created_at": "2024-04-05T06:24:25.213Z",720 "cooked": "<p>Well. Thank you! But it’s not correct branch.</p>",721 "post_number": 3,722 "post_type": 1,723 "posts_count": 4,724 "updated_at": "2024-04-05T06:24:25.213Z",725 "reply_count": 1,726 "reply_to_post_number": null,727 "quote_count": 0,728 "incoming_link_count": 4,729 "reads": 4,730 "readers_count": 3,731 "score": 25.8,732 "yours": false,733 "topic_id": 200103,734 "topic_slug": "trouble-with-installing-torchvision-on-jetson-xavier-nx",735 "display_username": "ViktorPavlovA",736 "primary_group_name": null,737 "flair_name": null,738 "flair_url": null,739 "flair_bg_color": null,740 "flair_color": null,741 "flair_group_id": null,742 "badges_granted": [],743 "version": 1,744 "can_edit": false,745 "can_delete": false,746 "can_recover": false,747 "can_see_hidden_post": false,748 "can_wiki": false,749 "read": true,750 "user_title": null,751 "bookmarked": false,752 "actions_summary": [],753 "moderator": false,754 "admin": false,755 "staff": false,756 "user_id": 74654,757 "hidden": false,758 "trust_level": 0,759 "deleted_at": null,760 "user_deleted": false,761 "edit_reason": null,762 "can_view_edit_history": true,763 "wiki": false,764 "post_url": "/t/trouble-with-installing-torchvision-on-jetson-xavier-nx/200103/3",765 "can_accept_answer": false,766 "can_unaccept_answer": false,767 "accepted_answer": false,768 "topic_accepted_answer": true769 },770 {771 "id": 438409,772 "name": "",773 "username": "ptrblck",774 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",775 "created_at": "2024-04-05T14:00:17.320Z",776 "cooked": "<p>Yes, it is the right one, which was also used in the <a href=\"https://catalog.ngc.nvidia.com/orgs/nvidia/containers/pytorch\">PyTorch 23.06 NGC container</a>.</p>",777 "post_number": 4,778 "post_type": 1,779 "posts_count": 4,780 "updated_at": "2024-04-05T14:00:17.320Z",781 "reply_count": 0,782 "reply_to_post_number": 3,783 "quote_count": 0,784 "incoming_link_count": 9,785 "reads": 3,786 "readers_count": 2,787 "score": 45.6,788 "yours": false,789 "topic_id": 200103,790 "topic_slug": "trouble-with-installing-torchvision-on-jetson-xavier-nx",791 "display_username": "",792 "primary_group_name": null,793 "flair_name": null,794 "flair_url": null,795 "flair_bg_color": null,796 "flair_color": null,797 "flair_group_id": null,798 "badges_granted": [],799 "version": 1,800 "can_edit": false,801 "can_delete": false,802 "can_recover": false,803 "can_see_hidden_post": false,804 "can_wiki": false,805 "link_counts": [806 {807 "url": "https://catalog.ngc.nvidia.com/orgs/nvidia/containers/pytorch",808 "internal": false,809 "reflection": false,810 "title": "PyTorch | NVIDIA NGC",811 "clicks": 33812 }813 ],814 "read": true,815 "user_title": "",816 "reply_to_user": {817 "id": 74654,818 "username": "ViktorPavlovA",819 "name": "ViktorPavlovA",820 "avatar_template": "/user_avatar/discuss.pytorch.org/viktorpavlova/{size}/68931_2.png"821 },822 "bookmarked": false,823 "actions_summary": [],824 "moderator": true,825 "admin": true,826 "staff": true,827 "user_id": 3534,828 "hidden": false,829 "trust_level": 2,830 "deleted_at": null,831 "user_deleted": false,832 "edit_reason": null,833 "can_view_edit_history": true,834 "wiki": false,835 "post_url": "/t/trouble-with-installing-torchvision-on-jetson-xavier-nx/200103/4",836 "can_accept_answer": false,837 "can_unaccept_answer": false,838 "accepted_answer": false,839 "topic_accepted_answer": true840 }841 ],842 "stream": [843 438052,844 438058,845 438374,846 438409847 ]848 },849 "timeline_lookup": [850 [851 1,852 571853 ],854 [855 3,856 569857 ],858 [859 4,860 568861 ]862 ],863 "suggested_topics": [864 {865 "fancy_title": "Q: Trying to run Mandelbrot on GPU via PyTorch, but not seeing speed-up",866 "id": 213528,867 "title": "Q: Trying to run Mandelbrot on GPU via PyTorch, but not seeing speed-up",868 "slug": "q-trying-to-run-mandelbrot-on-gpu-via-pytorch-but-not-seeing-speed-up",869 "posts_count": 5,870 "reply_count": 2,871 "highest_post_number": 5,872 "image_url": "https://discuss.pytorch.org/uploads/default/optimized/3X/b/b/bb7f1190813ce66ca53039c469cf71a315b39d5e_2_1024x673.jpeg",873 "created_at": "2024-11-27T14:37:49.259Z",874 "last_posted_at": "2024-11-30T14:39:48.153Z",875 "bumped": true,876 "bumped_at": "2024-11-30T14:39:48.153Z",877 "archetype": "regular",878 "unseen": false,879 "pinned": false,880 "unpinned": null,881 "visible": true,882 "closed": false,883 "archived": false,884 "bookmarked": null,885 "liked": null,886 "tags_descriptions": {},887 "like_count": 0,888 "views": 306,889 "category_id": 1,890 "featured_link": null,891 "has_accepted_answer": true,892 "posters": [893 {894 "extras": "latest",895 "description": "Original Poster, Most Recent Poster",896 "user": {897 "id": 81164,898 "username": "Rajeev_Raizada",899 "name": "Rajeev Raizada",900 "avatar_template": "/user_avatar/discuss.pytorch.org/rajeev_raizada/{size}/74226_2.png",901 "trust_level": 0902 }903 },904 {905 "extras": null,906 "description": "Frequent Poster, Accepted Answer",907 "user": {908 "id": 3534,909 "username": "ptrblck",910 "name": "",911 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",912 "admin": true,913 "moderator": true,914 "trust_level": 2915 }916 },917 {918 "extras": null,919 "description": "Frequent Poster",920 "user": {921 "id": 81166,922 "username": "lennarteingunia",923 "name": "Lennart Eing",924 "avatar_template": "/letter_avatar_proxy/v4/letter/l/cdc98d/{size}.png",925 "trust_level": 0926 }927 }928 ]929 },930 {931 "fancy_title": "Torchvision,Torchaudio and Xavier Nx",932 "id": 213485,933 "title": "Torchvision,Torchaudio and Xavier Nx",934 "slug": "torchvision-torchaudio-and-xavier-nx",935 "posts_count": 2,936 "reply_count": 0,937 "highest_post_number": 2,938 "image_url": null,939 "created_at": "2024-11-26T19:16:21.062Z",940 "last_posted_at": "2024-11-27T16:02:01.415Z",941 "bumped": true,942 "bumped_at": "2024-11-27T16:02:01.415Z",943 "archetype": "regular",944 "unseen": false,945 "pinned": false,946 "unpinned": null,947 "visible": true,948 "closed": false,949 "archived": false,950 "bookmarked": null,951 "liked": null,952 "tags_descriptions": {},953 "like_count": 0,954 "views": 155,955 "category_id": 1,956 "featured_link": null,957 "has_accepted_answer": false,958 "posters": [959 {960 "extras": null,961 "description": "Original Poster",962 "user": {963 "id": 78263,964 "username": "Halil_Huseyin_Calisk",965 "name": "Halil Hüseyin Çalışkan",966 "avatar_template": "/user_avatar/discuss.pytorch.org/halil_huseyin_calisk/{size}/62070_2.png",967 "trust_level": 1968 }969 },970 {971 "extras": "latest",972 "description": "Most Recent Poster",973 "user": {974 "id": 3534,975 "username": "ptrblck",976 "name": "",977 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",978 "admin": true,979 "moderator": true,980 "trust_level": 2981 }982 }983 ]984 },985 {986 "fancy_title": "Running Llama-3.3-70b-instruct: CUBLAS_STATUS_EXECUTION_FAILED when calling `cublasSgemm( handle, opa, opb, m, n, k, &alpha, a, lda, b, ldb, &beta, c, ldc)",987 "id": 214850,988 "title": "Running Llama-3.3-70b-instruct: CUBLAS_STATUS_EXECUTION_FAILED when calling `cublasSgemm( handle, opa, opb, m, n, k, &alpha, a, lda, b, ldb, &beta, c, ldc)",989 "slug": "running-llama-3-3-70b-instruct-cublas-status-execution-failed-when-calling-cublassgemm-handle-opa-opb-m-n-k-alpha-a-lda-b-ldb-beta-c-ldc",990 "posts_count": 1,991 "reply_count": 0,992 "highest_post_number": 1,993 "image_url": null,994 "created_at": "2025-01-01T16:09:32.202Z",995 "last_posted_at": "2025-01-01T16:09:32.248Z",996 "bumped": true,997 "bumped_at": "2025-01-01T16:09:32.248Z",998 "archetype": "regular",999 "unseen": false,1000 "pinned": false,1001 "unpinned": null,1002 "visible": true,1003 "closed": false,1004 "archived": false,1005 "bookmarked": null,1006 "liked": null,1007 "tags_descriptions": {},1008 "like_count": 0,1009 "views": 27,1010 "category_id": 1,1011 "featured_link": null,1012 "has_accepted_answer": false,1013 "posters": [1014 {1015 "extras": "latest single",1016 "description": "Original Poster, Most Recent Poster",1017 "user": {1018 "id": 81823,1019 "username": "Charlie_G",1020 "name": "Charlie G",1021 "avatar_template": "/user_avatar/discuss.pytorch.org/charlie_g/{size}/74850_2.png",1022 "trust_level": 01023 }1024 }1025 ]1026 },1027 {1028 "fancy_title": "[Pytorch1.12] RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation",1029 "id": 216528,1030 "title": "[Pytorch1.12] RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation",1031 "slug": "pytorch1-12-runtimeerror-one-of-the-variables-needed-for-gradient-computation-has-been-modified-by-an-inplace-operation",1032 "posts_count": 1,1033 "reply_count": 0,1034 "highest_post_number": 1,1035 "image_url": null,1036 "created_at": "2025-02-11T13:00:16.487Z",1037 "last_posted_at": "2025-02-11T13:00:16.523Z",1038 "bumped": true,1039 "bumped_at": "2025-02-11T13:00:16.523Z",1040 "archetype": "regular",1041 "unseen": false,1042 "pinned": false,1043 "unpinned": null,1044 "visible": true,1045 "closed": false,1046 "archived": false,1047 "bookmarked": null,1048 "liked": null,1049 "tags_descriptions": {},1050 "like_count": 0,1051 "views": 21,1052 "category_id": 1,1053 "featured_link": null,1054 "has_accepted_answer": false,1055 "posters": [1056 {1057 "extras": "latest single",1058 "description": "Original Poster, Most Recent Poster",1059 "user": {1060 "id": 82600,1061 "username": "briwa",1062 "name": "北千wa",1063 "avatar_template": "/user_avatar/discuss.pytorch.org/briwa/{size}/75576_2.png",1064 "trust_level": 11065 }1066 }1067 ]1068 },1069 {1070 "fancy_title": "RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation torch version 2.0.0",1071 "id": 216978,1072 "title": "RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation torch version 2.0.0",1073 "slug": "runtimeerror-one-of-the-variables-needed-for-gradient-computation-has-been-modified-by-an-inplace-operation-torch-version-2-0-0",1074 "posts_count": 2,1075 "reply_count": 0,1076 "highest_post_number": 2,1077 "image_url": null,1078 "created_at": "2025-02-21T07:01:27.534Z",1079 "last_posted_at": "2025-02-21T17:57:30.658Z",1080 "bumped": true,1081 "bumped_at": "2025-02-21T17:57:30.658Z",1082 "archetype": "regular",1083 "unseen": false,1084 "pinned": false,1085 "unpinned": null,1086 "visible": true,1087 "closed": false,1088 "archived": false,1089 "bookmarked": null,1090 "liked": null,1091 "tags_descriptions": {},1092 "like_count": 0,1093 "views": 23,1094 "category_id": 1,1095 "featured_link": null,1096 "has_accepted_answer": false,1097 "posters": [1098 {1099 "extras": null,1100 "description": "Original Poster",1101 "user": {1102 "id": 82832,1103 "username": "hj_feng",1104 "name": "hj feng",1105 "avatar_template": "/user_avatar/discuss.pytorch.org/hj_feng/{size}/75792_2.png",1106 "trust_level": 01107 }1108 },1109 {1110 "extras": "latest",1111 "description": "Most Recent Poster",1112 "user": {1113 "id": 18088,1114 "username": "KFrank",1115 "name": "K. Frank",1116 "avatar_template": "/letter_avatar_proxy/v4/letter/k/ecb155/{size}.png",1117 "trust_level": 21118 }1119 }1120 ]1121 }1122 ],1123 "tags_descriptions": {},1124 "fancy_title": "Trouble with installing torchvision on Jetson Xavier NX",1125 "id": 200103,1126 "title": "Trouble with installing torchvision on Jetson Xavier NX",1127 "posts_count": 4,1128 "created_at": "2024-04-02T18:55:48.842Z",1129 "views": 723,1130 "reply_count": 1,1131 "like_count": 1,1132 "last_posted_at": "2024-04-05T14:00:17.320Z",1133 "visible": true,1134 "closed": false,1135 "archived": false,1136 "has_summary": false,1137 "archetype": "regular",1138 "slug": "trouble-with-installing-torchvision-on-jetson-xavier-nx",1139 "category_id": 1,1140 "word_count": 129,1141 "deleted_at": null,1142 "user_id": 74654,1143 "featured_link": null,1144 "pinned_globally": false,1145 "pinned_at": null,1146 "pinned_until": null,1147 "image_url": null,1148 "slow_mode_seconds": 0,1149 "draft": null,1150 "draft_key": "topic_200103",1151 "draft_sequence": null,1152 "unpinned": null,1153 "pinned": false,1154 "current_post_number": 1,1155 "highest_post_number": 4,1156 "deleted_by": null,1157 "actions_summary": [1158 {1159 "id": 4,1160 "count": 0,1161 "hidden": false,1162 "can_act": false1163 },1164 {1165 "id": 8,1166 "count": 0,1167 "hidden": false,1168 "can_act": false1169 },1170 {1171 "id": 10,1172 "count": 0,1173 "hidden": false,1174 "can_act": false1175 },1176 {1177 "id": 7,1178 "count": 0,1179 "hidden": false,1180 "can_act": false1181 }1182 ],1183 "chunk_size": 20,1184 "bookmarked": false,1185 "topic_timer": null,1186 "message_bus_last_id": 0,1187 "participant_count": 2,1188 "show_read_indicator": false,1189 "thumbnails": null,1190 "slow_mode_enabled_until": null,1191 "accepted_answer": {1192 "post_number": 2,1193 "username": "ptrblck",1194 "name": "",1195 "excerpt": "This older PyTorch release shipped with <a href=\"https://github.com/pytorch/vision/commit/912c44fa\">this torchvision tag</a> and your link shows how to build it from source."1196 },1197 "can_vote": false,1198 "vote_count": 0,1199 "user_voted": false,1200 "discourse_zendesk_plugin_zendesk_id": null,