-
Notifications
You must be signed in to change notification settings - Fork 44
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
Weird variable leak issue #87
Comments
Yes this is a know issue, I am looking into this right now. Should be fixed soon. |
Did you find out why you were getting the error before the commit? I'm getting the same thing, I enabled gradient on a single scene parameter (that I reduced to using params.keep(r'...')), called mi.render(scene, params) and the output has gradients enabled, but if I do dr.backward on the output of mi.render it gives me the variable leak error |
Unfortunately no :S |
I have same problem, I step by step finish PyTorch and Mitsuba interoperability case,but I found save to .ipynb,there no problem,but save to .py the problem produce. why happen these problem?It's been bothering me for a long time, anyone can give me some hints of the problem the problem below
|
Does this happen when you're script finishes? This is nothing to worry about. The Python shutdown sequence is rather complex and some Dr.Jit variables get freed in an undesired order, hence the warning message. (It only happens in the Python script and not in the notebook as the notebook's kernel keeps running even once you've executed all cells.) |
Thank you for your quick reply again , made me less worried about it. |
Is there a particular module(s) that would be easy enough to manually |
Hi @skyler14 This is the main module that you would want to isolate, I think: |
Priori to the following commit: 6cf418c
I'd get
Now it has become a scarier error:
Should I be worried?
Unfortunately since I don't even know why I used to have a leak even before the commit, it's quite hard to obtain a small reproducible codebase.
Update
I reran the tutorial on NeRF (concatenating everything inside a single script, and getting the same error)
The text was updated successfully, but these errors were encountered: