Table of Contents

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

bool

FineTuningEpochs

Number of fine-tuning epochs after pruning.

public int FineTuningEpochs { get; set; }

Property Value

int

GradualPruning

Whether to use gradual pruning (multiple iterations).

public bool GradualPruning { get; set; }

Property Value

bool

InitialSparsity

Initial sparsity for gradual pruning.

public double InitialSparsity { get; set; }

Property Value

double

LayerSparsityTargets

Per-layer sparsity targets (layer name → sparsity).

public Dictionary<string, double>? LayerSparsityTargets { get; set; }

Property Value

Dictionary<string, double>

LayerWiseSparsity

Whether to apply different sparsity per layer (sensitivity-based).

public bool LayerWiseSparsity { get; set; }

Property Value

bool

OutputFormat

Output sparse format for storage.

public SparseFormat OutputFormat { get; set; }

Property Value

SparseFormat

Pattern

Sparsity pattern to use.

public SparsityPattern Pattern { get; set; }

Property Value

SparsityPattern

PruningIterations

Number of pruning iterations for gradual pruning.

public int PruningIterations { get; set; }

Property Value

int

SparsityM

M value for N:M sparsity (group size).

public int SparsityM { get; set; }

Property Value

int

SparsityN

N value for N:M sparsity (zeros per group).

public int SparsityN { get; set; }

Property Value

int

TargetSparsity

Target sparsity level (0.0 to 1.0).

public double TargetSparsity { get; set; }

Property Value

double