Skip to content

What is the difference between Kernel Input and Output? #348

Answered by shi-eric
cadop asked this question in Q&A
Discussion options

You must be logged in to vote

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 the inputs and outputs 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 the outputs keyword. If you aren't using automatic differentiation, then I would just stick with inputs.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cadop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants