LowRankFactorizationMetadata<T>

Models & Types · AiDotNet.ModelCompression

Metadata for Low-Rank Factorization compression.

Implements: ICompressionMetadata<T>

For Beginners

This metadata stores:

  • Matrix dimensions (how the vector was reshaped)
  • Rank used (how many singular values kept)
  • Original length (for reconstruction)

Constructors

Constructor Summary
LowRankFactorizationMetadata(int rows, int cols, int rank, int originalLength) Initializes a new instance of the LowRankFactorizationMetadata class.

Properties

Property Summary
CompressionType Type { get; } Gets the compression type.
int Cols { get; set; } Gets the number of columns in the reshaped matrix.
int OriginalLength { get; set; } Gets the original length of the weights array.
int Rank { get; set; } Gets the rank of the factorization.
int Rows { get; set; } Gets the number of rows in the reshaped matrix.

Methods

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