Improve error message (#2485)
This commit is contained in:
parent
6eea45a761
commit
382c6b51af
|
@ -2025,7 +2025,11 @@ impl Tensor {
|
|||
}
|
||||
(Storage::Cpu(storage), Device::Cpu) => Storage::Cpu(storage.clone()),
|
||||
_ => {
|
||||
bail!("not implemented yet")
|
||||
bail!(
|
||||
"not implemented yet, self.device: {:?}, device: {:?}",
|
||||
self.device(),
|
||||
device
|
||||
)
|
||||
}
|
||||
};
|
||||
let op = BackpropOp::new1(self, Op::ToDevice);
|
||||
|
|
Loading…
Reference in New Issue