Class PruningConfig
- Namespace
- AiDotNet.Interfaces
- Assembly
- AiDotNet.dll
Configuration for pruning operations.
public class PruningConfig
- Inheritance
-
PruningConfig
- Inherited Members
Properties
FineTuneAfterPruning
Whether to fine-tune after pruning.
public bool FineTuneAfterPruning { get; set; }
Property Value
FineTuningEpochs
Number of fine-tuning epochs after pruning.
public int FineTuningEpochs { get; set; }
Property Value
GradualPruning
Whether to use gradual pruning (multiple iterations).
public bool GradualPruning { get; set; }
Property Value
InitialSparsity
Initial sparsity for gradual pruning.
public double InitialSparsity { get; set; }
Property Value
LayerSparsityTargets
Per-layer sparsity targets (layer name → sparsity).
public Dictionary<string, double>? LayerSparsityTargets { get; set; }
Property Value
LayerWiseSparsity
Whether to apply different sparsity per layer (sensitivity-based).
public bool LayerWiseSparsity { get; set; }
Property Value
OutputFormat
Output sparse format for storage.
public SparseFormat OutputFormat { get; set; }
Property Value
Pattern
Sparsity pattern to use.
public SparsityPattern Pattern { get; set; }
Property Value
PruningIterations
Number of pruning iterations for gradual pruning.
public int PruningIterations { get; set; }
Property Value
SparsityM
M value for N:M sparsity (group size).
public int SparsityM { get; set; }
Property Value
SparsityN
N value for N:M sparsity (zeros per group).
public int SparsityN { get; set; }
Property Value
TargetSparsity
Target sparsity level (0.0 to 1.0).
public double TargetSparsity { get; set; }