mirror of
https://github.com/huggingface/candle.git
synced 2025-06-15 10:26:33 +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()),
|
(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);
|
let op = BackpropOp::new1(self, Op::ToDevice);
|
||||||
|
Reference in New Issue
Block a user