CoolFace
Datasetpublic

Anurag1734/cuda-error-resolution-analysis

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes7downloads
topics_batch_440.json64727 linesDownload Raw Back to raw
1[2  {3    "post_stream": {4      "posts": [5        {6          "id": 158760,7          "name": "Sampa Misra",8          "username": "sampa",9          "avatar_template": "/letter_avatar_proxy/v4/letter/s/e8c25b/{size}.png",10          "created_at": "2020-01-15T09:58:12.268Z",11          "cooked": "<pre><code class=\"lang-auto\">import os\n\nimport torch\nimport torch.nn as nn\nimport torchvision\nimport torchvision.transforms as transforms\nfrom torchvision import datasets, transforms, models\nfrom captum.insights import AttributionVisualizer, Batch\nfrom captum.insights.features import ImageFeature\n\ndata_dir = \"./BW\"\ntest_dir=data_dir + '/Test'\n\ndef get_classes():\n    classes = [\n        \"B\",\n        \"M\",\n    ]\n    return classes\n\n# Define functions for classification classes and pretrained model.\ndef get_pretrained_model():\n    model = models.resnet18(pretrained=True)\n    num_ftrs = model.fc.in_features\n    model.fc = nn.Linear(num_ftrs, 2)\n    model.load_state_dict(torch.load('checkpoint_ResnetBW.pt'))\n\ndef baseline_func(input):\n    return input * 0\n\ndef formatted_data_iter():\n    dataset = datasets.ImageFolder(test_dir, transform=transforms.ToTensor()\n    )\n    dataloader = iter(\n        torch.utils.data.DataLoader(dataset, batch_size=4, shuffle=False, num_workers=2)\n    )\n    while True:\n        images, labels = next(dataloader)\n        yield Batch(inputs=images, labels=labels)\n\n# Run the visualizer and render inside notebook for interactive debugging.\n\n\nnormalize = transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))\nmodel = get_pretrained_model()\nvisualizer = AttributionVisualizer(\n    models=[model],\n    score_func=lambda o: torch.nn.functional.softmax(o, 1),\n    classes=get_classes(),\n    features=[\n        ImageFeature(\n            \"Photo\",\n            baseline_transforms=[baseline_func],\n            input_transforms=[normalize],\n        )\n    ],\n    dataset=formatted_data_iter(),\n)\nvisualizer.render()\n</code></pre>\n<p>I am getting output like</p>\n<pre><code class=\"lang-auto\">Fetch data and view Captum Insights at http://localhost:64328/\n\n&lt;IPython.lib.display.IFrame object at 0x0000022B8CEA3248&gt;\n\n</code></pre>\n<p>The link is like <div class=\"lightbox-wrapper\"><a class=\"lightbox\" href=\"https://discuss.pytorch.org/uploads/default/original/3X/2/c/2c095b750ea695bf480e5ff1b97515003c83005b.png\" data-download-href=\"https://discuss.pytorch.org/uploads/default/2c095b750ea695bf480e5ff1b97515003c83005b\" title=\"Capture\"><img src=\"https://discuss.pytorch.org/uploads/default/optimized/3X/2/c/2c095b750ea695bf480e5ff1b97515003c83005b_2_690x139.png\" alt=\"Capture\" data-base62-sha1=\"6hz3vhI455fYVWLKoC1xxme5ldF\" width=\"690\" height=\"139\" srcset=\"https://discuss.pytorch.org/uploads/default/optimized/3X/2/c/2c095b750ea695bf480e5ff1b97515003c83005b_2_690x139.png, https://discuss.pytorch.org/uploads/default/optimized/3X/2/c/2c095b750ea695bf480e5ff1b97515003c83005b_2_1035x208.png 1.5x, https://discuss.pytorch.org/uploads/default/optimized/3X/2/c/2c095b750ea695bf480e5ff1b97515003c83005b_2_1380x278.png 2x\" data-dominant-color=\"F7F7F7\"><div class=\"meta\"><svg class=\"fa d-icon d-icon-far-image svg-icon\" aria-hidden=\"true\"><use href=\"#far-image\"></use></svg><span class=\"filename\">Capture</span><span class=\"informations\">1917×388 28.9 KB</span><svg class=\"fa d-icon d-icon-discourse-expand svg-icon\" aria-hidden=\"true\"><use href=\"#discourse-expand\"></use></svg></div></a></div></p>",12          "post_number": 1,13          "post_type": 1,14          "posts_count": 10,15          "updated_at": "2020-01-15T09:58:12.268Z",16          "reply_count": 0,17          "reply_to_post_number": null,18          "quote_count": 0,19          "incoming_link_count": 767,20          "reads": 36,21          "readers_count": 35,22          "score": 3842.2,23          "yours": false,24          "topic_id": 66720,25          "topic_slug": "how-to-run-captum",26          "display_username": "Sampa Misra",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://discuss.pytorch.org/uploads/default/original/3X/2/c/2c095b750ea695bf480e5ff1b97515003c83005b.png",43              "internal": true,44              "reflection": false,45              "clicks": 046            }47          ],48          "read": true,49          "user_title": null,50          "bookmarked": false,51          "actions_summary": [],52          "moderator": false,53          "admin": false,54          "staff": false,55          "user_id": 21994,56          "hidden": false,57          "trust_level": 1,58          "deleted_at": null,59          "user_deleted": false,60          "edit_reason": null,61          "can_view_edit_history": true,62          "wiki": false,63          "post_url": "/t/how-to-run-captum/66720/1",64          "can_accept_answer": false,65          "can_unaccept_answer": false,66          "accepted_answer": false,67          "topic_accepted_answer": null,68          "can_vote": false69        },70        {71          "id": 158859,72          "name": "Narine Kokhlikyan",73          "username": "Narine_Kokhlikyan",74          "avatar_template": "/user_avatar/discuss.pytorch.org/narine_kokhlikyan/{size}/17129_2.png",75          "created_at": "2020-01-15T17:55:10.357Z",76          "cooked": "<p>Hi <a class=\"mention\" href=\"/u/sampa\">@sampa</a>, you can use captum with and without Insights (interactive tool).<br>\nIf you want to use it without interactivity, then you can try our tutorials and examples on the README page: <a href=\"https://github.com/pytorch/captum\" rel=\"nofollow noopener\">https://github.com/pytorch/captum</a></p>\n<p>For the insights, I believe that there used to be an option <code>visualizer.render(debug=True)</code>. This will help you to see the error log.</p>\n<p>Also, in which environment are you trying to run insights ?</p>",77          "post_number": 2,78          "post_type": 1,79          "posts_count": 10,80          "updated_at": "2020-01-15T17:56:42.616Z",81          "reply_count": 0,82          "reply_to_post_number": null,83          "quote_count": 0,84          "incoming_link_count": 3,85          "reads": 31,86          "readers_count": 30,87          "score": 36.2,88          "yours": false,89          "topic_id": 66720,90          "topic_slug": "how-to-run-captum",91          "display_username": "Narine Kokhlikyan",92          "primary_group_name": null,93          "flair_name": null,94          "flair_url": null,95          "flair_bg_color": null,96          "flair_color": null,97          "flair_group_id": null,98          "badges_granted": [],99          "version": 1,100          "can_edit": false,101          "can_delete": false,102          "can_recover": false,103          "can_see_hidden_post": false,104          "can_wiki": false,105          "link_counts": [106            {107              "url": "https://github.com/pytorch/captum",108              "internal": false,109              "reflection": false,110              "title": "GitHub - pytorch/captum: Model interpretability and understanding for PyTorch",111              "clicks": 47112            }113          ],114          "read": true,115          "user_title": null,116          "bookmarked": false,117          "actions_summary": [118            {119              "id": 2,120              "count": 1121            }122          ],123          "moderator": false,124          "admin": false,125          "staff": false,126          "user_id": 23833,127          "hidden": false,128          "trust_level": 2,129          "deleted_at": null,130          "user_deleted": false,131          "edit_reason": null,132          "can_view_edit_history": true,133          "wiki": false,134          "post_url": "/t/how-to-run-captum/66720/2",135          "can_accept_answer": false,136          "can_unaccept_answer": false,137          "accepted_answer": false,138          "topic_accepted_answer": null139        },140        {141          "id": 158920,142          "name": "Sampa Misra",143          "username": "sampa",144          "avatar_template": "/letter_avatar_proxy/v4/letter/s/e8c25b/{size}.png",145          "created_at": "2020-01-16T01:47:03.691Z",146          "cooked": "<p>Hello <a class=\"mention\" href=\"/u/narine_kokhlikyan\">@Narine_Kokhlikyan</a>.  Thanks for your reply. I saw your tutorials.I gave the snapshot of my code. Can you please check it and tell me where is my mistake?</p>\n<p>I am using Python 3.7 and Anaconda.<br>\nI want the result like this<div class=\"lightbox-wrapper\"><a class=\"lightbox\" href=\"https://discuss.pytorch.org/uploads/default/original/3X/e/1/e13b7d8765ac0af47834e75b9c7ae464f2c2a79d.png\" data-download-href=\"https://discuss.pytorch.org/uploads/default/e13b7d8765ac0af47834e75b9c7ae464f2c2a79d\" title=\"captum_insights_screenshot\"><img src=\"https://discuss.pytorch.org/uploads/default/optimized/3X/e/1/e13b7d8765ac0af47834e75b9c7ae464f2c2a79d_2_690x400.png\" alt=\"captum_insights_screenshot\" data-base62-sha1=\"w8uT4KqQCMeGBa17zob2OYj7eih\" width=\"690\" height=\"400\" srcset=\"https://discuss.pytorch.org/uploads/default/optimized/3X/e/1/e13b7d8765ac0af47834e75b9c7ae464f2c2a79d_2_690x400.png, https://discuss.pytorch.org/uploads/default/optimized/3X/e/1/e13b7d8765ac0af47834e75b9c7ae464f2c2a79d_2_1035x600.png 1.5x, https://discuss.pytorch.org/uploads/default/original/3X/e/1/e13b7d8765ac0af47834e75b9c7ae464f2c2a79d.png 2x\" data-dominant-color=\"E7E9EB\"><div class=\"meta\"><svg class=\"fa d-icon d-icon-far-image svg-icon\" aria-hidden=\"true\"><use href=\"#far-image\"></use></svg><span class=\"filename\">captum_insights_screenshot</span><span class=\"informations\">1274×739 116 KB</span><svg class=\"fa d-icon d-icon-discourse-expand svg-icon\" aria-hidden=\"true\"><use href=\"#discourse-expand\"></use></svg></div></a></div></p>",147          "post_number": 3,148          "post_type": 1,149          "posts_count": 10,150          "updated_at": "2020-01-16T01:49:48.379Z",151          "reply_count": 2,152          "reply_to_post_number": null,153          "quote_count": 0,154          "incoming_link_count": 15,155          "reads": 30,156          "readers_count": 29,157          "score": 91.0,158          "yours": false,159          "topic_id": 66720,160          "topic_slug": "how-to-run-captum",161          "display_username": "Sampa Misra",162          "primary_group_name": null,163          "flair_name": null,164          "flair_url": null,165          "flair_bg_color": null,166          "flair_color": null,167          "flair_group_id": null,168          "badges_granted": [],169          "version": 2,170          "can_edit": false,171          "can_delete": false,172          "can_recover": false,173          "can_see_hidden_post": false,174          "can_wiki": false,175          "link_counts": [176            {177              "url": "https://discuss.pytorch.org/uploads/default/original/3X/e/1/e13b7d8765ac0af47834e75b9c7ae464f2c2a79d.png",178              "internal": true,179              "reflection": false,180              "clicks": 0181            }182          ],183          "read": true,184          "user_title": null,185          "bookmarked": false,186          "actions_summary": [],187          "moderator": false,188          "admin": false,189          "staff": false,190          "user_id": 21994,191          "hidden": false,192          "trust_level": 1,193          "deleted_at": null,194          "user_deleted": false,195          "edit_reason": null,196          "can_view_edit_history": true,197          "wiki": false,198          "post_url": "/t/how-to-run-captum/66720/3",199          "can_accept_answer": false,200          "can_unaccept_answer": false,201          "accepted_answer": false,202          "topic_accepted_answer": null203        },204        {205          "id": 159177,206          "name": "Narine Kokhlikyan",207          "username": "Narine_Kokhlikyan",208          "avatar_template": "/user_avatar/discuss.pytorch.org/narine_kokhlikyan/{size}/17129_2.png",209          "created_at": "2020-01-16T18:19:56.620Z",210          "cooked": "<p>Hi <a class=\"mention\" href=\"/u/sampa\">@sampa</a>, did you try <code>visualizer.render(debug=True)</code> ?  Did you see any error logs ? You might also try the latest version.</p>",211          "post_number": 4,212          "post_type": 1,213          "posts_count": 10,214          "updated_at": "2020-01-16T18:19:56.620Z",215          "reply_count": 0,216          "reply_to_post_number": 3,217          "quote_count": 0,218          "incoming_link_count": 0,219          "reads": 28,220          "readers_count": 27,221          "score": 5.6,222          "yours": false,223          "topic_id": 66720,224          "topic_slug": "how-to-run-captum",225          "display_username": "Narine Kokhlikyan",226          "primary_group_name": null,227          "flair_name": null,228          "flair_url": null,229          "flair_bg_color": null,230          "flair_color": null,231          "flair_group_id": null,232          "badges_granted": [],233          "version": 1,234          "can_edit": false,235          "can_delete": false,236          "can_recover": false,237          "can_see_hidden_post": false,238          "can_wiki": false,239          "read": true,240          "user_title": null,241          "reply_to_user": {242            "id": 21994,243            "username": "sampa",244            "name": "Sampa Misra",245            "avatar_template": "/letter_avatar_proxy/v4/letter/s/e8c25b/{size}.png"246          },247          "bookmarked": false,248          "actions_summary": [],249          "moderator": false,250          "admin": false,251          "staff": false,252          "user_id": 23833,253          "hidden": false,254          "trust_level": 2,255          "deleted_at": null,256          "user_deleted": false,257          "edit_reason": null,258          "can_view_edit_history": true,259          "wiki": false,260          "post_url": "/t/how-to-run-captum/66720/4",261          "can_accept_answer": false,262          "can_unaccept_answer": false,263          "accepted_answer": false,264          "topic_accepted_answer": null265        },266        {267          "id": 159186,268          "name": "Bilal Alsallakh",269          "username": "bilalsal",270          "avatar_template": "/letter_avatar_proxy/v4/letter/b/ecd19e/{size}.png",271          "created_at": "2020-01-16T19:19:15.340Z",272          "cooked": "<p>Hi <a class=\"mention\" href=\"/u/sampa\">@sampa</a>. As <a class=\"mention\" href=\"/u/narine_kokhlikyan\">@Narine_Kokhlikyan</a> mentioned, we can help you more if we see your error logs.<br>\nMaybe you can check if your browser ran into an error while loading Captum Insights (just guessing from the screenshot in your first post)?<br>\nTo check about this, right-click the webpage in Chrome or Firefox, and click Inspect, then check the Console tab for errors or warnings.</p>\n<p>Hope this helps</p>",273          "post_number": 5,274          "post_type": 1,275          "posts_count": 10,276          "updated_at": "2020-01-16T19:19:15.340Z",277          "reply_count": 0,278          "reply_to_post_number": 3,279          "quote_count": 0,280          "incoming_link_count": 2,281          "reads": 29,282          "readers_count": 28,283          "score": 30.8,284          "yours": false,285          "topic_id": 66720,286          "topic_slug": "how-to-run-captum",287          "display_username": "Bilal Alsallakh",288          "primary_group_name": null,289          "flair_name": null,290          "flair_url": null,291          "flair_bg_color": null,292          "flair_color": null,293          "flair_group_id": null,294          "badges_granted": [],295          "version": 1,296          "can_edit": false,297          "can_delete": false,298          "can_recover": false,299          "can_see_hidden_post": false,300          "can_wiki": false,301          "read": true,302          "user_title": null,303          "reply_to_user": {304            "id": 21994,305            "username": "sampa",306            "name": "Sampa Misra",307            "avatar_template": "/letter_avatar_proxy/v4/letter/s/e8c25b/{size}.png"308          },309          "bookmarked": false,310          "actions_summary": [311            {312              "id": 2,313              "count": 1314            }315          ],316          "moderator": false,317          "admin": false,318          "staff": false,319          "user_id": 26612,320          "hidden": false,321          "trust_level": 1,322          "deleted_at": null,323          "user_deleted": false,324          "edit_reason": null,325          "can_view_edit_history": true,326          "wiki": false,327          "post_url": "/t/how-to-run-captum/66720/5",328          "can_accept_answer": false,329          "can_unaccept_answer": false,330          "accepted_answer": false,331          "topic_accepted_answer": null332        },333        {334          "id": 159205,335          "name": "Edward W",336          "username": "edwardio",337          "avatar_template": "/letter_avatar_proxy/v4/letter/e/ee59a6/{size}.png",338          "created_at": "2020-01-16T20:54:44.269Z",339          "cooked": "<p>One issue I’ve noticed is that your <code>get_pretrained_model</code> function does not return any model.</p>\n<p>Like <a class=\"mention\" href=\"/u/narine_kokhlikyan\">@Narine_Kokhlikyan</a> mentioned, you should change your last line to be <code>visualizer.render(debug=True)</code>  to see the Python errors. In the next version of Captum this will be turned on by default.</p>",340          "post_number": 6,341          "post_type": 1,342          "posts_count": 10,343          "updated_at": "2020-01-16T20:54:44.269Z",344          "reply_count": 1,345          "reply_to_post_number": null,346          "quote_count": 0,347          "incoming_link_count": 2,348          "reads": 26,349          "readers_count": 25,350          "score": 35.2,351          "yours": false,352          "topic_id": 66720,353          "topic_slug": "how-to-run-captum",354          "display_username": "Edward W",355          "primary_group_name": null,356          "flair_name": null,357          "flair_url": null,358          "flair_bg_color": null,359          "flair_color": null,360          "flair_group_id": null,361          "badges_granted": [],362          "version": 1,363          "can_edit": false,364          "can_delete": false,365          "can_recover": false,366          "can_see_hidden_post": false,367          "can_wiki": false,368          "read": true,369          "user_title": null,370          "bookmarked": false,371          "actions_summary": [372            {373              "id": 2,374              "count": 1375            }376          ],377          "moderator": false,378          "admin": false,379          "staff": false,380          "user_id": 26564,381          "hidden": false,382          "trust_level": 0,383          "deleted_at": null,384          "user_deleted": false,385          "edit_reason": null,386          "can_view_edit_history": true,387          "wiki": false,388          "post_url": "/t/how-to-run-captum/66720/6",389          "can_accept_answer": false,390          "can_unaccept_answer": false,391          "accepted_answer": false,392          "topic_accepted_answer": null393        },394        {395          "id": 159233,396          "name": "Sampa Misra",397          "username": "sampa",398          "avatar_template": "/letter_avatar_proxy/v4/letter/s/e8c25b/{size}.png",399          "created_at": "2020-01-17T00:51:45.780Z",400          "cooked": "<p>Thank you <a class=\"mention\" href=\"/u/bilalsal\">@bilalsal</a> <a class=\"mention\" href=\"/u/narine_kokhlikyan\">@Narine_Kokhlikyan</a> <a class=\"mention\" href=\"/u/edwardio\">@edwardio</a>   for your kind reply. It is working without any error. But every time It is predicted as first class. Here is the latest  snapshot of my code</p>\n<pre><code class=\"lang-auto\">\nimport os\nfrom captum.insights import AttributionVisualizer, Batch\nfrom captum.insights.features import ImageFeature\nfrom torchvision import datasets, transforms, models\nimport torch\nimport torch.nn as nn\nimport torchvision\nimport torchvision.transforms as transforms\ntest_transforms = transforms.Compose([\n                    transforms.Resize((224,224)),\n                    transforms.ToTensor(),\n                    ])\n\ndef get_classes():\n    classes = [\n        \"B\",\n        \"M\",\n    ]\n    return classes\n\n\ndef get_pretrained_model():\n    net= models.resnet18(pretrained=True)\n    num_ftrs = net.fc.in_features\n    net.fc = nn.Linear(num_ftrs, 2)\n    pt_path = os.path.abspath(\n        os.path.dirname(__file__) + \"/models/checkpoint.pt\"\n    )\n    net.load_state_dict(torch.load(pt_path))\n    return net\n\n\ndef baseline_func(input):\n    return input * 0\n\n\ndef formatted_data_iter():\n    dataset = datasets.ImageFolder(\n        root=\"data/test\", transform=test_transforms\n    )\n    dataloader = iter(\n        torch.utils.data.DataLoader(dataset, batch_size=4, shuffle=False, num_workers=2)\n    )\n    while True:\n        images, labels = next(dataloader)\n        yield Batch(inputs=images, labels=labels)\n\n\nif __name__ == \"__main__\":\n    normalize = transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])\n    model = get_pretrained_model()\n    visualizer = AttributionVisualizer(\n        models=[model],\n        score_func=lambda o: torch.nn.functional.softmax(o, 1),\n        classes=get_classes(),\n        features=[\n            ImageFeature(\n                \"Photo\",\n                baseline_transforms=[baseline_func],\n                input_transforms=[normalize],\n            )\n        ],\n        dataset=formatted_data_iter(),\n    )\n\n    visualizer.render(debug=True)\n\n</code></pre>\n<p>In data/test folder I have 2 sub-folders name B and M with corresponding images.</p>",401          "post_number": 7,402          "post_type": 1,403          "posts_count": 10,404          "updated_at": "2020-01-17T02:15:56.780Z",405          "reply_count": 1,406          "reply_to_post_number": 6,407          "quote_count": 0,408          "incoming_link_count": 5,409          "reads": 25,410          "readers_count": 24,411          "score": 35.0,412          "yours": false,413          "topic_id": 66720,414          "topic_slug": "how-to-run-captum",415          "display_username": "Sampa Misra",416          "primary_group_name": null,417          "flair_name": null,418          "flair_url": null,419          "flair_bg_color": null,420          "flair_color": null,421          "flair_group_id": null,422          "badges_granted": [],423          "version": 3,424          "can_edit": false,425          "can_delete": false,426          "can_recover": false,427          "can_see_hidden_post": false,428          "can_wiki": false,429          "read": true,430          "user_title": null,431          "reply_to_user": {432            "id": 26564,433            "username": "edwardio",434            "name": "Edward W",435            "avatar_template": "/letter_avatar_proxy/v4/letter/e/ee59a6/{size}.png"436          },437          "bookmarked": false,438          "actions_summary": [],439          "moderator": false,440          "admin": false,441          "staff": false,442          "user_id": 21994,443          "hidden": false,444          "trust_level": 1,445          "deleted_at": null,446          "user_deleted": false,447          "edit_reason": null,448          "can_view_edit_history": true,449          "wiki": false,450          "post_url": "/t/how-to-run-captum/66720/7",451          "can_accept_answer": false,452          "can_unaccept_answer": false,453          "accepted_answer": false,454          "topic_accepted_answer": null455        },456        {457          "id": 177072,458          "name": "Naresh Rangan",459          "username": "nareshr8",460          "avatar_template": "/user_avatar/discuss.pytorch.org/nareshr8/{size}/15280_2.png",461          "created_at": "2020-03-27T11:09:57.984Z",462          "cooked": "<p>When I try Captum Insights, It seems not to render like:<br>\n<div class=\"lightbox-wrapper\"><a class=\"lightbox\" href=\"https://discuss.pytorch.org/uploads/default/original/3X/d/6/d6b2761646f1a26b900c2de38c7829e03cb26e2c.png\" data-download-href=\"https://discuss.pytorch.org/uploads/default/d6b2761646f1a26b900c2de38c7829e03cb26e2c\" title=\"image\"><img src=\"https://discuss.pytorch.org/uploads/default/optimized/3X/d/6/d6b2761646f1a26b900c2de38c7829e03cb26e2c_2_690x73.png\" alt=\"image\" data-base62-sha1=\"uDiwS5pfE0Ds7Bg1DX7fBd4M5Kk\" width=\"690\" height=\"73\" srcset=\"https://discuss.pytorch.org/uploads/default/optimized/3X/d/6/d6b2761646f1a26b900c2de38c7829e03cb26e2c_2_690x73.png, https://discuss.pytorch.org/uploads/default/optimized/3X/d/6/d6b2761646f1a26b900c2de38c7829e03cb26e2c_2_1035x109.png 1.5x, https://discuss.pytorch.org/uploads/default/original/3X/d/6/d6b2761646f1a26b900c2de38c7829e03cb26e2c.png 2x\" data-dominant-color=\"F8F8F8\"><div class=\"meta\"><svg class=\"fa d-icon d-icon-far-image svg-icon\" aria-hidden=\"true\"><use href=\"#far-image\"></use></svg><span class=\"filename\">image</span><span class=\"informations\">1165×124 7.02 KB</span><svg class=\"fa d-icon d-icon-discourse-expand svg-icon\" aria-hidden=\"true\"><use href=\"#discourse-expand\"></use></svg></div></a></div></p>\n<p>When I tried to look at the browser console, It shows this error:<br>\n<img src=\"https://discuss.pytorch.org/uploads/default/original/3X/9/1/91bd69e240ac6a296663a5c07d6f120661702b70.png\" alt=\"image\" data-base62-sha1=\"kNh36cnvgQpFLVuEf4sbpqXBtAY\" width=\"555\" height=\"340\"></p>\n<p>I tried in Vivaldi and Firefox. Both yield the same result. Can someone help…</p>",463          "post_number": 8,464          "post_type": 1,465          "posts_count": 10,466          "updated_at": "2020-03-27T11:09:57.984Z",467          "reply_count": 0,468          "reply_to_post_number": 7,469          "quote_count": 0,470          "incoming_link_count": 9,471          "reads": 17,472          "readers_count": 16,473          "score": 48.4,474          "yours": false,475          "topic_id": 66720,476          "topic_slug": "how-to-run-captum",477          "display_username": "Naresh Rangan",478          "primary_group_name": null,479          "flair_name": null,480          "flair_url": null,481          "flair_bg_color": null,482          "flair_color": null,483          "flair_group_id": null,484          "badges_granted": [],485          "version": 1,486          "can_edit": false,487          "can_delete": false,488          "can_recover": false,489          "can_see_hidden_post": false,490          "can_wiki": false,491          "link_counts": [492            {493              "url": "https://discuss.pytorch.org/uploads/default/original/3X/d/6/d6b2761646f1a26b900c2de38c7829e03cb26e2c.png",494              "internal": true,495              "reflection": false,496              "clicks": 0497            }498          ],499          "read": true,500          "user_title": null,501          "reply_to_user": {502            "id": 21994,503            "username": "sampa",504            "name": "Sampa Misra",505            "avatar_template": "/letter_avatar_proxy/v4/letter/s/e8c25b/{size}.png"506          },507          "bookmarked": false,508          "actions_summary": [],509          "moderator": false,510          "admin": false,511          "staff": false,512          "user_id": 21832,513          "hidden": false,514          "trust_level": 2,515          "deleted_at": null,516          "user_deleted": false,517          "edit_reason": null,518          "can_view_edit_history": true,519          "wiki": false,520          "post_url": "/t/how-to-run-captum/66720/8",521          "can_accept_answer": false,522          "can_unaccept_answer": false,523          "accepted_answer": false,524          "topic_accepted_answer": null525        },526        {527          "id": 177834,528          "name": "Naresh Rangan",529          "username": "nareshr8",530          "avatar_template": "/user_avatar/discuss.pytorch.org/nareshr8/{size}/15280_2.png",531          "created_at": "2020-03-30T16:03:17.972Z",532          "cooked": "<p>I was able to resolve this issue. I actually was running each environment as a kernel in Jupyter notebook so as to easily switch environment. I had to install captum in the base environment as well to make this work.</p>",533          "post_number": 9,534          "post_type": 1,535          "posts_count": 10,536          "updated_at": "2020-03-30T16:03:17.972Z",537          "reply_count": 0,538          "reply_to_post_number": null,539          "quote_count": 0,540          "incoming_link_count": 6,541          "reads": 15,542          "readers_count": 14,543          "score": 33.0,544          "yours": false,545          "topic_id": 66720,546          "topic_slug": "how-to-run-captum",547          "display_username": "Naresh Rangan",548          "primary_group_name": null,549          "flair_name": null,550          "flair_url": null,551          "flair_bg_color": null,552          "flair_color": null,553          "flair_group_id": null,554          "badges_granted": [],555          "version": 1,556          "can_edit": false,557          "can_delete": false,558          "can_recover": false,559          "can_see_hidden_post": false,560          "can_wiki": false,561          "read": true,562          "user_title": null,563          "bookmarked": false,564          "actions_summary": [],565          "moderator": false,566          "admin": false,567          "staff": false,568          "user_id": 21832,569          "hidden": false,570          "trust_level": 2,571          "deleted_at": null,572          "user_deleted": false,573          "edit_reason": null,574          "can_view_edit_history": true,575          "wiki": false,576          "post_url": "/t/how-to-run-captum/66720/9",577          "can_accept_answer": false,578          "can_unaccept_answer": false,579          "accepted_answer": false,580          "topic_accepted_answer": null581        },582        {583          "id": 224196,584          "name": "",585          "username": "marie",586          "avatar_template": "/letter_avatar_proxy/v4/letter/m/bc8723/{size}.png",587          "created_at": "2020-08-26T13:48:07.811Z",588          "cooked": "<p>If I run my Code, I get the Output…</p>\n<p>Captum Insights widget created.<br>\nCaptumInsights(insights_config={‘classes’: [‘Class1’, ‘Class2’], ‘methods’: [‘Deconvolution’, ‘Deep Lift’, ‘Guided Backprop’, ‘Input X Gradient’, ‘Integrated Gradients’, ‘Saliency’, ‘Feature Ablation’, ‘Occlusion’], ‘method_arguments’: {‘Integrated Gradients’: {‘n_steps’: {‘value’: 25, ‘limit’: (2, None), ‘type’: ‘number’}, ‘method’: {‘value’: ‘gausslegendre’, ‘limit’: [‘riemann_left’, ‘riemann_right’, ‘riemann_middle’, ‘riemann_trapezoid’, ‘gausslegendre’], ‘type’: ‘enum’}}, ‘Feature Ablation’: {‘perturbations_per_eval’: {‘value’: 1, ‘limit’: (1, 100), ‘type’: ‘number’}}, ‘Occlusion’: {‘sliding_window_shapes’: {‘value’: ‘’, ‘type’: ‘string’}, ‘strides’: {‘value’: ‘’, ‘type’: ‘string’}, ‘perturbations_per_eval’: {‘value’: 1, ‘limit’: (1, 100), ‘type’: ‘number’}}}, ‘selected_method’: ‘Integrated Gradients’})<br>\nOutput()</p>\n<p>… but I don’t get a link to display the Widget in my browser. Any ideas? I’m using Python 3.7 with Anaconda.<br>\nIn the GitHub ReadMe it says:</p>\n<p>To build the widget from a checkout in a conda environment run</p>\n<pre><code class=\"lang-auto\">conda install -c conda-forge yarn\nBUILD_INSIGHTS=1 python setup.py develop\n</code></pre>\n<p>… but I can’t run the “BUILD_INSIGHTS=1 python setup.py develop”. Maybe that’s the problem, but I still don’t know how to resolve it.</p>\n<p>Thanks in advance <img src=\"https://discuss.pytorch.org/images/emoji/apple/slight_smile.png?v=9\" title=\":slight_smile:\" class=\"emoji\" alt=\":slight_smile:\"></p>",589          "post_number": 10,590          "post_type": 1,591          "posts_count": 10,592          "updated_at": "2020-08-26T13:48:07.811Z",593          "reply_count": 0,594          "reply_to_post_number": null,595          "quote_count": 0,596          "incoming_link_count": 10,597          "reads": 11,598          "readers_count": 10,599          "score": 52.2,600          "yours": false,601          "topic_id": 66720,602          "topic_slug": "how-to-run-captum",603          "display_username": "",604          "primary_group_name": null,605          "flair_name": null,606          "flair_url": null,607          "flair_bg_color": null,608          "flair_color": null,609          "flair_group_id": null,610          "badges_granted": [],611          "version": 1,612          "can_edit": false,613          "can_delete": false,614          "can_recover": false,615          "can_see_hidden_post": false,616          "can_wiki": false,617          "read": true,618          "user_title": null,619          "bookmarked": false,620          "actions_summary": [],621          "moderator": false,622          "admin": false,623          "staff": false,624          "user_id": 35978,625          "hidden": false,626          "trust_level": 1,627          "deleted_at": null,628          "user_deleted": false,629          "edit_reason": null,630          "can_view_edit_history": true,631          "wiki": false,632          "post_url": "/t/how-to-run-captum/66720/10",633          "can_accept_answer": false,634          "can_unaccept_answer": false,635          "accepted_answer": false,636          "topic_accepted_answer": null637        }638      ],639      "stream": [640        158760,641        158859,642        158920,643        159177,644        159186,645        159205,646        159233,647        177072,648        177834,649        224196650      ]651    },652    "timeline_lookup": [653      [654        1,655        2111656      ],657      [658        2,659        2110660      ],661      [662        4,663        2109664      ],665      [666        8,667        2038668      ],669      [670        9,671        2035672      ],673      [674        10,675        1886676      ]677    ],678    "suggested_topics": [679      {680        "fancy_title": "Removing clicks in an audio file with torchaudio",681        "id": 217889,682        "title": "Removing clicks in an audio file with torchaudio",683        "slug": "removing-clicks-in-an-audio-file-with-torchaudio",684        "posts_count": 2,685        "reply_count": 0,686        "highest_post_number": 2,687        "image_url": "https://discuss.pytorch.org/uploads/default/optimized/3X/c/f/cf3cc96497cb8286437681077e9cde3e0be375f8_2_1024x885.jpeg",688        "created_at": "2025-03-15T17:24:42.152Z",689        "last_posted_at": "2025-03-16T15:00:51.428Z",690        "bumped": true,691        "bumped_at": "2025-03-16T15:00:51.428Z",692        "archetype": "regular",693        "unseen": false,694        "pinned": false,695        "unpinned": null,696        "visible": true,697        "closed": false,698        "archived": false,699        "bookmarked": null,700        "liked": null,701        "tags_descriptions": {},702        "like_count": 0,703        "views": 88,704        "category_id": 1,705        "featured_link": null,706        "has_accepted_answer": false,707        "posters": [708          {709            "extras": null,710            "description": "Original Poster",711            "user": {712              "id": 83293,713              "username": "rodiram",714              "name": "rodiram",715              "avatar_template": "/letter_avatar_proxy/v4/letter/r/f08c70/{size}.png",716              "trust_level": 0717            }718          },719          {720            "extras": "latest",721            "description": "Most Recent Poster",722            "user": {723              "id": 18088,724              "username": "KFrank",725              "name": "K. Frank",726              "avatar_template": "/letter_avatar_proxy/v4/letter/k/ecb155/{size}.png",727              "trust_level": 2728            }729          }730        ]731      },732      {733        "fancy_title": "torch.OutOfMemoryError Needing Help",734        "id": 215383,735        "title": "torch.OutOfMemoryError Needing Help",736        "slug": "torch-outofmemoryerror-needing-help",737        "posts_count": 2,738        "reply_count": 0,739        "highest_post_number": 2,740        "image_url": "https://discuss.pytorch.org/uploads/default/original/3X/7/1/7177b82c5c3fa982bd5bcb76e82413cb1a9895ee.png",741        "created_at": "2025-01-14T16:13:00.335Z",742        "last_posted_at": "2025-01-14T20:48:39.772Z",743        "bumped": true,744        "bumped_at": "2025-01-14T20:48:39.772Z",745        "archetype": "regular",746        "unseen": false,747        "pinned": false,748        "unpinned": null,749        "visible": true,750        "closed": false,751        "archived": false,752        "bookmarked": null,753        "liked": null,754        "tags_descriptions": {},755        "like_count": 0,756        "views": 72,757        "category_id": 1,758        "featured_link": null,759        "has_accepted_answer": false,760        "posters": [761          {762            "extras": null,763            "description": "Original Poster",764            "user": {765              "id": 82088,766              "username": "meditrust",767              "name": "Yohan Azoulay",768              "avatar_template": "/letter_avatar_proxy/v4/letter/m/f1d935/{size}.png",769              "trust_level": 0770            }771          },772          {773            "extras": "latest",774            "description": "Most Recent Poster",775            "user": {776              "id": 3534,777              "username": "ptrblck",778              "name": "",779              "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",780              "admin": true,781              "moderator": true,782              "trust_level": 2783            }784          }785        ]786      },787      {788        "fancy_title": "Help for understanding RNN sequence inputs and output data",789        "id": 213029,790        "title": "Help for understanding RNN sequence inputs and output data",791        "slug": "help-for-understanding-rnn-sequence-inputs-and-output-data",792        "posts_count": 3,793        "reply_count": 0,794        "highest_post_number": 3,795        "image_url": null,796        "created_at": "2024-11-15T23:54:49.368Z",797        "last_posted_at": "2024-11-17T08:24:42.576Z",798        "bumped": true,799        "bumped_at": "2024-11-17T08:28:14.761Z",800        "archetype": "regular",801        "unseen": false,802        "pinned": false,803        "unpinned": null,804        "visible": true,805        "closed": false,806        "archived": false,807        "bookmarked": null,808        "liked": null,809        "tags_descriptions": {},810        "like_count": 0,811        "views": 79,812        "category_id": 1,813        "featured_link": null,814        "has_accepted_answer": true,815        "posters": [816          {817            "extras": "latest",818            "description": "Original Poster, Most Recent Poster, Accepted Answer",819            "user": {820              "id": 80718,821              "username": "Ras",822              "name": "",823              "avatar_template": "/letter_avatar_proxy/v4/letter/r/58956e/{size}.png",824              "trust_level": 1825            }826          },827          {828            "extras": null,829            "description": "Frequent Poster",830            "user": {831              "id": 1438,832              "username": "vdw",833              "name": "Chris",834              "avatar_template": "/user_avatar/discuss.pytorch.org/vdw/{size}/10074_2.png",835              "trust_level": 2836            }837          }838        ]839      },840      {841        "fancy_title": "Built-in 0-1 loss function?",842        "id": 216747,843        "title": "Built-in 0-1 loss function?",844        "slug": "built-in-0-1-loss-function",845        "posts_count": 3,846        "reply_count": 0,847        "highest_post_number": 3,848        "image_url": null,849        "created_at": "2025-02-16T16:14:21.754Z",850        "last_posted_at": "2025-02-17T23:41:00.716Z",851        "bumped": true,852        "bumped_at": "2025-02-17T23:41:00.716Z",853        "archetype": "regular",854        "unseen": false,855        "pinned": false,856        "unpinned": null,857        "visible": true,858        "closed": false,859        "archived": false,860        "bookmarked": null,861        "liked": null,862        "tags_descriptions": {},863        "like_count": 0,864        "views": 156,865        "category_id": 1,866        "featured_link": null,867        "has_accepted_answer": true,868        "posters": [869          {870            "extras": "latest",871            "description": "Original Poster, Most Recent Poster",872            "user": {873              "id": 75981,874              "username": "Geremia",875              "name": "Geremia",876              "avatar_template": "/user_avatar/discuss.pytorch.org/geremia/{size}/70165_2.png",877              "trust_level": 2878            }879          },880          {881            "extras": null,882            "description": "Frequent Poster, Accepted Answer",883            "user": {884              "id": 18088,885              "username": "KFrank",886              "name": "K. Frank",887              "avatar_template": "/letter_avatar_proxy/v4/letter/k/ecb155/{size}.png",888              "trust_level": 2889            }890          }891        ]892      },893      {894        "fancy_title": "Storing intermediates outputs in python list + clone() and memory usage problem",895        "id": 217909,896        "title": "Storing intermediates outputs in python list + clone() and memory usage problem",897        "slug": "storing-intermediates-outputs-in-python-list-clone-and-memory-usage-problem",898        "posts_count": 1,899        "reply_count": 0,900        "highest_post_number": 1,901        "image_url": null,902        "created_at": "2025-03-16T10:38:06.410Z",903        "last_posted_at": "2025-03-16T10:38:06.450Z",904        "bumped": true,905        "bumped_at": "2025-03-16T10:38:06.450Z",906        "archetype": "regular",907        "unseen": false,908        "pinned": false,909        "unpinned": null,910        "visible": true,911        "closed": false,912        "archived": false,913        "bookmarked": null,914        "liked": null,915        "tags_descriptions": {},916        "like_count": 0,917        "views": 40,918        "category_id": 1,919        "featured_link": null,920        "has_accepted_answer": false,921        "posters": [922          {923            "extras": "latest single",924            "description": "Original Poster, Most Recent Poster",925            "user": {926              "id": 83291,927              "username": "Nyx",928              "name": "Nyx",929              "avatar_template": "/user_avatar/discuss.pytorch.org/nyx/{size}/76178_2.png",930              "trust_level": 1931            }932          }933        ]934      }935    ],936    "tags_descriptions": {},937    "fancy_title": "How to run Captum?",938    "id": 66720,939    "title": "How to run Captum?",940    "posts_count": 10,941    "created_at": "2020-01-15T09:58:12.187Z",942    "views": 1916,943    "reply_count": 4,944    "like_count": 3,945    "last_posted_at": "2020-08-26T13:48:07.811Z",946    "visible": true,947    "closed": false,948    "archived": false,949    "has_summary": false,950    "archetype": "regular",951    "slug": "how-to-run-captum",952    "category_id": 1,953    "word_count": 940,954    "deleted_at": null,955    "user_id": 21994,956    "featured_link": null,957    "pinned_globally": false,958    "pinned_at": null,959    "pinned_until": null,960    "image_url": "https://discuss.pytorch.org/uploads/default/optimized/3X/2/c/2c095b750ea695bf480e5ff1b97515003c83005b_2_1024x207.png",961    "slow_mode_seconds": 0,962    "draft": null,963    "draft_key": "topic_66720",964    "draft_sequence": null,965    "unpinned": null,966    "pinned": false,967    "current_post_number": 1,968    "highest_post_number": 10,969    "deleted_by": null,970    "actions_summary": [971      {972        "id": 4,973        "count": 0,974        "hidden": false,975        "can_act": false976      },977      {978        "id": 8,979        "count": 0,980        "hidden": false,981        "can_act": false982      },983      {984        "id": 10,985        "count": 0,986        "hidden": false,987        "can_act": false988      },989      {990        "id": 7,991        "count": 0,992        "hidden": false,993        "can_act": false994      }995    ],996    "chunk_size": 20,997    "bookmarked": false,998    "topic_timer": null,999    "message_bus_last_id": 0,1000    "participant_count": 6,1001    "show_read_indicator": false,1002    "thumbnails": [1003      {1004        "max_width": null,1005        "max_height": null,1006        "width": 1917,1007        "height": 388,1008        "url": "https://discuss.pytorch.org/uploads/default/original/3X/2/c/2c095b750ea695bf480e5ff1b97515003c83005b.png"1009      },1010      {1011        "max_width": 1024,1012        "max_height": 1024,1013        "width": 1024,1014        "height": 207,1015        "url": "https://discuss.pytorch.org/uploads/default/optimized/3X/2/c/2c095b750ea695bf480e5ff1b97515003c83005b_2_1024x207.png"1016      }1017    ],1018    "slow_mode_enabled_until": null,1019    "can_vote": false,1020    "vote_count": 0,1021    "user_voted": false,1022    "discourse_zendesk_plugin_zendesk_id": null,1023    "discourse_zendesk_plugin_zendesk_url": "https://your-url.zendesk.com/agent/tickets/",1024    "details": {1025      "can_edit": false,1026      "notification_level": 1,1027      "participants": [1028        {1029          "id": 21994,1030          "username": "sampa",1031          "name": "Sampa Misra",1032          "avatar_template": "/letter_avatar_proxy/v4/letter/s/e8c25b/{size}.png",1033          "post_count": 3,1034          "primary_group_name": null,1035          "flair_name": null,1036          "flair_url": null,1037          "flair_color": null,1038          "flair_bg_color": null,1039          "flair_group_id": null,1040          "trust_level": 11041        },1042        {1043          "id": 21832,1044          "username": "nareshr8",1045          "name": "Naresh Rangan",1046          "avatar_template": "/user_avatar/discuss.pytorch.org/nareshr8/{size}/15280_2.png",1047          "post_count": 2,1048          "primary_group_name": null,1049          "flair_name": null,1050          "flair_url": null,1051          "flair_color": null,1052          "flair_bg_color": null,1053          "flair_group_id": null,1054          "trust_level": 21055        },1056        {1057          "id": 23833,1058          "username": "Narine_Kokhlikyan",1059          "name": "Narine Kokhlikyan",1060          "avatar_template": "/user_avatar/discuss.pytorch.org/narine_kokhlikyan/{size}/17129_2.png",1061          "post_count": 2,1062          "primary_group_name": null,1063          "flair_name": null,1064          "flair_url": null,1065          "flair_color": null,1066          "flair_bg_color": null,1067          "flair_group_id": null,1068          "trust_level": 21069        },1070        {1071          "id": 26564,1072          "username": "edwardio",1073          "name": "Edward W",1074          "avatar_template": "/letter_avatar_proxy/v4/letter/e/ee59a6/{size}.png",1075          "post_count": 1,1076          "primary_group_name": null,1077          "flair_name": null,1078          "flair_url": null,1079          "flair_color": null,1080          "flair_bg_color": null,1081          "flair_group_id": null,1082          "trust_level": 01083        },1084        {1085          "id": 26612,1086          "username": "bilalsal",1087          "name": "Bilal Alsallakh",1088          "avatar_template": "/letter_avatar_proxy/v4/letter/b/ecd19e/{size}.png",1089          "post_count": 1,1090          "primary_group_name": null,1091          "flair_name": null,1092          "flair_url": null,1093          "flair_color": null,1094          "flair_bg_color": null,1095          "flair_group_id": null,1096          "trust_level": 11097        },1098        {1099          "id": 35978,1100          "username": "marie",1101          "name": "",1102          "avatar_template": "/letter_avatar_proxy/v4/letter/m/bc8723/{size}.png",1103          "post_count": 1,1104          "primary_group_name": null,1105          "flair_name": null,1106          "flair_url": null,1107          "flair_color": null,1108          "flair_bg_color": null,1109          "flair_group_id": null,1110          "trust_level": 11111        }1112      ],1113      "created_by": {1114        "id": 21994,1115        "username": "sampa",1116        "name": "Sampa Misra",1117        "avatar_template": "/letter_avatar_proxy/v4/letter/s/e8c25b/{size}.png"1118      },1119      "last_poster": {1120        "id": 35978,1121        "username": "marie",1122        "name": "",1123        "avatar_template": "/letter_avatar_proxy/v4/letter/m/bc8723/{size}.png"1124      },1125      "links": [1126        {1127          "url": "https://github.com/pytorch/captum",1128          "title": "GitHub - pytorch/captum: Model interpretability and understanding for PyTorch",1129          "internal": false,1130          "attachment": false,1131          "reflection": false,1132          "clicks": 47,1133          "user_id": 23833,1134          "domain": "github.com",1135          "root_domain": "github.com"1136        }1137      ]1138    },1139    "bookmarks": []1140  },1141  {1142    "post_stream": {1143      "posts": [1144        {1145          "id": 223845,1146          "name": "Shangguan91",1147          "username": "shangguan91",1148          "avatar_template": "/letter_avatar_proxy/v4/letter/s/a3d4f5/{size}.png",1149          "created_at": "2020-08-25T10:52:53.781Z",1150          "cooked": "<p>i have a datalist[0:59]. i used k-folder cross validation, split the data:<br>\n<div class=\"lightbox-wrapper\"><a class=\"lightbox\" href=\"https://discuss.pytorch.org/uploads/default/original/3X/2/a/2aaac8fbd19d6a3b51ac0c0af3b08e0629fbe526.png\" data-download-href=\"https://discuss.pytorch.org/uploads/default/2aaac8fbd19d6a3b51ac0c0af3b08e0629fbe526\" title=\"image\"><img src=\"https://discuss.pytorch.org/uploads/default/original/3X/2/a/2aaac8fbd19d6a3b51ac0c0af3b08e0629fbe526.png\" alt=\"image\" data-base62-sha1=\"65rXsTZb5VNXEprkPXk9p8rDwPk\" width=\"690\" height=\"337\" data-dominant-color=\"F6F6F6\"><div class=\"meta\"><svg class=\"fa d-icon d-icon-far-image svg-icon\" aria-hidden=\"true\"><use href=\"#far-image\"></use></svg><span class=\"filename\">image</span><span class=\"informations\">932×456 17.1 KB</span><svg class=\"fa d-icon d-icon-discourse-expand svg-icon\" aria-hidden=\"true\"><use href=\"#discourse-expand\"></use></svg></div></a></div> .</p>\n<p>But when i try to return the first split for my data, i get error<br>\n<div class=\"lightbox-wrapper\"><a class=\"lightbox\" href=\"https://discuss.pytorch.org/uploads/default/original/3X/1/5/15ce0f044085556be627bf13a2f6a2eb439903fd.png\" data-download-href=\"https://discuss.pytorch.org/uploads/default/15ce0f044085556be627bf13a2f6a2eb439903fd\" title=\"image\"><img src=\"https://discuss.pytorch.org/uploads/default/original/3X/1/5/15ce0f044085556be627bf13a2f6a2eb439903fd.png\" alt=\"image\" data-base62-sha1=\"36TvldrwVdQLaXD8356naRSI5qZ\" width=\"690\" height=\"182\" data-dominant-color=\"F4F4F7\"><div class=\"meta\"><svg class=\"fa d-icon d-icon-far-image svg-icon\" aria-hidden=\"true\"><use href=\"#far-image\"></use></svg><span class=\"filename\">image</span><span class=\"informations\">850×225 8.12 KB</span><svg class=\"fa d-icon d-icon-discourse-expand svg-icon\" aria-hidden=\"true\"><use href=\"#discourse-expand\"></use></svg></div></a></div> .</p>\n<p>How can i get the data_list from my tensor</p>",1151          "post_number": 1,1152          "post_type": 1,1153          "posts_count": 3,1154          "updated_at": "2020-08-25T10:52:53.781Z",1155          "reply_count": 0,1156          "reply_to_post_number": null,1157          "quote_count": 0,1158          "incoming_link_count": 16,1159          "reads": 6,1160          "readers_count": 5,1161          "score": 81.2,1162          "yours": false,1163          "topic_id": 94037,1164          "topic_slug": "return-the-data-according-to-the-torch-tensor",1165          "display_username": "Shangguan91",1166          "primary_group_name": null,1167          "flair_name": null,1168          "flair_url": null,1169          "flair_bg_color": null,1170          "flair_color": null,1171          "flair_group_id": null,1172          "badges_granted": [],1173          "version": 1,1174          "can_edit": false,1175          "can_delete": false,1176          "can_recover": false,1177          "can_see_hidden_post": false,1178          "can_wiki": false,1179          "link_counts": [1180            {1181              "url": "https://discuss.pytorch.org/uploads/default/original/3X/2/a/2aaac8fbd19d6a3b51ac0c0af3b08e0629fbe526.png",1182              "internal": true,1183              "reflection": false,1184              "clicks": 01185            },1186            {1187              "url": "https://discuss.pytorch.org/uploads/default/original/3X/1/5/15ce0f044085556be627bf13a2f6a2eb439903fd.png",1188              "internal": true,1189              "reflection": false,1190              "clicks": 01191            }1192          ],1193          "read": true,1194          "user_title": null,1195          "bookmarked": false,1196          "actions_summary": [],1197          "moderator": false,1198          "admin": false,1199          "staff": false,1200          "user_id": 33222,

Showing the first 1,200 of 64727 lines. Download the file for the rest.