Skip to content

Commit

Permalink
Improve error message (huggingface#2485)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivnsch authored Sep 20, 2024
1 parent 6eea45a commit 382c6b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion candle-core/src/tensor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 382c6b5

Please sign in to comment.