ModelInputShapeConstraintAttribute
Attributes ยท AiDotNet.Attributes
Declares minimum fixture geometry from model configuration. The generator exposes the declaration
through NeuralNetworkBase.GetInputShapeConstraint(); test scaffolds consume that shared
contract instead of adding per-model shape overrides.
Inheritance: Attribute โ ModelInputShapeConstraintAttribute
Constructors
| Constructor | Summary |
|---|---|
ModelInputShapeConstraintAttribute() |
Properties
| Property | Summary |
|---|---|
int ExactRank { get; set; } |
Exact external tensor rank. |
int MaximumRank { get; set; } |
Maximum tensor rank accepted by the model. |
int MinimumElementCount { get; set; } |
Constant minimum number of input elements. |
int MinimumRank { get; set; } |
Minimum tensor rank accepted by the model. |
int[] AxisDivisors { get; set; } |
Per-axis divisors. |
int[] MinimumAxisSizes { get; set; } |
Per-axis minimum sizes. |
string MinimumElementCountMember { get; set; } |
Field, property or parameterless method containing the configuration-derived minimum element count. |