tenrso-exec
Unified execution API for TenRSo tensor operations.
Overview
tenrso-exec provides the main user-facing API for executing tensor operations:
einsum_ex- Unified einsum contraction interface- TenrsoExecutor trait - Backend abstraction (CPU, GPU)
- Execution hints - Control representation, tiling, masking
- Auto-optimization - Automatic planner integration
All tensor operations (dense, sparse, low-rank) go through this unified interface.
Features
- Single API for all tensor representations
- Automatic optimization via planner
- Memory pooling and device management
- Parallel execution
- Custom execution hints
Usage
[]
= "0.1"
Basic Einsum (TODO: M4)
use ;
// Simple matrix multiplication
let C =
.inputs
.run?;
With Hints (TODO: M4)
// Tensor contraction with optimization hints
let result =
.inputs
.hints
.run?;
Element-wise & Reductions
use ;
let mut exec = new;
// Element-wise operation
let abs_tensor = exec.elem_op?;
// Reduction
let sum = exec.reduce?;
API Reference
Einsum Builder
Execution Hints
Executor Trait
Dependencies
- tenrso-core - Tensor types
- tenrso-kernels - Tensor kernels
- tenrso-sparse - Sparse operations
- tenrso-decomp - Decompositions
- tenrso-planner - Contraction planning
- tenrso-ooc (optional) - Out-of-core support
License
Apache-2.0