-
In the runtime reference https://nvidia.github.io/warp/modules/runtime.html#kernels it only mentions
In kernel basics https://nvidia.github.io/warp/basics.html#kernels there is no discussion about Outputs. Instead it says
What is the difference? If I am trying to update an existing array, such as |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The only place that I'm aware of where using |
Beta Was this translation helpful? Give feedback.
The only place that I'm aware of where using
outputs
makes sense is when you're writing kernels that might participate in automatic differentiation. Using both theinputs
andoutputs
keywords can be helpful here to avoid overwrite issues that would result in incorrect gradients. Some of the gradient debugging tools also require the use of theoutputs
keyword. If you aren't using automatic differentiation, then I would just stick withinputs
.