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
I ran into this issue when I'm working with multi-GPU training. Surprisingly, this test failed unexpectedly. The device() returns Cuda(1) after to_device(Cuda(0)). Suppose it an off-by-1 bug?
use tch::{Tensor,Device};#[test]fntest_device(){let x = Tensor::from(1).to_device(Device::Cuda(0));assert_eq!(x.device(), Device::Cuda(0));// actually returns Device::Cuda(1)}
The text was updated successfully, but these errors were encountered:
I ran into this issue when I'm working with multi-GPU training. Surprisingly, this test failed unexpectedly. The
device()
returnsCuda(1)
afterto_device(Cuda(0))
. Suppose it an off-by-1 bug?The text was updated successfully, but these errors were encountered: