use alloc::string::String;
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum Error {
#[error(transparent)]
Tensor(#[from] TensorError),
#[error("{0}")]
Device(String),
}
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum TensorError {
#[error("invalid shape: {0}")]
InvalidShape(String),
}