diff options
author | ivnsch <ivanschuetz@gmail.com> | 2024-09-20 15:11:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-20 07:11:41 -0600 |
commit | 382c6b51af46f3906a191435d198f404f66de95e (patch) | |
tree | 510c228f9147d3d60c65fe0e32a17922901d43b5 /candle-core | |
parent | 6eea45a761fc1636b5e8012d02bdaa93321652ca (diff) | |
download | candle-382c6b51af46f3906a191435d198f404f66de95e.tar.gz candle-382c6b51af46f3906a191435d198f404f66de95e.tar.bz2 candle-382c6b51af46f3906a191435d198f404f66de95e.zip |
Improve error message (#2485)
Diffstat (limited to 'candle-core')
-rw-r--r-- | candle-core/src/tensor.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/candle-core/src/tensor.rs b/candle-core/src/tensor.rs index a2c3f428..7dd24abf 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); |