You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the document, it's a bit misleading. At the start, I think "cannot handle" means something like "requires_grad=False" for the torch tensor passing to the kernel. However, after constructing my own stuffs, I find it surprisingly modify the original value of the torch tensor. Now I understand that "cannot handle" means that if using this way in a differentiable setting, there will definitely be a bug. But there should be some error message for this if such operations are weird.
Here is a minimum test example to show the above problems
shi-eric
changed the title
[BUG] The gradient issue with no error reminder when passing torch tensor into kernal in differentiable setting
[DOCS] The gradient issue with no error reminder when passing torch tensor into kernal in differentiable setting
Dec 13, 2024
Bug Description
Following the document, it's a bit misleading. At the start, I think "cannot handle" means something like "requires_grad=False" for the torch tensor passing to the kernel. However, after constructing my own stuffs, I find it surprisingly modify the original value of the torch tensor. Now I understand that "cannot handle" means that if using this way in a differentiable setting, there will definitely be a bug. But there should be some error message for this if such operations are weird.
Here is a minimum test example to show the above problems
And here is the output
Hope this can help others who misunderstand the document and don't have any reported error messages or warnings
System Information
No response
The text was updated successfully, but these errors were encountered: