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
How do we write the Force operator as separate operations?
code.Paint() for d in range(3): code.MeshForce(d) code.ReadOut(d, acc='acc')
The problem is acc is modified in place, and we need to save three copies on the tape, each of which 2/3 is not useful.
code.Paint() for d in range(3): code.MeshForce(d) code.ReadOut(d, acc='acc-%d' % d) code.Concatenate(src=['acc-%d' for d in range(3)], out='acc')
This is cleaner on the tape, but require us to be able to handle list of arguments, and require us to be aware of types of arguments.
The text was updated successfully, but these errors were encountered:
The first approach may work, if we do not need acc in gradients.
Sorry, something went wrong.
No branches or pull requests
How do we write the Force operator as separate operations?
The problem is acc is modified in place, and we need to save three copies on the tape, each of which 2/3 is not useful.
This is cleaner on the tape, but require us to be able to handle list of arguments, and require us to be aware of types of arguments.
The text was updated successfully, but these errors were encountered: