Anurag1734/cuda-error-resolution-analysis
07
1[2 {3 "post_stream": {4 "posts": [5 {6 "id": 396558,7 "name": "gaya",8 "username": "g1777",9 "avatar_template": "/letter_avatar_proxy/v4/letter/g/6f9a4e/{size}.png",10 "created_at": "2023-04-08T21:13:16.314Z",11 "cooked": "<p>i’m using</p>\n<pre><code class=\"lang-auto\">spectrogram = log(MelSpectrogram(n_mels=80, n_fft=1024, sample_rate=sr)(waveform)+ 1e-10).squeeze()\n</code></pre>\n<p>as input for the model.<br>\nthe error occurs here when calling decoder.forward</p>\n<pre><code class=\"lang-auto\">decoder = RNNTBeamSearch(\n model = model,\n blank=10,\n step_max_tokens=24,\n\n\n)\n\n\nwith torch.no_grad():\n\n all_transcriptions = []\n all_targets = []\n for i, batch in enumerate(test_dataloader):\n\n inputs, targets, input_lengths, target_lengths = batch\n transcriptions,transcriptions_lengths = model.transcribe(inputs,input_lengths)\n print(transcriptions_lengths)\n \n results = []\n for i in range(0,len(transcriptions)):\n result = decoder.forward(transcriptions,transcriptions_lengths,128)\n results.append(result)\n</code></pre>\n<p>i also tried with conformer_rnnt_model and the only case where it works is when i set both input_dim=80 and<br>\nencoding_dim=80.<br>\nthanks in advance for any help.</p>",12 "post_number": 1,13 "post_type": 1,14 "posts_count": 1,15 "updated_at": "2023-04-08T21:14:42.119Z",16 "reply_count": 0,17 "reply_to_post_number": null,18 "quote_count": 0,19 "incoming_link_count": 26,20 "reads": 3,21 "readers_count": 2,22 "score": 130.6,23 "yours": false,24 "topic_id": 177049,25 "topic_slug": "runtimeerror-mat1-and-mat2-shapes-cannot-be-multiplied-10x4096-and-320x256-in-conformer-rnnt-base-transcribe-method",26 "display_username": "gaya",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": 65014,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-mat1-and-mat2-shapes-cannot-be-multiplied-10x4096-and-320x256-in-conformer-rnnt-base-transcribe-method/177049/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 "stream": [64 39655865 ]66 },67 "timeline_lookup": [68 [69 1,70 93171 ]72 ],73 "suggested_topics": [74 {75 "fancy_title": "Torchaudio.functional.speed very slow when called repeatedly using randomly generated factors",76 "id": 212781,77 "title": "Torchaudio.functional.speed very slow when called repeatedly using randomly generated factors",78 "slug": "torchaudio-functional-speed-very-slow-when-called-repeatedly-using-randomly-generated-factors",79 "posts_count": 1,80 "reply_count": 0,81 "highest_post_number": 1,82 "image_url": null,83 "created_at": "2024-11-11T01:35:41.065Z",84 "last_posted_at": "2024-11-11T01:35:41.142Z",85 "bumped": true,86 "bumped_at": "2024-11-11T01:35:41.142Z",87 "archetype": "regular",88 "unseen": false,89 "pinned": false,90 "unpinned": null,91 "visible": true,92 "closed": false,93 "archived": false,94 "bookmarked": null,95 "liked": null,96 "tags_descriptions": {},97 "like_count": 0,98 "views": 62,99 "category_id": 9,100 "featured_link": null,101 "has_accepted_answer": false,102 "posters": [103 {104 "extras": "latest single",105 "description": "Original Poster, Most Recent Poster",106 "user": {107 "id": 77838,108 "username": "MikeK",109 "name": "MikeK",110 "avatar_template": "/letter_avatar_proxy/v4/letter/m/258eb7/{size}.png",111 "trust_level": 1112 }113 }114 ]115 },116 {117 "fancy_title": "Understanding channel dim in audio processing",118 "id": 212777,119 "title": "Understanding channel dim in audio processing",120 "slug": "understanding-channel-dim-in-audio-processing",121 "posts_count": 2,122 "reply_count": 0,123 "highest_post_number": 2,124 "image_url": null,125 "created_at": "2024-11-10T22:53:34.319Z",126 "last_posted_at": "2024-11-26T07:16:03.415Z",127 "bumped": true,128 "bumped_at": "2024-11-26T07:16:03.415Z",129 "archetype": "regular",130 "unseen": false,131 "pinned": false,132 "unpinned": null,133 "visible": true,134 "closed": false,135 "archived": false,136 "bookmarked": null,137 "liked": null,138 "tags_descriptions": {},139 "like_count": 1,140 "views": 73,141 "category_id": 9,142 "featured_link": null,143 "has_accepted_answer": false,144 "posters": [145 {146 "extras": null,147 "description": "Original Poster",148 "user": {149 "id": 80807,150 "username": "axion66",151 "name": "axion66",152 "avatar_template": "/letter_avatar_proxy/v4/letter/a/ec9cab/{size}.png",153 "trust_level": 0154 }155 },156 {157 "extras": "latest",158 "description": "Most Recent Poster",159 "user": {160 "id": 30366,161 "username": "shivammehta007",162 "name": "Shivam Mehta",163 "avatar_template": "/user_avatar/discuss.pytorch.org/shivammehta007/{size}/31230_2.png",164 "trust_level": 2165 }166 }167 ]168 },169 {170 "fancy_title": "Please Help: `torchaudio` does not find the `sox` backend on macOS",171 "id": 214313,172 "title": "Please Help: `torchaudio` does not find the `sox` backend on macOS",173 "slug": "please-help-torchaudio-does-not-find-the-sox-backend-on-macos",174 "posts_count": 4,175 "reply_count": 2,176 "highest_post_number": 4,177 "image_url": null,178 "created_at": "2024-12-17T13:37:05.011Z",179 "last_posted_at": "2025-01-05T20:12:12.515Z",180 "bumped": true,181 "bumped_at": "2025-01-05T20:12:12.515Z",182 "archetype": "regular",183 "unseen": false,184 "pinned": false,185 "unpinned": null,186 "visible": true,187 "closed": false,188 "archived": false,189 "bookmarked": null,190 "liked": null,191 "tags_descriptions": {},192 "like_count": 0,193 "views": 373,194 "category_id": 9,195 "featured_link": null,196 "has_accepted_answer": true,197 "posters": [198 {199 "extras": "latest",200 "description": "Original Poster, Most Recent Poster, Accepted Answer",201 "user": {202 "id": 81198,203 "username": "ThomasHezard",204 "name": "Thomas Hézard",205 "avatar_template": "/user_avatar/discuss.pytorch.org/thomashezard/{size}/74261_2.png",206 "trust_level": 1207 }208 },209 {210 "extras": null,211 "description": "Frequent Poster",212 "user": {213 "id": 3534,214 "username": "ptrblck",215 "name": "",216 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",217 "admin": true,218 "moderator": true,219 "trust_level": 2220 }221 }222 ]223 },224 {225 "fancy_title": "Issues with CTCLoss",226 "id": 216390,227 "title": "Issues with CTCLoss",228 "slug": "issues-with-ctcloss",229 "posts_count": 1,230 "reply_count": 0,231 "highest_post_number": 1,232 "image_url": null,233 "created_at": "2025-02-08T01:34:34.042Z",234 "last_posted_at": "2025-02-08T01:34:34.086Z",235 "bumped": true,236 "bumped_at": "2025-02-08T01:34:34.086Z",237 "archetype": "regular",238 "unseen": false,239 "pinned": false,240 "unpinned": null,241 "visible": true,242 "closed": false,243 "archived": false,244 "bookmarked": null,245 "liked": null,246 "tags_descriptions": {},247 "like_count": 0,248 "views": 63,249 "category_id": 9,250 "featured_link": null,251 "has_accepted_answer": false,252 "posters": [253 {254 "extras": "latest single",255 "description": "Original Poster, Most Recent Poster",256 "user": {257 "id": 82555,258 "username": "Butzti",259 "name": "Butzti",260 "avatar_template": "/user_avatar/discuss.pytorch.org/butzti/{size}/75538_2.png",261 "trust_level": 0262 }263 }264 ]265 },266 {267 "fancy_title": "How to use filtfilt() function?",268 "id": 216443,269 "title": "How to use filtfilt() function?",270 "slug": "how-to-use-filtfilt-function",271 "posts_count": 2,272 "reply_count": 0,273 "highest_post_number": 2,274 "image_url": null,275 "created_at": "2025-02-10T03:01:31.509Z",276 "last_posted_at": "2025-02-10T08:55:11.729Z",277 "bumped": true,278 "bumped_at": "2025-02-10T08:55:23.471Z",279 "archetype": "regular",280 "unseen": false,281 "pinned": false,282 "unpinned": null,283 "visible": true,284 "closed": false,285 "archived": false,286 "bookmarked": null,287 "liked": null,288 "tags_descriptions": {},289 "like_count": 0,290 "views": 115,291 "category_id": 9,292 "featured_link": null,293 "has_accepted_answer": false,294 "posters": [295 {296 "extras": "latest single",297 "description": "Original Poster, Most Recent Poster",298 "user": {299 "id": 73868,300 "username": "elinliu0823",301 "name": "轶霖 柳",302 "avatar_template": "/user_avatar/discuss.pytorch.org/elinliu0823/{size}/68215_2.png",303 "trust_level": 1304 }305 }306 ]307 }308 ],309 "tags_descriptions": {},310 "fancy_title": "RuntimeError: mat1 and mat2 shapes cannot be multiplied (10x4096 and 320x256) in conformer_rnnt_base transcribe method",311 "id": 177049,312 "title": "RuntimeError: mat1 and mat2 shapes cannot be multiplied (10x4096 and 320x256) in conformer_rnnt_base transcribe method",313 "posts_count": 1,314 "created_at": "2023-04-08T21:13:16.230Z",315 "views": 423,316 "reply_count": 0,317 "like_count": 0,318 "last_posted_at": "2023-04-08T21:13:16.314Z",319 "visible": true,320 "closed": false,321 "archived": false,322 "has_summary": false,323 "archetype": "regular",324 "slug": "runtimeerror-mat1-and-mat2-shapes-cannot-be-multiplied-10x4096-and-320x256-in-conformer-rnnt-base-transcribe-method",325 "category_id": 9,326 "word_count": 106,327 "deleted_at": null,328 "user_id": 65014,329 "featured_link": null,330 "pinned_globally": false,331 "pinned_at": null,332 "pinned_until": null,333 "image_url": null,334 "slow_mode_seconds": 0,335 "draft": null,336 "draft_key": "topic_177049",337 "draft_sequence": null,338 "unpinned": null,339 "pinned": false,340 "current_post_number": 1,341 "highest_post_number": 1,342 "deleted_by": null,343 "actions_summary": [344 {345 "id": 4,346 "count": 0,347 "hidden": false,348 "can_act": false349 },350 {351 "id": 8,352 "count": 0,353 "hidden": false,354 "can_act": false355 },356 {357 "id": 10,358 "count": 0,359 "hidden": false,360 "can_act": false361 },362 {363 "id": 7,364 "count": 0,365 "hidden": false,366 "can_act": false367 }368 ],369 "chunk_size": 20,370 "bookmarked": false,371 "topic_timer": null,372 "message_bus_last_id": 0,373 "participant_count": 1,374 "show_read_indicator": false,375 "thumbnails": null,376 "slow_mode_enabled_until": null,377 "can_vote": false,378 "vote_count": 0,379 "user_voted": false,380 "discourse_zendesk_plugin_zendesk_id": null,381 "discourse_zendesk_plugin_zendesk_url": "https://your-url.zendesk.com/agent/tickets/",382 "details": {383 "can_edit": false,384 "notification_level": 1,385 "participants": [386 {387 "id": 65014,388 "username": "g1777",389 "name": "gaya",390 "avatar_template": "/letter_avatar_proxy/v4/letter/g/6f9a4e/{size}.png",391 "post_count": 1,392 "primary_group_name": null,393 "flair_name": null,394 "flair_url": null,395 "flair_color": null,396 "flair_bg_color": null,397 "flair_group_id": null,398 "trust_level": 1399 }400 ],401 "created_by": {402 "id": 65014,403 "username": "g1777",404 "name": "gaya",405 "avatar_template": "/letter_avatar_proxy/v4/letter/g/6f9a4e/{size}.png"406 },407 "last_poster": {408 "id": 65014,409 "username": "g1777",410 "name": "gaya",411 "avatar_template": "/letter_avatar_proxy/v4/letter/g/6f9a4e/{size}.png"412 }413 },414 "bookmarks": []415 },416 {417 "post_stream": {418 "posts": [419 {420 "id": 372011,421 "name": "Jia Pei",422 "username": "jiapei100",423 "avatar_template": "/user_avatar/discuss.pytorch.org/jiapei100/{size}/79_2.png",424 "created_at": "2022-10-26T19:04:23.784Z",425 "cooked": "<p>Successfully built <strong>torchaudio</strong> but failed to load:</p>\n<ol>\n<li>\n</li>\n</ol>\n<pre data-code-wrap=\"console\"><code class=\"lang-nohighlight\">➜ ~ pip show torchaudio\nName: torchaudio\nVersion: 0.14.0a0+17a2b93\nSummary: An audio package for PyTorch\nHome-page: https://github.com/pytorch/audio\nAuthor: Soumith Chintala, David Pollack, Sean Naren, Peter Goldsborough\nAuthor-email: soumith@pytorch.org\nLicense: \nLocation: ~/.local/lib/python3.10/site-packages\nRequires: torch\nRequired-by:\n</code></pre>\n<ol start=\"2\">\n<li>\n</li>\n</ol>\n<pre data-code-wrap=\"console\"><code class=\"lang-nohighlight\">➜ ~ python\nPython 3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0] on linux\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n>>> import torch\n>>> import torchaudio as ta\nTraceback (most recent call last):\n File \"<stdin>\", line 1, in <module>\n File \"~/.local/lib/python3.10/site-packages/torchaudio/__init__.py\", line 1, in <module>\n from torchaudio import ( # noqa: F401\n File \"~/.local/lib/python3.10/site-packages/torchaudio/_extension.py\", line 135, in <module>\n _init_extension()\n File \"~/.local/lib/python3.10/site-packages/torchaudio/_extension.py\", line 105, in _init_extension\n _load_lib(\"libtorchaudio\")\n File \"~/.local/lib/python3.10/site-packages/torchaudio/_extension.py\", line 52, in _load_lib\n torch.ops.load_library(path)\n File \"~/.local/lib/python3.10/site-packages/torch/_ops.py\", line 573, in load_library\n ctypes.CDLL(path)\n File \"/usr/lib/python3.10/ctypes/__init__.py\", line 374, in __init__\n self._handle = _dlopen(self._name, mode)\nOSError: ~/.local/lib/python3.10/site-packages/torchaudio/lib/libtorchaudio.so: undefined symbol: gsm_create\n</code></pre>\n<ol start=\"3\">\n<li>Similar thing happened to <strong>torchtext</strong>:</li>\n</ol>\n<pre data-code-wrap=\"console\"><code class=\"lang-nohighlight\">➜ ~ pip show torchtext \nName: torchtext\nVersion: 0.14.0a0+3f9c349\nSummary: Text utilities and datasets for PyTorch\nHome-page: https://github.com/pytorch/text\nAuthor: PyTorch core devs and James Bradbury\nAuthor-email: jekbradbury@gmail.com\nLicense: BSD\nLocation: ~/.local/lib/python3.10/site-packages\nRequires: numpy, requests, torch, tqdm\nRequired-by: \n</code></pre>\n<pre data-code-wrap=\"console\"><code class=\"lang-nohighlight\">>>> import torchtext as tt\nTraceback (most recent call last):\n File \"<stdin>\", line 1, in <module>\n File \"~/.local/lib/python3.10/site-packages/torchtext/__init__.py\", line 6, in <module>\n from torchtext import _extension # noqa: F401\n File \"~/.local/lib/python3.10/site-packages/torchtext/_extension.py\", line 64, in <module>\n _init_extension()\n File \"~/.local/lib/python3.10/site-packages/torchtext/_extension.py\", line 58, in _init_extension\n _load_lib(\"libtorchtext\")\n File \"~/.local/lib/python3.10/site-packages/torchtext/_extension.py\", line 50, in _load_lib\n torch.ops.load_library(path)\n File \"~/.local/lib/python3.10/site-packages/torch/_ops.py\", line 573, in load_library\n ctypes.CDLL(path)\n File \"/usr/lib/python3.10/ctypes/__init__.py\", line 374, in __init__\n self._handle = _dlopen(self._name, mode)\nOSError: ~/.local/lib/python3.10/site-packages/torchtext/lib/libtorchtext.so: undefined symbol: _ZTVN5torch8autograd12AutogradMetaE\n</code></pre>\n<p>Any suggestions please?</p>\n<p>Thank you</p>",426 "post_number": 1,427 "post_type": 1,428 "posts_count": 3,429 "updated_at": "2022-10-26T19:04:23.784Z",430 "reply_count": 0,431 "reply_to_post_number": null,432 "quote_count": 0,433 "incoming_link_count": 7569,434 "reads": 28,435 "readers_count": 27,436 "score": 37720.6,437 "yours": false,438 "topic_id": 164479,439 "topic_slug": "oserror-local-lib-python3-10-site-packages-torchaudio-lib-libtorchaudio-so-undefined-symbol-gsm-create",440 "display_username": "Jia Pei",441 "primary_group_name": null,442 "flair_name": null,443 "flair_url": null,444 "flair_bg_color": null,445 "flair_color": null,446 "flair_group_id": null,447 "badges_granted": [],448 "version": 1,449 "can_edit": false,450 "can_delete": false,451 "can_recover": false,452 "can_see_hidden_post": false,453 "can_wiki": false,454 "read": true,455 "user_title": null,456 "bookmarked": false,457 "actions_summary": [],458 "moderator": false,459 "admin": false,460 "staff": false,461 "user_id": 131,462 "hidden": false,463 "trust_level": 2,464 "deleted_at": null,465 "user_deleted": false,466 "edit_reason": null,467 "can_view_edit_history": true,468 "wiki": false,469 "post_url": "/t/oserror-local-lib-python3-10-site-packages-torchaudio-lib-libtorchaudio-so-undefined-symbol-gsm-create/164479/1",470 "can_accept_answer": false,471 "can_unaccept_answer": false,472 "accepted_answer": false,473 "topic_accepted_answer": null,474 "can_vote": false475 },476 {477 "id": 394542,478 "name": "mostafa alaviyan",479 "username": "mostafa_alaviyan",480 "avatar_template": "/user_avatar/discuss.pytorch.org/mostafa_alaviyan/{size}/58884_2.png",481 "created_at": "2023-03-28T05:12:54.261Z",482 "cooked": "<p><a class=\"mention\" href=\"/u/jiapei100\">@jiapei100</a><br>\nhello<br>\nI encountered with the same error, can U solve it?</p>",483 "post_number": 2,484 "post_type": 1,485 "posts_count": 3,486 "updated_at": "2023-03-28T05:12:54.261Z",487 "reply_count": 0,488 "reply_to_post_number": null,489 "quote_count": 0,490 "incoming_link_count": 456,491 "reads": 23,492 "readers_count": 22,493 "score": 2284.6,494 "yours": false,495 "topic_id": 164479,496 "topic_slug": "oserror-local-lib-python3-10-site-packages-torchaudio-lib-libtorchaudio-so-undefined-symbol-gsm-create",497 "display_username": "mostafa alaviyan",498 "primary_group_name": null,499 "flair_name": null,500 "flair_url": null,501 "flair_bg_color": null,502 "flair_color": null,503 "flair_group_id": null,504 "badges_granted": [],505 "version": 1,506 "can_edit": false,507 "can_delete": false,508 "can_recover": false,509 "can_see_hidden_post": false,510 "can_wiki": false,511 "read": true,512 "user_title": null,513 "bookmarked": false,514 "actions_summary": [],515 "moderator": false,516 "admin": false,517 "staff": false,518 "user_id": 64697,519 "hidden": false,520 "trust_level": 0,521 "deleted_at": null,522 "user_deleted": false,523 "edit_reason": null,524 "can_view_edit_history": true,525 "wiki": false,526 "post_url": "/t/oserror-local-lib-python3-10-site-packages-torchaudio-lib-libtorchaudio-so-undefined-symbol-gsm-create/164479/2",527 "can_accept_answer": false,528 "can_unaccept_answer": false,529 "accepted_answer": false,530 "topic_accepted_answer": null531 },532 {533 "id": 396555,534 "name": "",535 "username": "nateanl",536 "avatar_template": "/user_avatar/discuss.pytorch.org/nateanl/{size}/41402_2.png",537 "created_at": "2023-04-08T20:57:33.428Z",538 "cooked": "<p>This issue may help <a href=\"https://github.com/pytorch/audio/issues/2614\" class=\"inline-onebox\" rel=\"noopener nofollow ugc\">Encountered undefined symbol: gsm_create when import torchaudio · Issue #2614 · pytorch/audio · GitHub</a></p>",539 "post_number": 3,540 "post_type": 1,541 "posts_count": 3,542 "updated_at": "2023-04-08T20:57:33.428Z",543 "reply_count": 0,544 "reply_to_post_number": null,545 "quote_count": 0,546 "incoming_link_count": 196,547 "reads": 21,548 "readers_count": 20,549 "score": 984.2,550 "yours": false,551 "topic_id": 164479,552 "topic_slug": "oserror-local-lib-python3-10-site-packages-torchaudio-lib-libtorchaudio-so-undefined-symbol-gsm-create",553 "display_username": "",554 "primary_group_name": null,555 "flair_name": null,556 "flair_url": null,557 "flair_bg_color": null,558 "flair_color": null,559 "flair_group_id": null,560 "badges_granted": [],561 "version": 1,562 "can_edit": false,563 "can_delete": false,564 "can_recover": false,565 "can_see_hidden_post": false,566 "can_wiki": false,567 "link_counts": [568 {569 "url": "https://github.com/pytorch/audio/issues/2614",570 "internal": false,571 "reflection": false,572 "title": "Encountered undefined symbol: gsm_create when import torchaudio · Issue #2614 · pytorch/audio · GitHub",573 "clicks": 2413574 }575 ],576 "read": true,577 "user_title": "",578 "bookmarked": false,579 "actions_summary": [],580 "moderator": false,581 "admin": false,582 "staff": false,583 "user_id": 48247,584 "hidden": false,585 "trust_level": 2,586 "deleted_at": null,587 "user_deleted": false,588 "edit_reason": null,589 "can_view_edit_history": true,590 "wiki": false,591 "post_url": "/t/oserror-local-lib-python3-10-site-packages-torchaudio-lib-libtorchaudio-so-undefined-symbol-gsm-create/164479/3",592 "can_accept_answer": false,593 "can_unaccept_answer": false,594 "accepted_answer": false,595 "topic_accepted_answer": null596 }597 ],598 "stream": [599 372011,600 394542,601 396555602 ]603 },604 "timeline_lookup": [605 [606 1,607 1095608 ],609 [610 2,611 943612 ],613 [614 3,615 931616 ]617 ],618 "suggested_topics": [619 {620 "fancy_title": "How to Export `torchaudio.models.decoder.ctc_decoder` to TorchScript for C++ Deployment?",621 "id": 217774,622 "title": "How to Export `torchaudio.models.decoder.ctc_decoder` to TorchScript for C++ Deployment?",623 "slug": "how-to-export-torchaudio-models-decoder-ctc-decoder-to-torchscript-for-c-deployment",624 "posts_count": 2,625 "reply_count": 0,626 "highest_post_number": 2,627 "image_url": null,628 "created_at": "2025-03-13T06:16:05.295Z",629 "last_posted_at": "2025-03-18T10:53:52.127Z",630 "bumped": true,631 "bumped_at": "2025-03-18T10:53:52.127Z",632 "archetype": "regular",633 "unseen": false,634 "pinned": false,635 "unpinned": null,636 "visible": true,637 "closed": false,638 "archived": false,639 "bookmarked": null,640 "liked": null,641 "tags_descriptions": {},642 "like_count": 0,643 "views": 65,644 "category_id": 9,645 "featured_link": null,646 "has_accepted_answer": false,647 "posters": [648 {649 "extras": "latest single",650 "description": "Original Poster, Most Recent Poster",651 "user": {652 "id": 56086,653 "username": "mariaalfaroc",654 "name": "Maria",655 "avatar_template": "/user_avatar/discuss.pytorch.org/mariaalfaroc/{size}/49777_2.png",656 "trust_level": 1657 }658 }659 ]660 },661 {662 "fancy_title": "Stft behavior with center=False and n_fft > win_length",663 "id": 213169,664 "title": "Stft behavior with center=False and n_fft > win_length",665 "slug": "stft-behavior-with-center-false-and-n-fft-win-length",666 "posts_count": 1,667 "reply_count": 0,668 "highest_post_number": 1,669 "image_url": null,670 "created_at": "2024-11-19T20:21:19.461Z",671 "last_posted_at": "2024-11-19T20:21:19.529Z",672 "bumped": true,673 "bumped_at": "2024-11-19T20:23:38.893Z",674 "archetype": "regular",675 "unseen": false,676 "pinned": false,677 "unpinned": null,678 "visible": true,679 "closed": false,680 "archived": false,681 "bookmarked": null,682 "liked": null,683 "tags_descriptions": {},684 "like_count": 0,685 "views": 58,686 "category_id": 9,687 "featured_link": null,688 "has_accepted_answer": false,689 "posters": [690 {691 "extras": "latest single",692 "description": "Original Poster, Most Recent Poster",693 "user": {694 "id": 76225,695 "username": "nedlrichards",696 "name": "Ned Richards",697 "avatar_template": "/user_avatar/discuss.pytorch.org/nedlrichards/{size}/70382_2.png",698 "trust_level": 1699 }700 }701 ]702 },703 {704 "fancy_title": "[PR] Torchaudio incompatible with python flag -OO due to __doc__ being None",705 "id": 216897,706 "title": "[PR] Torchaudio incompatible with python flag -OO due to __doc__ being None",707 "slug": "pr-torchaudio-incompatible-with-python-flag-oo-due-to-doc-being-none",708 "posts_count": 3,709 "reply_count": 1,710 "highest_post_number": 3,711 "image_url": null,712 "created_at": "2025-02-19T14:32:46.063Z",713 "last_posted_at": "2025-02-19T15:16:06.680Z",714 "bumped": true,715 "bumped_at": "2025-02-19T15:16:06.680Z",716 "archetype": "regular",717 "unseen": false,718 "pinned": false,719 "unpinned": null,720 "visible": true,721 "closed": false,722 "archived": false,723 "bookmarked": null,724 "liked": null,725 "tags_descriptions": {},726 "like_count": 0,727 "views": 100,728 "category_id": 9,729 "featured_link": null,730 "has_accepted_answer": false,731 "posters": [732 {733 "extras": "latest",734 "description": "Original Poster, Most Recent Poster",735 "user": {736 "id": 82796,737 "username": "FremyCompany",738 "name": "François REMY",739 "avatar_template": "/user_avatar/discuss.pytorch.org/fremycompany/{size}/75760_2.png",740 "trust_level": 0741 }742 },743 {744 "extras": null,745 "description": "Frequent Poster",746 "user": {747 "id": 3534,748 "username": "ptrblck",749 "name": "",750 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",751 "admin": true,752 "moderator": true,753 "trust_level": 2754 }755 }756 ]757 },758 {759 "fancy_title": "How to use filtfilt() function?",760 "id": 216443,761 "title": "How to use filtfilt() function?",762 "slug": "how-to-use-filtfilt-function",763 "posts_count": 2,764 "reply_count": 0,765 "highest_post_number": 2,766 "image_url": null,767 "created_at": "2025-02-10T03:01:31.509Z",768 "last_posted_at": "2025-02-10T08:55:11.729Z",769 "bumped": true,770 "bumped_at": "2025-02-10T08:55:23.471Z",771 "archetype": "regular",772 "unseen": false,773 "pinned": false,774 "unpinned": null,775 "visible": true,776 "closed": false,777 "archived": false,778 "bookmarked": null,779 "liked": null,780 "tags_descriptions": {},781 "like_count": 0,782 "views": 115,783 "category_id": 9,784 "featured_link": null,785 "has_accepted_answer": false,786 "posters": [787 {788 "extras": "latest single",789 "description": "Original Poster, Most Recent Poster",790 "user": {791 "id": 73868,792 "username": "elinliu0823",793 "name": "轶霖 柳",794 "avatar_template": "/user_avatar/discuss.pytorch.org/elinliu0823/{size}/68215_2.png",795 "trust_level": 1796 }797 }798 ]799 },800 {801 "fancy_title": "CTC loss inputs and input lengths",802 "id": 219837,803 "title": "CTC loss inputs and input lengths",804 "slug": "ctc-loss-inputs-and-input-lengths",805 "posts_count": 1,806 "reply_count": 0,807 "highest_post_number": 1,808 "image_url": null,809 "created_at": "2025-05-07T13:49:43.750Z",810 "last_posted_at": "2025-05-07T13:49:43.799Z",811 "bumped": true,812 "bumped_at": "2025-05-07T13:49:43.799Z",813 "archetype": "regular",814 "unseen": false,815 "pinned": false,816 "unpinned": null,817 "visible": true,818 "closed": false,819 "archived": false,820 "bookmarked": null,821 "liked": null,822 "tags_descriptions": {},823 "like_count": 0,824 "views": 67,825 "category_id": 9,826 "featured_link": null,827 "has_accepted_answer": false,828 "posters": [829 {830 "extras": "latest single",831 "description": "Original Poster, Most Recent Poster",832 "user": {833 "id": 83384,834 "username": "alicemabille",835 "name": "Alice Mabille",836 "avatar_template": "/user_avatar/discuss.pytorch.org/alicemabille/{size}/76264_2.png",837 "trust_level": 1838 }839 }840 ]841 }842 ],843 "tags_descriptions": {},844 "fancy_title": "OSError: ~/.local/lib/python3.10/site-packages/torchaudio/lib/libtorchaudio.so: undefined symbol: gsm_create",845 "id": 164479,846 "title": "OSError: ~/.local/lib/python3.10/site-packages/torchaudio/lib/libtorchaudio.so: undefined symbol: gsm_create",847 "posts_count": 3,848 "created_at": "2022-10-26T19:04:23.686Z",849 "views": 7032,850 "reply_count": 0,851 "like_count": 0,852 "last_posted_at": "2023-04-08T20:57:33.428Z",853 "visible": true,854 "closed": false,855 "archived": false,856 "has_summary": false,857 "archetype": "regular",858 "slug": "oserror-local-lib-python3-10-site-packages-torchaudio-lib-libtorchaudio-so-undefined-symbol-gsm-create",859 "category_id": 9,860 "word_count": 442,861 "deleted_at": null,862 "user_id": 131,863 "featured_link": null,864 "pinned_globally": false,865 "pinned_at": null,866 "pinned_until": null,867 "image_url": null,868 "slow_mode_seconds": 0,869 "draft": null,870 "draft_key": "topic_164479",871 "draft_sequence": null,872 "unpinned": null,873 "pinned": false,874 "current_post_number": 1,875 "highest_post_number": 3,876 "deleted_by": null,877 "actions_summary": [878 {879 "id": 4,880 "count": 0,881 "hidden": false,882 "can_act": false883 },884 {885 "id": 8,886 "count": 0,887 "hidden": false,888 "can_act": false889 },890 {891 "id": 10,892 "count": 0,893 "hidden": false,894 "can_act": false895 },896 {897 "id": 7,898 "count": 0,899 "hidden": false,900 "can_act": false901 }902 ],903 "chunk_size": 20,904 "bookmarked": false,905 "topic_timer": null,906 "message_bus_last_id": 0,907 "participant_count": 3,908 "show_read_indicator": false,909 "thumbnails": null,910 "slow_mode_enabled_until": null,911 "can_vote": false,912 "vote_count": 0,913 "user_voted": false,914 "discourse_zendesk_plugin_zendesk_id": null,915 "discourse_zendesk_plugin_zendesk_url": "https://your-url.zendesk.com/agent/tickets/",916 "details": {917 "can_edit": false,918 "notification_level": 1,919 "participants": [920 {921 "id": 131,922 "username": "jiapei100",923 "name": "Jia Pei",924 "avatar_template": "/user_avatar/discuss.pytorch.org/jiapei100/{size}/79_2.png",925 "post_count": 1,926 "primary_group_name": null,927 "flair_name": null,928 "flair_url": null,929 "flair_color": null,930 "flair_bg_color": null,931 "flair_group_id": null,932 "trust_level": 2933 },934 {935 "id": 48247,936 "username": "nateanl",937 "name": "",938 "avatar_template": "/user_avatar/discuss.pytorch.org/nateanl/{size}/41402_2.png",939 "post_count": 1,940 "primary_group_name": null,941 "flair_name": null,942 "flair_url": null,943 "flair_color": null,944 "flair_bg_color": null,945 "flair_group_id": null,946 "trust_level": 2947 },948 {949 "id": 64697,950 "username": "mostafa_alaviyan",951 "name": "mostafa alaviyan",952 "avatar_template": "/user_avatar/discuss.pytorch.org/mostafa_alaviyan/{size}/58884_2.png",953 "post_count": 1,954 "primary_group_name": null,955 "flair_name": null,956 "flair_url": null,957 "flair_color": null,958 "flair_bg_color": null,959 "flair_group_id": null,960 "trust_level": 0961 }962 ],963 "created_by": {964 "id": 131,965 "username": "jiapei100",966 "name": "Jia Pei",967 "avatar_template": "/user_avatar/discuss.pytorch.org/jiapei100/{size}/79_2.png"968 },969 "last_poster": {970 "id": 48247,971 "username": "nateanl",972 "name": "",973 "avatar_template": "/user_avatar/discuss.pytorch.org/nateanl/{size}/41402_2.png"974 },975 "links": [976 {977 "url": "https://github.com/pytorch/audio/issues/2614",978 "title": "Encountered undefined symbol: gsm_create when import torchaudio · Issue #2614 · pytorch/audio · GitHub",979 "internal": false,980 "attachment": false,981 "reflection": false,982 "clicks": 2413,983 "user_id": 48247,984 "domain": "github.com",985 "root_domain": "github.com"986 }987 ]988 },989 "bookmarks": []990 },991 {992 "post_stream": {993 "posts": [994 {995 "id": 394792,996 "name": "JohnWatson",997 "username": "John_J_Watson",998 "avatar_template": "/user_avatar/discuss.pytorch.org/john_j_watson/{size}/16421_2.png",999 "created_at": "2023-03-29T14:05:31.733Z",1000 "cooked": "<p>I have been following the tutorial for feature extraction using pytorch audio here: <a href=\"https://pytorch.org/audio/0.10.0/pipelines.html#wav2vec-2-0-hubert-representation-learning\" class=\"inline-onebox\" rel=\"noopener nofollow ugc\">torchaudio.pipelines — Torchaudio 0.10.0 documentation</a></p>\n<p>It says the result is a list of tensors of lenth 12 where each entry is the output of a transformer layer. So, the first tensor on the list has shape of something like <code>(1,2341,768)</code>.</p>\n<p>It seems to be correct as I get this result for most audios.</p>\n<p>However, for some videos, I get returned a tensor of length 12, but the entries have more than 1 batchsize bizzarely. So the shape is <code>(2,2341,768)</code> I am baffled as to why this is?</p>\n<p>Any clues would be great.</p>",1001 "post_number": 1,1002 "post_type": 1,1003 "posts_count": 4,1004 "updated_at": "2023-03-29T14:05:31.733Z",1005 "reply_count": 0,1006 "reply_to_post_number": null,1007 "quote_count": 0,1008 "incoming_link_count": 95,1009 "reads": 10,1010 "readers_count": 9,1011 "score": 477.0,1012 "yours": false,1013 "topic_id": 176164,1014 "topic_slug": "torchaudio-feature-extraction",1015 "display_username": "JohnWatson",1016 "primary_group_name": null,1017 "flair_name": null,1018 "flair_url": null,1019 "flair_bg_color": null,1020 "flair_color": null,1021 "flair_group_id": null,1022 "badges_granted": [],1023 "version": 1,1024 "can_edit": false,1025 "can_delete": false,1026 "can_recover": false,1027 "can_see_hidden_post": false,1028 "can_wiki": false,1029 "link_counts": [1030 {1031 "url": "https://pytorch.org/audio/0.10.0/pipelines.html#wav2vec-2-0-hubert-representation-learning",1032 "internal": false,1033 "reflection": false,1034 "title": "torchaudio.pipelines — Torchaudio 0.10.0 documentation",1035 "clicks": 41036 }1037 ],1038 "read": true,1039 "user_title": "",1040 "bookmarked": false,1041 "actions_summary": [],1042 "moderator": false,1043 "admin": false,1044 "staff": false,1045 "user_id": 24631,1046 "hidden": false,1047 "trust_level": 1,1048 "deleted_at": null,1049 "user_deleted": false,1050 "edit_reason": null,1051 "can_view_edit_history": true,1052 "wiki": false,1053 "post_url": "/t/torchaudio-feature-extraction/176164/1",1054 "can_accept_answer": false,1055 "can_unaccept_answer": false,1056 "accepted_answer": false,1057 "topic_accepted_answer": null,1058 "can_vote": false1059 },1060 {1061 "id": 394888,1062 "name": "",1063 "username": "ptrblck",1064 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",1065 "created_at": "2023-03-30T01:43:58.242Z",1066 "cooked": "<p>I don’t know which code you are executing, but the linked example code seems to work for me:</p>\n<pre><code class=\"lang-python\">import torchaudio\n\nbundle = torchaudio.pipelines.HUBERT_BASE\n\nmodel = bundle.get_model()\n\nwaveform = torch.randn(1, 1000)\nfeatures, _ = model.extract_features(waveform)\nfor f in features:\n print(f.shape)\n# torch.Size([1, 2, 768])\n# torch.Size([1, 2, 768])\n# torch.Size([1, 2, 768])\n# torch.Size([1, 2, 768])\n# torch.Size([1, 2, 768])\n# torch.Size([1, 2, 768])\n# torch.Size([1, 2, 768])\n# torch.Size([1, 2, 768])\n# torch.Size([1, 2, 768])\n# torch.Size([1, 2, 768])\n# torch.Size([1, 2, 768])\n# torch.Size([1, 2, 768])\n\nwaveform = torch.randn(2, 1000)\nfeatures, _ = model.extract_features(waveform)\nfor f in features:\n print(f.shape)\n# torch.Size([2, 2, 768])\n# torch.Size([2, 2, 768])\n# torch.Size([2, 2, 768])\n# torch.Size([2, 2, 768])\n# torch.Size([2, 2, 768])\n# torch.Size([2, 2, 768])\n# torch.Size([2, 2, 768])\n# torch.Size([2, 2, 768])\n# torch.Size([2, 2, 768])\n# torch.Size([2, 2, 768])\n# torch.Size([2, 2, 768])\n# torch.Size([2, 2, 768])\n\nwaveform = torch.randn(16, 1000)\nfeatures, _ = model.extract_features(waveform)\nfor f in features:\n print(f.shape)\n# torch.Size([16, 2, 768])\n# torch.Size([16, 2, 768])\n# torch.Size([16, 2, 768])\n# torch.Size([16, 2, 768])\n# torch.Size([16, 2, 768])\n# torch.Size([16, 2, 768])\n# torch.Size([16, 2, 768])\n# torch.Size([16, 2, 768])\n# torch.Size([16, 2, 768])\n# torch.Size([16, 2, 768])\n# torch.Size([16, 2, 768])\n# torch.Size([16, 2, 768])\n</code></pre>\n<p>Do you see the same behavior or does it differ?</p>",1067 "post_number": 2,1068 "post_type": 1,1069 "posts_count": 4,1070 "updated_at": "2023-03-30T01:43:58.242Z",1071 "reply_count": 1,1072 "reply_to_post_number": null,1073 "quote_count": 0,1074 "incoming_link_count": 0,1075 "reads": 10,1076 "readers_count": 9,1077 "score": 7.0,1078 "yours": false,1079 "topic_id": 176164,1080 "topic_slug": "torchaudio-feature-extraction",1081 "display_username": "",1082 "primary_group_name": null,1083 "flair_name": null,1084 "flair_url": null,1085 "flair_bg_color": null,1086 "flair_color": null,1087 "flair_group_id": null,1088 "badges_granted": [],1089 "version": 1,1090 "can_edit": false,1091 "can_delete": false,1092 "can_recover": false,1093 "can_see_hidden_post": false,1094 "can_wiki": false,1095 "read": true,1096 "user_title": "",1097 "bookmarked": false,1098 "actions_summary": [],1099 "moderator": true,1100 "admin": true,1101 "staff": true,1102 "user_id": 3534,1103 "hidden": false,1104 "trust_level": 2,1105 "deleted_at": null,1106 "user_deleted": false,1107 "edit_reason": null,1108 "can_view_edit_history": true,1109 "wiki": false,1110 "post_url": "/t/torchaudio-feature-extraction/176164/2",1111 "can_accept_answer": false,1112 "can_unaccept_answer": false,1113 "accepted_answer": false,1114 "topic_accepted_answer": null1115 },1116 {1117 "id": 394931,1118 "name": "JohnWatson",1119 "username": "John_J_Watson",1120 "avatar_template": "/user_avatar/discuss.pytorch.org/john_j_watson/{size}/16421_2.png",1121 "created_at": "2023-03-30T07:27:42.943Z",1122 "cooked": "<p><a class=\"mention\" href=\"/u/ptrblck\">@ptrblck</a> thank you so much for your answer.<br>\nSo, what you have shown is correct and the behaviour is the same for me.</p>\n<p>The issue is that some of the audio I have turns out to have tow channels (I cross posted the Q on stack and one of the replies helped me find this). I have some 1k vids and many of them have a single channel but some have two channels.</p>\n<p>So,</p>\n<pre><code class=\"lang-auto\"> data_waveform, rate_of_sample = torchaudio.load(audio_data)\n print(data_waveform.shape)\n sys.exit()\n</code></pre>\n<p>While for most of them I get a shape <code>(1,some_int)</code> I get for example <code>torch.Size([2, 3519168])</code> for some of them. I am told this is because of mono/stereo.</p>\n<p>The question now for me is what us best way to deal with this? I am very new to dealing with audio.</p>\n<p>Curently, I compute a mean of the two channels. Not sure if this makes sense?</p>",1123 "post_number": 3,1124 "post_type": 1,1125 "posts_count": 4,1126 "updated_at": "2023-03-30T07:27:42.943Z",1127 "reply_count": 1,1128 "reply_to_post_number": 2,1129 "quote_count": 0,1130 "incoming_link_count": 0,1131 "reads": 9,1132 "readers_count": 8,1133 "score": 6.8,1134 "yours": false,1135 "topic_id": 176164,1136 "topic_slug": "torchaudio-feature-extraction",1137 "display_username": "JohnWatson",1138 "primary_group_name": null,1139 "flair_name": null,1140 "flair_url": null,1141 "flair_bg_color": null,1142 "flair_color": null,1143 "flair_group_id": null,1144 "badges_granted": [],1145 "version": 1,1146 "can_edit": false,1147 "can_delete": false,1148 "can_recover": false,1149 "can_see_hidden_post": false,1150 "can_wiki": false,1151 "read": true,1152 "user_title": "",1153 "reply_to_user": {1154 "id": 3534,1155 "username": "ptrblck",1156 "name": "",1157 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png"1158 },1159 "bookmarked": false,1160 "actions_summary": [],1161 "moderator": false,1162 "admin": false,1163 "staff": false,1164 "user_id": 24631,1165 "hidden": false,1166 "trust_level": 1,1167 "deleted_at": null,1168 "user_deleted": false,1169 "edit_reason": null,1170 "can_view_edit_history": true,1171 "wiki": false,1172 "post_url": "/t/torchaudio-feature-extraction/176164/3",1173 "can_accept_answer": false,1174 "can_unaccept_answer": false,1175 "accepted_answer": false,1176 "topic_accepted_answer": null1177 },1178 {1179 "id": 396553,1180 "name": "",1181 "username": "nateanl",1182 "avatar_template": "/user_avatar/discuss.pytorch.org/nateanl/{size}/41402_2.png",1183 "created_at": "2023-04-08T20:44:41.643Z",1184 "cooked": "<p>It depends on your task and the scenario of the stereo recording. If your task is ASR and the speech in the stereo recording is close to the microphones, it is okay to average the two channels.</p>\n<p>If the speech is very far away from the microphones and the time of arrival to the two microphones are different, I would recommend only choosing one channel for extracting features. You can verify it by listening to the audios, if the speaker sounds like they are from left or right direction instead of front, the time of arrival is different between channels.</p>",1185 "post_number": 4,1186 "post_type": 1,1187 "posts_count": 4,1188 "updated_at": "2023-04-08T20:44:41.643Z",1189 "reply_count": 0,1190 "reply_to_post_number": 3,1191 "quote_count": 0,1192 "incoming_link_count": 2,1193 "reads": 7,1194 "readers_count": 6,1195 "score": 11.4,1196 "yours": false,1197 "topic_id": 176164,1198 "topic_slug": "torchaudio-feature-extraction",1199 "display_username": "",1200 "primary_group_name": null,