Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smart tip bug about pytorch in jupyter #12120

Closed
CatNofishing opened this issue Jun 3, 2020 · 3 comments
Closed

Smart tip bug about pytorch in jupyter #12120

CatNofishing opened this issue Jun 3, 2020 · 3 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@CatNofishing
Copy link

CatNofishing commented Jun 3, 2020

Wrong smart tips about torch module

import torch
x=torch.tensor(1.0,requires_grad=True)
for i in range(10):
    y=x**2
    y.backward()
    print(x.grad)

The smart clip hint about the backward method is wrong when you put it in the loop!
image

The correct api is:

image

@CatNofishing CatNofishing added triage-needed Needs assignment to the proper sub-team bug Issue identified by VS Code Team member as probable bug labels Jun 3, 2020
@karthiknadig karthiknadig self-assigned this Jun 3, 2020
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Jun 3, 2020
@karthiknadig
Copy link
Member

@CatNofishing When you place your cursor on the squiggles, what does it show? is it pylint or python? Also, Can you tell us if you are using Jedi or LS.

@CatNofishing
Copy link
Author

I use Jedi , when I place the cursor on squiggles, it shows python.

@karthiknadig
Copy link
Member

We need to switch to newer APIS in Jedi to get the tool tips. This should be addressed when we switch to Jedi LSP. #11995

@ghost ghost removed the triage label Jun 7, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

2 participants