-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
'Not supported' exception raised when running AD program. #8363
Comments
And why there will be things like the following code. Note that ray intersection has nothing to do with gradient backpropagation, I just put a dummy intersection function here (you can see color is determinstically computed, def render(self):
for i in field:
it = self.ray_intersection(ray_d, ray_o)
color[i, j] = self.brdf[0].k_d When I comment
Which literally just said nothing! I don't know what is not supported here, no other information is given and I just can't figure out why a seemingly unrelated function could affect the gradient computation, which doesn't make sense at all! Is the AD really useful in Taichi? |
Hi Enigmatisms, I do apologize for the confusing error messages from Taichi.
Notice that we did fixed a bunch of bugs with AD on the master's branch. The easy way to try out might be to install Taichi nightly with: |
Thanks, I will check it out. By the way, when will be version 1.7.0 get released? It's been a long time since version 1.6.0. |
Hi, I've been trying to make my renderer differentiable and it winds up having this exception:
I am using Taichi 1.6.0 on ubuntu 20.04 (with CUDA backend). I am just not sure what could trigger this problem since in my code:
would fail but once the
rdr.render
is moved outside ofTape
everything works (but without valid gradient update). The code I am using is this: Enigmatisms/AdaPT which is too complex to have a minimal reproducing code, so my question is only:cast_bits
operation? Is this operation not differentiable? Where does it get used (in some frequently used functions?)auto_diff.cpp
:TI_NOT_IMPLEMENTED;
. Is this where the exception got thrown?The text was updated successfully, but these errors were encountered: