Replies: 1 comment 11 replies
-
There is some information on
So to paraphrase, arguments marked for donation may be used by XLA to make the computation more efficient, in which case the buffers will be marked deleted. The reason you can print the contents of a deleted buffer is I think because of internal cacheing used for printing device arrays that ends up bypassing the deletion check; I would probably consider this a bug. Edit: I just looked and the code path I suspected would lead to this behavior does not. Can you give an example of a short code snippet that reproduces the issue you're seeing? The one in your question does not seem to result in any error. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a setup of the form:
Now, my problem is, when we enter the second loop, I end up getting a
RuntimeError: Invalid argument: DeviceArray has been deleted.
, when the first call tofn2
occurs. I am able to printx
just before enteringfn2
. That means, thatx
has not been deleted, but still it says that it has been deleted. I want to know why?Note: The above example doesn't reproduce the error, and is just representative of the flow of actual computation I am doing.
Any suggestions as to how to debug this are also welcome.
Beta Was this translation helpful? Give feedback.
All reactions