Title: IndexError: invalid index of a 0-dim tensor · Issue #4 · uwnlp/open_type · GitHub
Open Graph Title: IndexError: invalid index of a 0-dim tensor · Issue #4 · uwnlp/open_type
X Title: IndexError: invalid index of a 0-dim tensor · Issue #4 · uwnlp/open_type
Description: Run command: python main.py onto -lstm_type single -goal onto -enhanced_mention Error: .../model_utils.py:167: UserWarning: Implicit dimension choice for softmax has been deprecated. Change the call to include dim=X as an argument. weigh...
Open Graph Description: Run command: python main.py onto -lstm_type single -goal onto -enhanced_mention Error: .../model_utils.py:167: UserWarning: Implicit dimension choice for softmax has been deprecated. Change the cal...
X Description: Run command: python main.py onto -lstm_type single -goal onto -enhanced_mention Error: .../model_utils.py:167: UserWarning: Implicit dimension choice for softmax has been deprecated. Change the cal...
Opengraph URL: https://github.com/uwnlp/open_type/issues/4
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IndexError: invalid index of a 0-dim tensor","articleBody":"Run command: python main.py onto -lstm_type single -goal onto -enhanced_mention\r\n\r\nError:\r\n\r\n.../model_utils.py:167: UserWarning: Implicit dimension choice for softmax has been deprecated. Change the call to include dim=X as an argument.\r\n weighted_keys = self.key_softmax(k).view(input_embed.size()[0], -1, 1)\r\nTraceback (most recent call last):\r\n File \"main.py\", line 276, in \u003cmodule\u003e\r\n _train(config)\r\n File \"main.py\", line 133, in _train\r\n total_loss += loss.data.cpu()[0]\r\nIndexError: invalid index of a 0-dim tensor. Use tensor.item() to convert a 0-dim tensor to a Python number\r\n","author":{"url":"https://github.com/cuongcx","@type":"Person","name":"cuongcx"},"datePublished":"2019-03-19T13:45:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/4/open_type/issues/4"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2fd01260-519d-c128-5678-d626c5e27b7f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 809C:296525:B4CFE7:F430B3:6A4C512E |
| html-safe-nonce | 9774babddbcc78049441728edc5ecee7017cdc6aeeead4e14692d96acbe9acd4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDlDOjI5NjUyNTpCNENGRTc6RjQzMEIzOjZBNEM1MTJFIiwidmlzaXRvcl9pZCI6IjM4MjI3Mzc0MDAyMjk4MTA0NzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9686a284d151dbbcc19e4fb2bf7b1959037c141818983406595026310c63cc8f |
| hovercard-subject-tag | issue:422740455 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/uwnlp/open_type/4/issue_layout |
| twitter:image | https://opengraph.githubassets.com/551cbee67ab2cd829c2c71e603bf279c85906d7053a1ae9fbc01ec03c413d4c7/uwnlp/open_type/issues/4 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/551cbee67ab2cd829c2c71e603bf279c85906d7053a1ae9fbc01ec03c413d4c7/uwnlp/open_type/issues/4 |
| og:image:alt | Run command: python main.py onto -lstm_type single -goal onto -enhanced_mention Error: .../model_utils.py:167: UserWarning: Implicit dimension choice for softmax has been deprecated. Change the cal... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cuongcx |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/uwnlp/open_type git https://github.com/uwnlp/open_type.git |
| octolytics-dimension-user_id | 20983288 |
| octolytics-dimension-user_login | uwnlp |
| octolytics-dimension-repository_id | 130912454 |
| octolytics-dimension-repository_nwo | uwnlp/open_type |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 130912454 |
| octolytics-dimension-repository_network_root_nwo | uwnlp/open_type |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 14099438da5379150f15a2892474c7c7e6c0e55e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width