hpt_common/error/mod.rs
1//! Error handling for tensor operations
2//!
3//! This module contains various error types used throughout the tensor library,
4//! organized by their domains (shape, device, memory, kernel, etc.)
5
6/// Autograd-related errors (gradient computation, etc.)
7pub mod autograd;
8/// Base error types and common functionality
9pub mod base;
10/// Common errors
11pub mod common;
12/// Device-related errors (GPU, CPU, etc.)
13pub mod device;
14/// Kernel-related errors (CUDA, etc.)
15pub mod kernel;
16/// Memory allocation and management errors
17pub mod memory;
18/// Parameter-related errors (function arguments, etc.)
19pub mod param;
20/// Random distribution-related errors
21pub mod random;
22/// Shape-related errors (dimension mismatch, broadcasting, etc.)
23pub mod shape;