We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I was thinking to detach a variable from gradient computation in ti.kernel.
E.g y = copy(x).detach() f(x) = 5x + 6y I hope df/dx = 5, not 11.
How can I do the above process in py-taichi? Thank you!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I was thinking to detach a variable from gradient computation in ti.kernel.
E.g y = copy(x).detach()
f(x) = 5x + 6y
I hope df/dx = 5, not 11.
How can I do the above process in py-taichi? Thank you!
The text was updated successfully, but these errors were encountered: