Expand description
Structured sparsity patterns and pruning for TensorLogic.
Provides magnitude-based and structured pruning to reduce model size while maintaining hardware efficiency through regular sparsity patterns.
Structs§
- Magnitude
Pruner - Magnitude-based pruner: zero out elements with smallest absolute values.
- Pruning
Config - Configuration for the pruning process.
- Sparsity
Stats - Statistics about the sparsity of a pruned tensor.
Enums§
- Pruning
Error - Errors from pruning operations.
- Sparsity
Pattern - Structured sparsity pattern types.
Functions§
- compute_
sparsity - Compute sparsity statistics for an N-D tensor.
- row_
norms - Compute per-row L2 norms for a 2D matrix.