DeepCompressionMetadata<T>

Models & Types · AiDotNet.ModelCompression

Metadata for Deep Compression containing information from all three stages.

Implements: ICompressionMetadata<T>

Constructors

Constructor Summary
DeepCompressionMetadata(SparsePruningMetadata<T> pruningMetadata, WeightClusteringMetadata<T> clusteringMetadata, HuffmanEncodingMetadata<T> huffmanMetadata, int originalLength, DeepCompressionStats compressionStats) Initializes a new instance of the DeepCompressionMetadata class.

Properties

Property Summary
CompressionType Type { get; } Gets the compression type.
DeepCompressionStats CompressionStats { get; } Gets the compression statistics.
HuffmanEncodingMetadata<T> HuffmanMetadata { get; } Gets the metadata from Stage 3 (Huffman Encoding).
SparsePruningMetadata<T> PruningMetadata { get; } Gets the metadata from Stage 1 (Pruning).
WeightClusteringMetadata<T> ClusteringMetadata { get; } Gets the metadata from Stage 2 (Weight Clustering/Quantization).
int OriginalLength { get; } Gets the original length of the weights array.

Methods

Method Summary
long GetMetadataSize() Gets the size in bytes of this metadata structure.