1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! Error type for the PLAID pipeline.
//!
//! A single `PlaidError` enum covers every failure mode the crate
//! surfaces to callers. Variants use `#[from]` where a clean `?`
//! conversion from a foreign error type makes sense, so the hot
//! paths stay free of `map_err` boilerplate.
//!
//! Variants are added incrementally as each module migrates off
//! `unwrap`/`expect`. This commit introduces the enum and the
//! `Tensor` variant for `candle_core::Error` propagation; later
//! commits add `InvalidCodec`, `InvalidIndex`, and `Io`.
use Error;
/// Every failure the PLAID pipeline can surface.
/// Crate-level `Result` alias. Every public function that can fail
/// returns this.
pub type Result<T> = Result;