summaryrefslogtreecommitdiff
path: root/candle-core/src/error.rs
diff options
context:
space:
mode:
authorLaurent Mazare <laurent.mazare@gmail.com>2023-07-19 18:11:44 +0200
committerGitHub <noreply@github.com>2023-07-19 17:11:44 +0100
commitad12e20f6bcea00ae93d5294019a10f9f21a77df (patch)
treec62342424f31b1c568482d953fe9b333d0bf4f78 /candle-core/src/error.rs
parente6584476c4883fcb3a192987e11caa3a6feaa66b (diff)
downloadcandle-ad12e20f6bcea00ae93d5294019a10f9f21a77df.tar.gz
candle-ad12e20f6bcea00ae93d5294019a10f9f21a77df.tar.bz2
candle-ad12e20f6bcea00ae93d5294019a10f9f21a77df.zip
Add cpu support for min and max. (#202)
* Add cpu support for min and max. * Add min/max all.
Diffstat (limited to 'candle-core/src/error.rs')
-rw-r--r--candle-core/src/error.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/candle-core/src/error.rs b/candle-core/src/error.rs
index e354b239..4ec639db 100644
--- a/candle-core/src/error.rs
+++ b/candle-core/src/error.rs
@@ -79,6 +79,9 @@ pub enum Error {
nth_shape: Shape,
},
+ #[error("empty tensor for {op}")]
+ EmptyTensor { op: &'static str },
+
// === Device Errors ===
#[error("device mismatch in {op}, lhs: {lhs:?}, rhs: {rhs:?}")]
DeviceMismatchBinaryOp {