mirror of
https://github.com/huggingface/candle.git
synced 2025-06-14 09:57:10 +00:00
Improve error message (#2485)
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user