Float8Extensions
Helpers & Utilities · AiDotNet.MixedPrecision
Provides utility methods for working with FP8 types.
For Beginners
This class provides helper methods to convert between FP8 formats and standard floating-point types, as well as bulk conversion methods for arrays.
Methods
| Method | Summary |
|---|---|
Float8E4M3 ToE4M3(Float8E5M2 value) |
Converts E5M2 to E4M3 (for weights/activations). |
Float8E4M3[] ToE4M3(float[] values) |
Converts E5M2 to E4M3 (for weights/activations). |
Float8E5M2 ToE5M2(Float8E4M3 value) |
Converts E4M3 to E5M2 (for gradients). |
Float8E5M2[] ToE5M2(float[] values) |
Converts E4M3 to E5M2 (for gradients). |
float[] ToFloatArray(Float8E4M3[] values) |
Converts an array of E5M2 values to floats. |
float[] ToFloatArray(Float8E5M2[] values) |
Converts an array of E5M2 values to floats. |