-
Notifications
You must be signed in to change notification settings - Fork 645
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
RuntimeError: Cannot access data pointer of Tensor that doesn't have storage When I used the opacus package #7090
Comments
|
Hi! |
I was very suprised to your reply, and thanks your advice, here is my code, I hope you can run it and see where the problem lies.
|
Hi @will-last , I'm not being able to replicate your issue, probably due to some package version differences. Can you please post:
Thanks! |
I was so sorry for my carelessness, here are information =================================== Name: PennyLane Platform info: Windows-10-10.0.18363-SP0
======================================== |
Hi @will-last, I'm still having some issues replicating your error. Can you please share your full error traceback? |
Traceback (most recent call last): |
Hi @will-last , thanks for sharing your full error traceback. From the error I can see that part of the process is being handled in the CPU while part of it is being handled on the GPU. This seems similar to the error described in PennyLane Forum thread 4367. There you can see that the solution was to add I noticed that you don't have Edit: I noticed that this looks a lot like this PyTorch issue. So if using |
Thanks your advice, I will try to find other solution. |
Hello, I confused recently when i used the opacus package to apply differential privacy to my quantum model, when i used "loss.backward()", it happened RuntimeError: Cannot access data pointer of Tensor that doesn't have storage, which led me couldn't use the opacus, who can help me, thanks
The text was updated successfully, but these errors were encountered: