Anurag1734/cuda-error-resolution-analysis
07
1[2 {3 "post_stream": {4 "posts": [5 {6 "id": 273657,7 "name": "Joel",8 "username": "kekpirat",9 "avatar_template": "/user_avatar/discuss.pytorch.org/kekpirat/{size}/26428_2.png",10 "created_at": "2021-03-29T16:41:12.052Z",11 "cooked": "<p>Hello,</p>\n<p>I was following the basic tutorial for loading an exported model in Torchscript (<a href=\"https://pytorch.org/tutorials/advanced/cpp_export.html\" class=\"inline-onebox\" rel=\"noopener nofollow ugc\">Loading a TorchScript Model in C++ — PyTorch Tutorials 1.8.1+cu102 documentation</a>)<br>\nbut after I run either<br>\n<code>cmake -DCMAKE_PREFIX_PATH=\"$(python -c 'import torch.utils; print(torch.utils.cmake_prefix_path)')\" ..</code><br>\nor</p>\n<pre><code class=\"lang-auto\">cmake -DCMAKE_PREFIX_PATH=/path/to/libtorch ..\n</code></pre>\n<p>and <code>make</code> and try running the executable, I get the error</p>\n<pre><code class=\"lang-auto\">./aanet: symbol lookup error: ./aanet: undefined symbol: _ZN5torch3jit4loadERKSsN3c108optionalINS3_6DeviceEEERSt13unordered_mapISsSsSt4hashISsESt8equal_toISsESaISt4pairIS1_SsEEE\n</code></pre>\n<p>(I’m on Ubuntu 20.04, x86_64, and tried with both pytorch 1.7 and 1.8)<br>\nI’ve tried some suggestions I found in previous threads like</p>\n<ol>\n<li>Creating a brand new conda environment and installing pytorch alone</li>\n<li>Adding to CMake <code>set(CMAKE_CXX_FLAGS \"-D_GLIBCXX_USE_CXX11_ABI=0\")</code>\n</li>\n<li>Using the pre-cxx11 ABI libtorch</li>\n</ol>\n<p>These are my files</p>\n<details>\n<summary> CMakeLists.txt </summary>\n<pre><code class=\"lang-auto\">cmake_minimum_required(VERSION 3.0)\n\nproject(aanet)\n\n# add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0)\n\nset(CMAKE_CXX_FLAGS \"-D_GLIBCXX_USE_CXX11_ABI=0\")\n\nfind_package(Torch REQUIRED)\n\nadd_executable(${PROJECT_NAME} main.cpp)\n\ntarget_link_libraries(${PROJECT_NAME} \"${TORCH_LIBRARIES}\")\n\nset_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 14)\n</code></pre>\n</details>\n<details>\n<summary> main.cpp </summary>\n<pre><code class=\"lang-auto\">#include <torch/script.h> // One-stop header.\n\n#include <iostream>\n#include <memory>\n\nint main(int argc, const char *argv[])\n{\n if (argc != 2)\n {\n std::cerr << \"usage: example-app <path-to-exported-script-module>\\n\";\n return -1;\n }\n\n torch::jit::script::Module module;\n try\n {\n // Deserialize the ScriptModule from a file using torch::jit::load().\n module = torch::jit::load(argv[1]);\n }\n catch (const c10::Error &e)\n {\n std::cerr << \"error loading the model\\n\";\n return -1;\n }\n\n std::cout << \"ok\\n\";\n}\n</code></pre>\n</details>\n<p>I’m completely lost on how to debug this problem (without resorting to a full reset) as I’ve no issues compiling and running this simple example on my other devices.</p>\n<p>Any help would be greatly appreciated. Thanks!</p>",12 "post_number": 1,13 "post_type": 1,14 "posts_count": 2,15 "updated_at": "2021-03-29T16:41:12.052Z",16 "reply_count": 0,17 "reply_to_post_number": null,18 "quote_count": 0,19 "incoming_link_count": 273,20 "reads": 16,21 "readers_count": 15,22 "score": 1363.2,23 "yours": false,24 "topic_id": 116370,25 "topic_slug": "torchscript-symbol-lookup-undefined-symbol-error",26 "display_username": "Joel",27 "primary_group_name": null,28 "flair_name": null,29 "flair_url": null,30 "flair_bg_color": null,31 "flair_color": null,32 "flair_group_id": null,33 "badges_granted": [],34 "version": 1,35 "can_edit": false,36 "can_delete": false,37 "can_recover": false,38 "can_see_hidden_post": false,39 "can_wiki": false,40 "link_counts": [41 {42 "url": "https://pytorch.org/tutorials/advanced/cpp_export.html",43 "internal": false,44 "reflection": false,45 "title": "Loading a TorchScript Model in C++ — PyTorch Tutorials 1.8.1+cu102 documentation",46 "clicks": 947 }48 ],49 "read": true,50 "user_title": null,51 "bookmarked": false,52 "actions_summary": [],53 "moderator": false,54 "admin": false,55 "staff": false,56 "user_id": 33968,57 "hidden": false,58 "trust_level": 1,59 "deleted_at": null,60 "user_deleted": false,61 "edit_reason": null,62 "can_view_edit_history": true,63 "wiki": false,64 "post_url": "/t/torchscript-symbol-lookup-undefined-symbol-error/116370/1",65 "can_accept_answer": false,66 "can_unaccept_answer": false,67 "accepted_answer": false,68 "topic_accepted_answer": null,69 "can_vote": false70 },71 {72 "id": 359109,73 "name": "Rajesh Kanna",74 "username": "Rajesh_Kanna",75 "avatar_template": "/user_avatar/discuss.pytorch.org/rajesh_kanna/{size}/51921_2.png",76 "created_at": "2022-07-30T08:23:43.705Z",77 "cooked": "<p>Hi Kekpirat. I tracked your username and found you here. Since I do not have enough rep in stackoverflow was not able to comment to your answer. I will thank you here. Thank you sensei! <3</p>",78 "post_number": 2,79 "post_type": 1,80 "posts_count": 2,81 "updated_at": "2022-07-30T08:23:43.705Z",82 "reply_count": 0,83 "reply_to_post_number": null,84 "quote_count": 0,85 "incoming_link_count": 5,86 "reads": 7,87 "readers_count": 6,88 "score": 26.4,89 "yours": false,90 "topic_id": 116370,91 "topic_slug": "torchscript-symbol-lookup-undefined-symbol-error",92 "display_username": "Rajesh Kanna",93 "primary_group_name": null,94 "flair_name": null,95 "flair_url": null,96 "flair_bg_color": null,97 "flair_color": null,98 "flair_group_id": null,99 "badges_granted": [],100 "version": 1,101 "can_edit": false,102 "can_delete": false,103 "can_recover": false,104 "can_see_hidden_post": false,105 "can_wiki": false,106 "read": true,107 "user_title": null,108 "bookmarked": false,109 "actions_summary": [],110 "moderator": false,111 "admin": false,112 "staff": false,113 "user_id": 58121,114 "hidden": false,115 "trust_level": 0,116 "deleted_at": null,117 "user_deleted": false,118 "edit_reason": null,119 "can_view_edit_history": true,120 "wiki": false,121 "post_url": "/t/torchscript-symbol-lookup-undefined-symbol-error/116370/2",122 "can_accept_answer": false,123 "can_unaccept_answer": false,124 "accepted_answer": false,125 "topic_accepted_answer": null126 }127 ],128 "stream": [129 273657,130 359109131 ]132 },133 "timeline_lookup": [134 [135 1,136 1671137 ],138 [139 2,140 1183141 ]142 ],143 "suggested_topics": [144 {145 "fancy_title": "Any convient function to convert an index tensor to a tuple of index tensors in the first dimension?",146 "id": 220237,147 "title": "Any convient function to convert an index tensor to a tuple of index tensors in the first dimension?",148 "slug": "any-convient-function-to-convert-an-index-tensor-to-a-tuple-of-index-tensors-in-the-first-dimension",149 "posts_count": 1,150 "reply_count": 0,151 "highest_post_number": 1,152 "image_url": null,153 "created_at": "2025-05-22T03:07:02.702Z",154 "last_posted_at": "2025-05-22T03:07:02.742Z",155 "bumped": true,156 "bumped_at": "2025-05-22T03:07:02.742Z",157 "archetype": "regular",158 "unseen": false,159 "pinned": false,160 "unpinned": null,161 "visible": true,162 "closed": false,163 "archived": false,164 "bookmarked": null,165 "liked": null,166 "tags_descriptions": {},167 "like_count": 0,168 "views": 48,169 "category_id": 11,170 "featured_link": null,171 "has_accepted_answer": false,172 "posters": [173 {174 "extras": "latest single",175 "description": "Original Poster, Most Recent Poster",176 "user": {177 "id": 50133,178 "username": "chjz1024",179 "name": "Chjz1024",180 "avatar_template": "/user_avatar/discuss.pytorch.org/chjz1024/{size}/43346_2.png",181 "trust_level": 1182 }183 }184 ]185 },186 {187 "fancy_title": "Can I use libtorch-1.12.0 ABI version in CentOs7?",188 "id": 213840,189 "title": "Can I use libtorch-1.12.0 ABI version in CentOs7?",190 "slug": "can-i-use-libtorch-1-12-0-abi-version-in-centos7",191 "posts_count": 1,192 "reply_count": 0,193 "highest_post_number": 1,194 "image_url": null,195 "created_at": "2024-12-05T08:41:19.779Z",196 "last_posted_at": "2024-12-05T08:41:19.837Z",197 "bumped": true,198 "bumped_at": "2024-12-05T08:41:19.837Z",199 "archetype": "regular",200 "unseen": false,201 "pinned": false,202 "unpinned": null,203 "visible": true,204 "closed": false,205 "archived": false,206 "bookmarked": null,207 "liked": null,208 "tags_descriptions": {},209 "like_count": 0,210 "views": 30,211 "category_id": 11,212 "featured_link": null,213 "has_accepted_answer": false,214 "posters": [215 {216 "extras": "latest single",217 "description": "Original Poster, Most Recent Poster",218 "user": {219 "id": 38591,220 "username": "complexhhs",221 "name": "HsHwang",222 "avatar_template": "/user_avatar/discuss.pytorch.org/complexhhs/{size}/40116_2.png",223 "trust_level": 1224 }225 }226 ]227 },228 {229 "fancy_title": "Tensor subtraction",230 "id": 216053,231 "title": "Tensor subtraction",232 "slug": "tensor-subtraction",233 "posts_count": 4,234 "reply_count": 2,235 "highest_post_number": 4,236 "image_url": null,237 "created_at": "2025-01-30T14:25:47.879Z",238 "last_posted_at": "2025-01-31T07:24:41.863Z",239 "bumped": true,240 "bumped_at": "2025-01-31T07:24:41.863Z",241 "archetype": "regular",242 "unseen": false,243 "pinned": false,244 "unpinned": null,245 "visible": true,246 "closed": false,247 "archived": false,248 "bookmarked": null,249 "liked": null,250 "tags_descriptions": {},251 "like_count": 1,252 "views": 183,253 "category_id": 11,254 "featured_link": null,255 "has_accepted_answer": false,256 "posters": [257 {258 "extras": "latest",259 "description": "Original Poster, Most Recent Poster",260 "user": {261 "id": 73501,262 "username": "Dirk10001",263 "name": null,264 "avatar_template": "/letter_avatar_proxy/v4/letter/d/c37758/{size}.png",265 "trust_level": 1266 }267 },268 {269 "extras": null,270 "description": "Frequent Poster",271 "user": {272 "id": 41458,273 "username": "J_Johnson",274 "name": "J Johnson",275 "avatar_template": "/user_avatar/discuss.pytorch.org/j_johnson/{size}/55494_2.png",276 "trust_level": 2277 }278 }279 ]280 },281 {282 "fancy_title": "What is the common base class for my module (holders) in libtorch?",283 "id": 218421,284 "title": "What is the common base class for my module (holders) in libtorch?",285 "slug": "what-is-the-common-base-class-for-my-module-holders-in-libtorch",286 "posts_count": 3,287 "reply_count": 0,288 "highest_post_number": 4,289 "image_url": null,290 "created_at": "2025-03-30T22:46:30.538Z",291 "last_posted_at": "2025-04-05T23:01:19.696Z",292 "bumped": true,293 "bumped_at": "2025-04-05T23:01:19.696Z",294 "archetype": "regular",295 "unseen": false,296 "pinned": false,297 "unpinned": null,298 "visible": true,299 "closed": false,300 "archived": false,301 "bookmarked": null,302 "liked": null,303 "tags_descriptions": {},304 "like_count": 0,305 "views": 66,306 "category_id": 11,307 "featured_link": null,308 "has_accepted_answer": false,309 "posters": [310 {311 "extras": "latest single",312 "description": "Original Poster, Most Recent Poster",313 "user": {314 "id": 63704,315 "username": "KiwiPower",316 "name": "",317 "avatar_template": "/letter_avatar_proxy/v4/letter/k/b9bd4f/{size}.png",318 "trust_level": 1319 }320 }321 ]322 },323 {324 "fancy_title": "Named arguments and dict output with AOTInductor",325 "id": 221335,326 "title": "Named arguments and dict output with AOTInductor",327 "slug": "named-arguments-and-dict-output-with-aotinductor",328 "posts_count": 1,329 "reply_count": 0,330 "highest_post_number": 1,331 "image_url": null,332 "created_at": "2025-07-07T13:59:19.634Z",333 "last_posted_at": "2025-07-07T13:59:19.674Z",334 "bumped": true,335 "bumped_at": "2025-07-07T13:59:19.674Z",336 "archetype": "regular",337 "unseen": false,338 "pinned": false,339 "unpinned": null,340 "visible": true,341 "closed": false,342 "archived": false,343 "bookmarked": null,344 "liked": null,345 "tags_descriptions": {},346 "like_count": 0,347 "views": 29,348 "category_id": 11,349 "featured_link": null,350 "has_accepted_answer": false,351 "posters": [352 {353 "extras": "latest single",354 "description": "Original Poster, Most Recent Poster",355 "user": {356 "id": 84391,357 "username": "rdgq",358 "name": "",359 "avatar_template": "/user_avatar/discuss.pytorch.org/rdgq/{size}/77106_2.png",360 "trust_level": 1361 }362 }363 ]364 }365 ],366 "tags_descriptions": {},367 "fancy_title": "Torchscript symbol lookup / undefined symbol error",368 "id": 116370,369 "title": "Torchscript symbol lookup / undefined symbol error",370 "posts_count": 2,371 "created_at": "2021-03-29T16:41:11.984Z",372 "views": 1178,373 "reply_count": 0,374 "like_count": 0,375 "last_posted_at": "2022-07-30T08:23:43.705Z",376 "visible": true,377 "closed": false,378 "archived": false,379 "has_summary": false,380 "archetype": "regular",381 "slug": "torchscript-symbol-lookup-undefined-symbol-error",382 "category_id": 11,383 "word_count": 309,384 "deleted_at": null,385 "user_id": 33968,386 "featured_link": null,387 "pinned_globally": false,388 "pinned_at": null,389 "pinned_until": null,390 "image_url": null,391 "slow_mode_seconds": 0,392 "draft": null,393 "draft_key": "topic_116370",394 "draft_sequence": null,395 "unpinned": null,396 "pinned": false,397 "current_post_number": 1,398 "highest_post_number": 2,399 "deleted_by": null,400 "actions_summary": [401 {402 "id": 4,403 "count": 0,404 "hidden": false,405 "can_act": false406 },407 {408 "id": 8,409 "count": 0,410 "hidden": false,411 "can_act": false412 },413 {414 "id": 10,415 "count": 0,416 "hidden": false,417 "can_act": false418 },419 {420 "id": 7,421 "count": 0,422 "hidden": false,423 "can_act": false424 }425 ],426 "chunk_size": 20,427 "bookmarked": false,428 "topic_timer": null,429 "message_bus_last_id": 0,430 "participant_count": 2,431 "show_read_indicator": false,432 "thumbnails": null,433 "slow_mode_enabled_until": null,434 "can_vote": false,435 "vote_count": 0,436 "user_voted": false,437 "discourse_zendesk_plugin_zendesk_id": null,438 "discourse_zendesk_plugin_zendesk_url": "https://your-url.zendesk.com/agent/tickets/",439 "details": {440 "can_edit": false,441 "notification_level": 1,442 "participants": [443 {444 "id": 33968,445 "username": "kekpirat",446 "name": "Joel",447 "avatar_template": "/user_avatar/discuss.pytorch.org/kekpirat/{size}/26428_2.png",448 "post_count": 1,449 "primary_group_name": null,450 "flair_name": null,451 "flair_url": null,452 "flair_color": null,453 "flair_bg_color": null,454 "flair_group_id": null,455 "trust_level": 1456 },457 {458 "id": 58121,459 "username": "Rajesh_Kanna",460 "name": "Rajesh Kanna",461 "avatar_template": "/user_avatar/discuss.pytorch.org/rajesh_kanna/{size}/51921_2.png",462 "post_count": 1,463 "primary_group_name": null,464 "flair_name": null,465 "flair_url": null,466 "flair_color": null,467 "flair_bg_color": null,468 "flair_group_id": null,469 "trust_level": 0470 }471 ],472 "created_by": {473 "id": 33968,474 "username": "kekpirat",475 "name": "Joel",476 "avatar_template": "/user_avatar/discuss.pytorch.org/kekpirat/{size}/26428_2.png"477 },478 "last_poster": {479 "id": 58121,480 "username": "Rajesh_Kanna",481 "name": "Rajesh Kanna",482 "avatar_template": "/user_avatar/discuss.pytorch.org/rajesh_kanna/{size}/51921_2.png"483 },484 "links": [485 {486 "url": "https://pytorch.org/tutorials/advanced/cpp_export.html",487 "title": "Loading a TorchScript Model in C++ — PyTorch Tutorials 1.8.1+cu102 documentation",488 "internal": false,489 "attachment": false,490 "reflection": false,491 "clicks": 9,492 "user_id": 33968,493 "domain": "pytorch.org",494 "root_domain": "pytorch.org"495 }496 ]497 },498 "bookmarks": []499 },500 {501 "post_stream": {502 "posts": [503 {504 "id": 359107,505 "name": "karman",506 "username": "xoofee",507 "avatar_template": "/letter_avatar_proxy/v4/letter/x/b19c9b/{size}.png",508 "created_at": "2022-07-30T08:15:53.128Z",509 "cooked": "<p>as in the title. I’m wondering how to build libtorch in windows, instead of downloading the prebuilt dll from <a href=\"https://pytorch.org/get-started/locally/\" class=\"inline-onebox\" rel=\"noopener nofollow ugc\">Start Locally | PyTorch</a></p>",510 "post_number": 1,511 "post_type": 1,512 "posts_count": 1,513 "updated_at": "2022-07-30T08:15:53.128Z",514 "reply_count": 0,515 "reply_to_post_number": null,516 "quote_count": 0,517 "incoming_link_count": 33,518 "reads": 11,519 "readers_count": 10,520 "score": 167.2,521 "yours": false,522 "topic_id": 157904,523 "topic_slug": "how-to-build-libtorch-from-source-where-is-the-source-i-want-to-build-libtorch-win-shared-with-deps-1-12-0-cu116-zip",524 "display_username": "karman",525 "primary_group_name": null,526 "flair_name": null,527 "flair_url": null,528 "flair_bg_color": null,529 "flair_color": null,530 "flair_group_id": null,531 "badges_granted": [],532 "version": 1,533 "can_edit": false,534 "can_delete": false,535 "can_recover": false,536 "can_see_hidden_post": false,537 "can_wiki": false,538 "link_counts": [539 {540 "url": "https://pytorch.org/get-started/locally/",541 "internal": false,542 "reflection": false,543 "title": "Start Locally | PyTorch",544 "clicks": 4545 }546 ],547 "read": true,548 "user_title": null,549 "bookmarked": false,550 "actions_summary": [],551 "moderator": false,552 "admin": false,553 "staff": false,554 "user_id": 58120,555 "hidden": false,556 "trust_level": 0,557 "deleted_at": null,558 "user_deleted": false,559 "edit_reason": null,560 "can_view_edit_history": true,561 "wiki": false,562 "post_url": "/t/how-to-build-libtorch-from-source-where-is-the-source-i-want-to-build-libtorch-win-shared-with-deps-1-12-0-cu116-zip/157904/1",563 "can_accept_answer": false,564 "can_unaccept_answer": false,565 "accepted_answer": false,566 "topic_accepted_answer": null,567 "can_vote": false568 }569 ],570 "stream": [571 359107572 ]573 },574 "timeline_lookup": [575 [576 1,577 1184578 ]579 ],580 "suggested_topics": [581 {582 "fancy_title": "Questions about built-in method torch.xxx(ops)",583 "id": 214778,584 "title": "Questions about built-in method torch.xxx(ops)",585 "slug": "questions-about-built-in-method-torch-xxx-ops",586 "posts_count": 3,587 "reply_count": 0,588 "highest_post_number": 3,589 "image_url": null,590 "created_at": "2024-12-30T07:12:52.431Z",591 "last_posted_at": "2024-12-31T02:40:44.965Z",592 "bumped": true,593 "bumped_at": "2024-12-31T02:40:44.965Z",594 "archetype": "regular",595 "unseen": false,596 "pinned": false,597 "unpinned": null,598 "visible": true,599 "closed": false,600 "archived": false,601 "bookmarked": null,602 "liked": null,603 "tags_descriptions": {},604 "like_count": 0,605 "views": 103,606 "category_id": 1,607 "featured_link": null,608 "has_accepted_answer": false,609 "posters": [610 {611 "extras": null,612 "description": "Original Poster",613 "user": {614 "id": 81781,615 "username": "Truthuleave",616 "name": "Truth",617 "avatar_template": "/user_avatar/discuss.pytorch.org/truthuleave/{size}/74794_2.png",618 "trust_level": 1619 }620 },621 {622 "extras": null,623 "description": "Frequent Poster",624 "user": {625 "id": 81709,626 "username": "QLYYLQ",627 "name": "qly",628 "avatar_template": "/user_avatar/discuss.pytorch.org/qlyylq/{size}/74718_2.png",629 "trust_level": 1630 }631 },632 {633 "extras": "latest",634 "description": "Most Recent Poster",635 "user": {636 "id": 41396,637 "username": "soulitzer",638 "name": "",639 "avatar_template": "/letter_avatar_proxy/v4/letter/s/839c29/{size}.png",640 "trust_level": 2641 }642 }643 ]644 },645 {646 "fancy_title": "torch.OutOfMemoryError: CUDA out of memory",647 "id": 217669,648 "title": "torch.OutOfMemoryError: CUDA out of memory",649 "slug": "torch-outofmemoryerror-cuda-out-of-memory",650 "posts_count": 4,651 "reply_count": 2,652 "highest_post_number": 4,653 "image_url": null,654 "created_at": "2025-03-10T14:46:11.148Z",655 "last_posted_at": "2025-03-12T12:34:35.945Z",656 "bumped": true,657 "bumped_at": "2025-03-12T12:34:35.945Z",658 "archetype": "regular",659 "unseen": false,660 "pinned": false,661 "unpinned": null,662 "visible": true,663 "closed": false,664 "archived": false,665 "bookmarked": null,666 "liked": null,667 "tags_descriptions": {},668 "like_count": 0,669 "views": 580,670 "category_id": 1,671 "featured_link": null,672 "has_accepted_answer": false,673 "posters": [674 {675 "extras": "latest",676 "description": "Original Poster, Most Recent Poster",677 "user": {678 "id": 82794,679 "username": "Mohan_Krishna",680 "name": "Mohan Krishna",681 "avatar_template": "/user_avatar/discuss.pytorch.org/mohan_krishna/{size}/75758_2.png",682 "trust_level": 1683 }684 },685 {686 "extras": null,687 "description": "Frequent Poster",688 "user": {689 "id": 3534,690 "username": "ptrblck",691 "name": "",692 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",693 "admin": true,694 "moderator": true,695 "trust_level": 2696 }697 }698 ]699 },700 {701 "fancy_title": "Installing PyTorch on a Grace Hopper GH200 node with GPU support",702 "id": 216836,703 "title": "Installing PyTorch on a Grace Hopper GH200 node with GPU support",704 "slug": "installing-pytorch-on-a-grace-hopper-gh200-node-with-gpu-support",705 "posts_count": 6,706 "reply_count": 2,707 "highest_post_number": 6,708 "image_url": null,709 "created_at": "2025-02-18T17:14:15.848Z",710 "last_posted_at": "2025-03-23T06:17:31.539Z",711 "bumped": true,712 "bumped_at": "2025-03-23T06:17:31.539Z",713 "archetype": "regular",714 "unseen": false,715 "pinned": false,716 "unpinned": null,717 "visible": true,718 "closed": false,719 "archived": false,720 "bookmarked": null,721 "liked": null,722 "tags_descriptions": {},723 "like_count": 1,724 "views": 1731,725 "category_id": 1,726 "featured_link": null,727 "has_accepted_answer": false,728 "posters": [729 {730 "extras": null,731 "description": "Original Poster",732 "user": {733 "id": 82764,734 "username": "verdurin",735 "name": null,736 "avatar_template": "/letter_avatar_proxy/v4/letter/v/b5ac83/{size}.png",737 "trust_level": 1738 }739 },740 {741 "extras": null,742 "description": "Frequent Poster",743 "user": {744 "id": 77232,745 "username": "UnbearableFate",746 "name": "Unbearable Fate",747 "avatar_template": "/user_avatar/discuss.pytorch.org/unbearablefate/{size}/71281_2.png",748 "trust_level": 1749 }750 },751 {752 "extras": null,753 "description": "Frequent Poster",754 "user": {755 "id": 3534,756 "username": "ptrblck",757 "name": "",758 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",759 "admin": true,760 "moderator": true,761 "trust_level": 2762 }763 },764 {765 "extras": "latest",766 "description": "Most Recent Poster",767 "user": {768 "id": 9970,769 "username": "youkaichao1",770 "name": "",771 "avatar_template": "/letter_avatar_proxy/v4/letter/y/f0a364/{size}.png",772 "trust_level": 2773 }774 }775 ]776 },777 {778 "fancy_title": "OSError: None is not a local folder and is not a valid model identifier listed on ‘https://huggingface.co/models’",779 "id": 216993,780 "title": "OSError: None is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'",781 "slug": "oserror-none-is-not-a-local-folder-and-is-not-a-valid-model-identifier-listed-on-https-huggingface-co-models",782 "posts_count": 3,783 "reply_count": 1,784 "highest_post_number": 3,785 "image_url": null,786 "created_at": "2025-02-21T15:04:50.224Z",787 "last_posted_at": "2025-02-25T17:32:06.700Z",788 "bumped": true,789 "bumped_at": "2025-02-25T17:32:06.700Z",790 "archetype": "regular",791 "unseen": false,792 "pinned": false,793 "unpinned": null,794 "visible": true,795 "closed": false,796 "archived": false,797 "bookmarked": null,798 "liked": null,799 "tags_descriptions": {},800 "like_count": 0,801 "views": 532,802 "category_id": 1,803 "featured_link": null,804 "has_accepted_answer": true,805 "posters": [806 {807 "extras": "latest",808 "description": "Original Poster, Most Recent Poster",809 "user": {810 "id": 82738,811 "username": "Dmitr",812 "name": "",813 "avatar_template": "/letter_avatar_proxy/v4/letter/d/13edae/{size}.png",814 "trust_level": 1815 }816 },817 {818 "extras": null,819 "description": "Frequent Poster, Accepted Answer",820 "user": {821 "id": 3534,822 "username": "ptrblck",823 "name": "",824 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",825 "admin": true,826 "moderator": true,827 "trust_level": 2828 }829 }830 ]831 },832 {833 "fancy_title": "How to properly implement these 1D convolutions and summations?",834 "id": 217802,835 "title": "How to properly implement these 1D convolutions and summations?",836 "slug": "how-to-properly-implement-these-1d-convolutions-and-summations",837 "posts_count": 1,838 "reply_count": 0,839 "highest_post_number": 1,840 "image_url": null,841 "created_at": "2025-03-13T12:53:43.221Z",842 "last_posted_at": "2025-03-13T12:53:43.257Z",843 "bumped": true,844 "bumped_at": "2025-03-13T12:53:43.257Z",845 "archetype": "regular",846 "unseen": false,847 "pinned": false,848 "unpinned": null,849 "visible": true,850 "closed": false,851 "archived": false,852 "bookmarked": null,853 "liked": null,854 "tags_descriptions": {},855 "like_count": 0,856 "views": 18,857 "category_id": 1,858 "featured_link": null,859 "has_accepted_answer": false,860 "posters": [861 {862 "extras": "latest single",863 "description": "Original Poster, Most Recent Poster",864 "user": {865 "id": 83244,866 "username": "Sim_On",867 "name": "Sim On",868 "avatar_template": "/user_avatar/discuss.pytorch.org/sim_on/{size}/74717_2.png",869 "trust_level": 1870 }871 }872 ]873 }874 ],875 "tags_descriptions": {},876 "fancy_title": "How to build libtorch from source? where is the source? I want to build libtorch-win-shared-with-deps-1.12.0-cu116.zip",877 "id": 157904,878 "title": "How to build libtorch from source? where is the source? I want to build libtorch-win-shared-with-deps-1.12.0-cu116.zip",879 "posts_count": 1,880 "created_at": "2022-07-30T08:15:53.060Z",881 "views": 529,882 "reply_count": 0,883 "like_count": 0,884 "last_posted_at": "2022-07-30T08:15:53.128Z",885 "visible": true,886 "closed": false,887 "archived": false,888 "has_summary": false,889 "archetype": "regular",890 "slug": "how-to-build-libtorch-from-source-where-is-the-source-i-want-to-build-libtorch-win-shared-with-deps-1-12-0-cu116-zip",891 "category_id": 1,892 "word_count": 26,893 "deleted_at": null,894 "user_id": 58120,895 "featured_link": null,896 "pinned_globally": false,897 "pinned_at": null,898 "pinned_until": null,899 "image_url": null,900 "slow_mode_seconds": 0,901 "draft": null,902 "draft_key": "topic_157904",903 "draft_sequence": null,904 "unpinned": null,905 "pinned": false,906 "current_post_number": 1,907 "highest_post_number": 1,908 "deleted_by": null,909 "actions_summary": [910 {911 "id": 4,912 "count": 0,913 "hidden": false,914 "can_act": false915 },916 {917 "id": 8,918 "count": 0,919 "hidden": false,920 "can_act": false921 },922 {923 "id": 10,924 "count": 0,925 "hidden": false,926 "can_act": false927 },928 {929 "id": 7,930 "count": 0,931 "hidden": false,932 "can_act": false933 }934 ],935 "chunk_size": 20,936 "bookmarked": false,937 "topic_timer": null,938 "message_bus_last_id": 0,939 "participant_count": 1,940 "show_read_indicator": false,941 "thumbnails": null,942 "slow_mode_enabled_until": null,943 "can_vote": false,944 "vote_count": 0,945 "user_voted": false,946 "discourse_zendesk_plugin_zendesk_id": null,947 "discourse_zendesk_plugin_zendesk_url": "https://your-url.zendesk.com/agent/tickets/",948 "details": {949 "can_edit": false,950 "notification_level": 1,951 "participants": [952 {953 "id": 58120,954 "username": "xoofee",955 "name": "karman",956 "avatar_template": "/letter_avatar_proxy/v4/letter/x/b19c9b/{size}.png",957 "post_count": 1,958 "primary_group_name": null,959 "flair_name": null,960 "flair_url": null,961 "flair_color": null,962 "flair_bg_color": null,963 "flair_group_id": null,964 "trust_level": 0965 }966 ],967 "created_by": {968 "id": 58120,969 "username": "xoofee",970 "name": "karman",971 "avatar_template": "/letter_avatar_proxy/v4/letter/x/b19c9b/{size}.png"972 },973 "last_poster": {974 "id": 58120,975 "username": "xoofee",976 "name": "karman",977 "avatar_template": "/letter_avatar_proxy/v4/letter/x/b19c9b/{size}.png"978 },979 "links": [980 {981 "url": "https://pytorch.org/get-started/locally/",982 "title": "Start Locally | PyTorch",983 "internal": false,984 "attachment": false,985 "reflection": false,986 "clicks": 4,987 "user_id": 58120,988 "domain": "pytorch.org",989 "root_domain": "pytorch.org"990 }991 ]992 },993 "bookmarks": []994 },995 {996 "post_stream": {997 "posts": [998 {999 "id": 359102,1000 "name": "Prajakta Rathod",1001 "username": "Prajakta_Rathod",1002 "avatar_template": "/user_avatar/discuss.pytorch.org/prajakta_rathod/{size}/48964_2.png",1003 "created_at": "2022-07-30T07:26:47.917Z",1004 "cooked": "<p>train_dataset = torchvision.datasets.ImageFolder(<br>\nroot=TRAIN_ROOT,<br>\ntransform=transforms.Compose([<br>\ntransforms.Resize((224,224)),<br>\ntransforms.ToTensor(),<br>\ntransforms.Normalize(mean=[3 mean values of RGB channels],<br>\nstd=[3 stdev values of RGB channels])<br>\n])<br>\n)<br>\nMy image size is 398, 398 (Height, Width). I am resizing it to 224, 224 (Height, Width). I need to pass mean and stddev values of entire image dataset to transforms.Normalize() function. I am using image width and height in number of pixels while calculating mean and stdev of entire dataset. shall I use original size i.e. 398, 398 pixels or 224, 224 pixels in mean and stdev calculation of entire dataset.</p>",1005 "post_number": 1,1006 "post_type": 1,1007 "posts_count": 1,1008 "updated_at": "2022-07-30T07:29:21.476Z",1009 "reply_count": 0,1010 "reply_to_post_number": null,1011 "quote_count": 0,1012 "incoming_link_count": 19,1013 "reads": 4,1014 "readers_count": 3,1015 "score": 95.8,1016 "yours": false,1017 "topic_id": 157901,1018 "topic_slug": "calculating-mean-and-stdev-of-entire-dataset-for-transforms-normalize-function",1019 "display_username": "Prajakta Rathod",1020 "primary_group_name": null,1021 "flair_name": null,1022 "flair_url": null,1023 "flair_bg_color": null,1024 "flair_color": null,1025 "flair_group_id": null,1026 "badges_granted": [],1027 "version": 1,1028 "can_edit": false,1029 "can_delete": false,1030 "can_recover": false,1031 "can_see_hidden_post": false,1032 "can_wiki": false,1033 "read": true,1034 "user_title": null,1035 "bookmarked": false,1036 "actions_summary": [],1037 "moderator": false,1038 "admin": false,1039 "staff": false,1040 "user_id": 58119,1041 "hidden": false,1042 "trust_level": 1,1043 "deleted_at": null,1044 "user_deleted": false,1045 "edit_reason": null,1046 "can_view_edit_history": true,1047 "wiki": false,1048 "post_url": "/t/calculating-mean-and-stdev-of-entire-dataset-for-transforms-normalize-function/157901/1",1049 "can_accept_answer": false,1050 "can_unaccept_answer": false,1051 "accepted_answer": false,1052 "topic_accepted_answer": null,1053 "can_vote": false1054 }1055 ],1056 "stream": [1057 3591021058 ]1059 },1060 "timeline_lookup": [1061 [1062 1,1063 11841064 ]1065 ],1066 "suggested_topics": [1067 {1068 "fancy_title": "Forward and Backward hook",1069 "id": 213875,1070 "title": "Forward and Backward hook",1071 "slug": "forward-and-backward-hook",1072 "posts_count": 2,1073 "reply_count": 0,1074 "highest_post_number": 2,1075 "image_url": null,1076 "created_at": "2024-12-05T20:27:43.873Z",1077 "last_posted_at": "2024-12-06T22:11:47.885Z",1078 "bumped": true,1079 "bumped_at": "2024-12-06T22:11:47.885Z",1080 "archetype": "regular",1081 "unseen": false,1082 "pinned": false,1083 "unpinned": null,1084 "visible": true,1085 "closed": false,1086 "archived": false,1087 "bookmarked": null,1088 "liked": null,1089 "tags_descriptions": {},1090 "like_count": 2,1091 "views": 85,1092 "category_id": 1,1093 "featured_link": null,1094 "has_accepted_answer": false,1095 "posters": [1096 {1097 "extras": null,1098 "description": "Original Poster",1099 "user": {1100 "id": 67856,1101 "username": "ShnekaM",1102 "name": "Shneka Muthu Kumara Swamy",1103 "avatar_template": "/letter_avatar_proxy/v4/letter/s/c57346/{size}.png",1104 "trust_level": 11105 }1106 },1107 {1108 "extras": "latest",1109 "description": "Most Recent Poster",1110 "user": {1111 "id": 3534,1112 "username": "ptrblck",1113 "name": "",1114 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",1115 "admin": true,1116 "moderator": true,1117 "trust_level": 21118 }1119 }1120 ]1121 },1122 {1123 "fancy_title": "How to properly implement these 1D convolutions and summations?",1124 "id": 217802,1125 "title": "How to properly implement these 1D convolutions and summations?",1126 "slug": "how-to-properly-implement-these-1d-convolutions-and-summations",1127 "posts_count": 1,1128 "reply_count": 0,1129 "highest_post_number": 1,1130 "image_url": null,1131 "created_at": "2025-03-13T12:53:43.221Z",1132 "last_posted_at": "2025-03-13T12:53:43.257Z",1133 "bumped": true,1134 "bumped_at": "2025-03-13T12:53:43.257Z",1135 "archetype": "regular",1136 "unseen": false,1137 "pinned": false,1138 "unpinned": null,1139 "visible": true,1140 "closed": false,1141 "archived": false,1142 "bookmarked": null,1143 "liked": null,1144 "tags_descriptions": {},1145 "like_count": 0,1146 "views": 18,1147 "category_id": 1,1148 "featured_link": null,1149 "has_accepted_answer": false,1150 "posters": [1151 {1152 "extras": "latest single",1153 "description": "Original Poster, Most Recent Poster",1154 "user": {1155 "id": 83244,1156 "username": "Sim_On",1157 "name": "Sim On",1158 "avatar_template": "/user_avatar/discuss.pytorch.org/sim_on/{size}/74717_2.png",1159 "trust_level": 11160 }1161 }1162 ]1163 },1164 {1165 "fancy_title": "GNN for electrical distribution systems, HELP",1166 "id": 215046,1167 "title": "GNN for electrical distribution systems, HELP",1168 "slug": "gnn-for-electrical-distribution-systems-help",1169 "posts_count": 1,1170 "reply_count": 0,1171 "highest_post_number": 1,1172 "image_url": null,1173 "created_at": "2025-01-06T21:52:12.794Z",1174 "last_posted_at": "2025-01-06T21:52:12.832Z",1175 "bumped": true,1176 "bumped_at": "2025-01-06T21:52:12.832Z",1177 "archetype": "regular",1178 "unseen": false,1179 "pinned": false,1180 "unpinned": null,1181 "visible": true,1182 "closed": false,1183 "archived": false,1184 "bookmarked": null,1185 "liked": null,1186 "tags_descriptions": {},1187 "like_count": 0,1188 "views": 30,1189 "category_id": 1,1190 "featured_link": null,1191 "has_accepted_answer": false,1192 "posters": [1193 {1194 "extras": "latest single",1195 "description": "Original Poster, Most Recent Poster",1196 "user": {1197 "id": 81908,1198 "username": "Diego_Paul_Guachichu",1199 "name": "Diego Paul Guachichullca Bermeo",1200 "avatar_template": "/user_avatar/discuss.pytorch.org/diego_paul_guachichu/{size}/74933_2.png",