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
Passing in a torch.Tensor with the wrong device for the taichi backend into the kernel.grad causes a segmentation fault shown below. Forward pass handles it OK.
Example shows passing a cuda tensor when using arch=ti.cpu, if the tensor is also on cpu the program runs fine.
oliver-batchelor
changed the title
Segmentation fault on kernel.grad
Segmentation fault on kernel.grad (passing in torch.Tensor on wrong device)
Dec 22, 2023
Passing in a torch.Tensor with the wrong device for the taichi backend into the kernel.grad causes a segmentation fault shown below. Forward pass handles it OK.
Example shows passing a cuda tensor when using arch=ti.cpu, if the tensor is also on cpu the program runs fine.
The text was updated successfully, but these errors were encountered: