SmoothQuant

Helpers & Utilities · AiDotNet.Tensors.NumericOperations

No summary documentation available yet.

Methods

Method Summary
float[] ComputeSmoothingFactor(ReadOnlySpan<float> activationAbsMax, ReadOnlySpan<float> weightAbsMax, float alpha, float eps)
float[] PerColumnAbsMax(ReadOnlySpan<float> data, int rows, int cols)
void ApplyToActivations(Span<float> activations, int batch, int inC, ReadOnlySpan<float> smoothingFactor)
void ApplyToWeights(Span<float> weights, int outC, int inC, ReadOnlySpan<float> smoothingFactor)