Expand description
Abstract compute backend for GPU-accelerated operations.
The ComputeBackend trait defines the interface for GPU computation,
allowing higher-level crates (SciRS2, oxionnx, ToRSh, TrustformeRS)
to use GPU acceleration without coupling to specific GPU APIs.
§Architecture
┌─────────────────────────────┐
│ SciRS2 / ToRSh / oxionnx │
│ (consumers) │
└─────────────┬───────────────┘
│ dyn ComputeBackend
┌─────────────▼───────────────┐
│ ComputeBackend │
│ (trait definition) │
└─────────────┬───────────────┘
│
┌─────────────▼───────────────┐
│ CudaBackend / MetalBackend │
│ (concrete impls) │
└─────────────────────────────┘Enums§
- Backend
Error - Error type for backend operations.
- Backend
Transpose - Transpose mode for matrix operations.
- Binary
Op - Element-wise binary operation.
- Reduce
Op - Reduction operation applied along an axis.
- UnaryOp
- Element-wise unary operation.
Traits§
- Compute
Backend - Abstract compute backend trait.
Type Aliases§
- Backend
Result - Result type for backend operations.