WeightPrecision Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The precision a model's weights are served at.
public readonly struct WeightPrecision : IEquatable<Azure.ResourceManager.AIInfraOptimization.Models.WeightPrecision>
type WeightPrecision = struct
Public Structure WeightPrecision
Implements IEquatable(Of WeightPrecision)
- Inheritance
-
WeightPrecision
- Implements
Constructors
| Name | Description |
|---|---|
| WeightPrecision(String) |
Initializes a new instance of WeightPrecision. |
Properties
| Name | Description |
|---|---|
| BF16 |
16-bit brain floating point. |
| FP16 |
16-bit floating point. |
| FP32 |
32-bit floating point. |
| FP4 |
4-bit floating point. |
| FP8 |
8-bit floating point. |
| Int4 |
4-bit integer. |
| Int8 |
8-bit integer. |
Methods
| Name | Description |
|---|---|
| Equals(WeightPrecision) |
Indicates whether the current object is equal to another object of the same type. |
| ToString() |
Returns the fully qualified type name of this instance. |
Operators
| Name | Description |
|---|---|
| Equality(WeightPrecision, WeightPrecision) |
Determines if two WeightPrecision values are the same. |
| Implicit(String to Nullable<WeightPrecision>) | |
| Implicit(String to WeightPrecision) |
Converts a string to a WeightPrecision. |
| Inequality(WeightPrecision, WeightPrecision) |
Determines if two WeightPrecision values are not the same. |