Class DeepCompressionMetadata<T>
- Namespace
- AiDotNet.ModelCompression
- Assembly
- AiDotNet.dll
Metadata for Deep Compression containing information from all three stages.
public class DeepCompressionMetadata<T> : ICompressionMetadata<T>
Type Parameters
TThe numeric type.
- Inheritance
-
DeepCompressionMetadata<T>
- Implements
- Inherited Members
Constructors
DeepCompressionMetadata(SparsePruningMetadata<T>, WeightClusteringMetadata<T>, HuffmanEncodingMetadata<T>, int, DeepCompressionStats)
Initializes a new instance of the DeepCompressionMetadata class.
public DeepCompressionMetadata(SparsePruningMetadata<T> pruningMetadata, WeightClusteringMetadata<T> clusteringMetadata, HuffmanEncodingMetadata<T> huffmanMetadata, int originalLength, DeepCompressionStats compressionStats)
Parameters
pruningMetadataSparsePruningMetadata<T>clusteringMetadataWeightClusteringMetadata<T>huffmanMetadataHuffmanEncodingMetadata<T>originalLengthintcompressionStatsDeepCompressionStats
Properties
ClusteringMetadata
Gets the metadata from Stage 2 (Weight Clustering/Quantization).
public WeightClusteringMetadata<T> ClusteringMetadata { get; }
Property Value
CompressionStats
Gets the compression statistics.
public DeepCompressionStats CompressionStats { get; }
Property Value
HuffmanMetadata
Gets the metadata from Stage 3 (Huffman Encoding).
public HuffmanEncodingMetadata<T> HuffmanMetadata { get; }
Property Value
OriginalLength
Gets the original length of the weights array.
public int OriginalLength { get; }
Property Value
PruningMetadata
Gets the metadata from Stage 1 (Pruning).
public SparsePruningMetadata<T> PruningMetadata { get; }
Property Value
Type
Gets the compression type.
public CompressionType Type { get; }
Property Value
Methods
GetMetadataSize()
Gets the size in bytes of this metadata structure.
public long GetMetadataSize()