From 382c6b51af46f3906a191435d198f404f66de95e Mon Sep 17 00:00:00 2001 From: ivnsch Date: Fri, 20 Sep 2024 15:11:41 +0200 Subject: [PATCH] Improve error message (#2485) --- candle-core/src/tensor.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/candle-core/src/tensor.rs b/candle-core/src/tensor.rs index a2c3f4286c..7dd24abf9b 100644 --- a/candle-core/src/tensor.rs +++ b/candle-core/src/tensor.rs @@ -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);