summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Mazare <laurent.mazare@gmail.com>2024-02-20 19:54:13 +0100
committerGitHub <noreply@github.com>2024-02-20 19:54:13 +0100
commita2cb2edead523f9ee65ddac34f6e1946d52236b3 (patch)
tree999008411b3ba3c7e55135e6379c10a1ceb5b1e0
parentfc67d878bb4a25cbeba361d0a31290f14beb9344 (diff)
downloadcandle-a2cb2edead523f9ee65ddac34f6e1946d52236b3.tar.gz
candle-a2cb2edead523f9ee65ddac34f6e1946d52236b3.tar.bz2
candle-a2cb2edead523f9ee65ddac34f6e1946d52236b3.zip
Add a couple backtraces on cpu errors. (#1738)
-rw-r--r--candle-core/src/cpu_backend.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/candle-core/src/cpu_backend.rs b/candle-core/src/cpu_backend.rs
index 05e8c979..8ae39020 100644
--- a/candle-core/src/cpu_backend.rs
+++ b/candle-core/src/cpu_backend.rs
@@ -2575,7 +2575,7 @@ impl BackendStorage for CpuStorage {
Self::U8(ids) => IndexSelect { ids, ids_l, dim }.map(self, l),
Self::U32(ids) => IndexSelect { ids, ids_l, dim }.map(self, l),
Self::I64(ids) => IndexSelect { ids, ids_l, dim }.map(self, l),
- _ => Err(Error::UnsupportedDTypeForOp(self.dtype(), "index-select")),
+ _ => Err(Error::UnsupportedDTypeForOp(self.dtype(), "index-select").bt()),
}
}
@@ -2584,7 +2584,7 @@ impl BackendStorage for CpuStorage {
Self::U8(ids) => Gather { ids, ids_l, dim }.map(self, l),
Self::U32(ids) => Gather { ids, ids_l, dim }.map(self, l),
Self::I64(ids) => Gather { ids, ids_l, dim }.map(self, l),
- _ => Err(Error::UnsupportedDTypeForOp(self.dtype(), "gather")),
+ _ => Err(Error::UnsupportedDTypeForOp(self.dtype(), "gather").bt()),
}
}
@@ -2601,7 +2601,7 @@ impl BackendStorage for CpuStorage {
Self::U8(ids) => ScatterAdd { ids, ids_l, dim }.map(self, l, src, src_l),
Self::U32(ids) => ScatterAdd { ids, ids_l, dim }.map(self, l, src, src_l),
Self::I64(ids) => ScatterAdd { ids, ids_l, dim }.map(self, l, src, src_l),
- _ => Err(Error::UnsupportedDTypeForOp(self.dtype(), "scatter-add")),
+ _ => Err(Error::UnsupportedDTypeForOp(self.dtype(), "scatter-add").bt()),
}
}