Title: IntelliSense not working for torch.nn · Issue #1799 · microsoft/python-language-server · GitHub
Open Graph Title: IntelliSense not working for torch.nn · Issue #1799 · microsoft/python-language-server
X Title: IntelliSense not working for torch.nn · Issue #1799 · microsoft/python-language-server
Description: Environment data Language Server version: 0.4.114.0 OS and version: Debian 10 Python version (& distribution if applicable, e.g. Anaconda): 3.7.3 (Miniconda - CondaForge) PyTorch version: 1.3.0 and 1.3.1 Expected behaviour Auto-completio...
Open Graph Description: Environment data Language Server version: 0.4.114.0 OS and version: Debian 10 Python version (& distribution if applicable, e.g. Anaconda): 3.7.3 (Miniconda - CondaForge) PyTorch version: 1.3.0 and...
X Description: Environment data Language Server version: 0.4.114.0 OS and version: Debian 10 Python version (& distribution if applicable, e.g. Anaconda): 3.7.3 (Miniconda - CondaForge) PyTorch version: 1.3.0...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/1799
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IntelliSense not working for torch.nn","articleBody":"\u003c!-- \r\nRead the guidelines for filing an issue first. \r\n\r\nhttps://github.com/microsoft/python-language-server/blob/master/TROUBLESHOOTING.md#filing-an-issue\r\n-->\r\n\r\n## Environment data\r\n\u003c!--\r\nTo find your version: \r\n\r\nSelect \"View: Toggle Output\" from the command palette (Ctrl+Shift+P on Windows/Linux, Command+Shift+P on macOS), then select \"Python\" in the dropdown on the right (\"Python Language Server\" if running Insiders build of VS Code). Look for the line Microsoft Python Language Server version X in the console.\r\n-->\r\n\r\n- Language Server version: 0.4.114.0 \r\n- OS and version: Debian 10\r\n- Python version (& distribution if applicable, e.g. Anaconda): 3.7.3 (Miniconda - CondaForge)\r\n- PyTorch version: 1.3.0 and 1.3.1\r\n\r\n## Expected behaviour\r\n\r\nAuto-completion through IntelliSense when typing (i.e. torch.nn. ).\r\n\r\n## Actual behaviour\r\n\r\nAuto-completion does not work for **torch.nn**. However, it works for other modules like **torch.nn.functional**.\r\n\r\nI already tried to delete the language server directory and restarting VSCode. In addition, I already switched to beta, but nothing changed.\r\n\r\nThere are already closed related issues:\r\n[Intellisense doesnt work for all Pytorch methods](https://github.com/microsoft/python-language-server/issues/1098)\r\n[torch.nn missing from torch module and `from torch import` completions](https://github.com/microsoft/python-language-server/issues/1301)\r\n\r\n\r\n## Logs\r\n\r\n\u003c!-- \r\nEnable trace logging by adding \"python.analysis.logLevel\": \"Trace\" to your settings.json configuration file.\r\n\r\nAdding this will cause a large amount of info to be printed to the Python output panel. This should not be left long term, as the performance impact of the logging is significant.\r\n-->\r\n\r\n```\r\nAnalysis of models.GAN.gan (User) queued. Dependencies: torch, torch.nn\r\nCompletions in file:///home/p***/Generative-models/models/GAN/gan.py at (19, 24)\r\nAnalysis version 4594 of 1 entries has started.\r\nAnalysis of models.GAN.gan (User) on depth 0 completed in 0.48 ms.\r\nAnalysis complete: 1 modules in 17.34 ms.\r\nAnalysis version 4594 of 1 entries has been completed in 0.66 ms.\r\nIntelliCode identified 3 likely completion items.\r\n```\r\n\r\n## Code Snippet / Additional lnformation\r\n\r\n\u003c!--\r\nNote: If you think a GIF of what is happening would be helpful, consider tools like https://www.cockos.com/licecap/, https://github.com/phw/peek or https://www.screentogif.com/ .\r\n-->\r\n\r\n```python\r\nfrom torch import nn\r\n\r\nclass Net(nn.Module):\r\n def __init__(self):\r\n super(Net, self).__init__()\r\n self.model = nn.\r\n```\r\n\r\n\r\n","author":{"url":"https://github.com/Salzy","@type":"Person","name":"Salzy"},"datePublished":"2019-11-16T14:45:00Z","url":"https://github.com/microsoft/python-language-server/issues/1799"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:bb32043a-e313-962f-91ba-6d5744b63bd0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8976:2826BD:3FB6C2:534504:6AFE617F |
| html-safe-nonce | 4dbc5e33a5679c5ab35e796c02d862981af37304d449ad0defc6edfd4df9ce6c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTc2OjI4MjZCRDozRkI2QzI6NTM0NTA0OjZBRkU2MTdGIiwidmlzaXRvcl9pZCI6Ijg0NTcwNjg3MjI5MDY5NzU5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dbf3ed2293f497338389df36e350e037f90b834842d63a6d0f8575187c0f66b2 |
| hovercard-subject-tag | issue:523853432 |
| 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/microsoft/python-language-server/1799/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a6f071f487581a72d02716d5a4b6898644ce0c5d6e9e304d55e4e4dcb2b2daa1/microsoft/python-language-server/issues/1799 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a6f071f487581a72d02716d5a4b6898644ce0c5d6e9e304d55e4e4dcb2b2daa1/microsoft/python-language-server/issues/1799 |
| og:image:alt | Environment data Language Server version: 0.4.114.0 OS and version: Debian 10 Python version (& distribution if applicable, e.g. Anaconda): 3.7.3 (Miniconda - CondaForge) PyTorch version: 1.3.0 and... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Salzy |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/python-language-server git https://github.com/microsoft/python-language-server.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 145901977 |
| octolytics-dimension-repository_nwo | microsoft/python-language-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 145901977 |
| octolytics-dimension-repository_network_root_nwo | microsoft/python-language-server |
| 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 | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width