ModelInputShapeConstraint

Structs ยท AiDotNet.NeuralNetworks

Minimum geometry a generic caller must honor when constructing a model input probe.

Inheritance: ValueType โ†’ ModelInputShapeConstraint

Implements: IEquatable<ModelInputShapeConstraint>

Constructors

Constructor Summary
ModelInputShapeConstraint(int MinimumRank, int MinimumElementCount, int ExactRank, int MaximumRank, IReadOnlyList<int> MinimumAxisSizes, IReadOnlyList<int> AxisDivisors, IReadOnlyList<int> ExactAxisSizes) Minimum geometry a generic caller must honor when constructing a model input probe.

Properties

Property Summary
IReadOnlyList<int> AxisDivisors { get; set; }
IReadOnlyList<int> ExactAxisSizes { get; set; } Per-axis sizes the model accepts and no other, or zero on an axis it leaves free.
IReadOnlyList<int> MinimumAxisSizes { get; set; }
ModelInputShapeConstraint None { get; } No additional constraint.
bool IsConstrained { get; } Whether this declaration adds any constraint.
int ExactRank { get; set; } Required tensor rank, or zero when rank is not exact.
int MaximumRank { get; set; }
int MinimumElementCount { get; set; } Minimum total number of tensor elements.
int MinimumRank { get; set; } Minimum tensor rank, including any batch axis.

Methods

Method Summary
bool Equals(ModelInputShapeConstraint other)
bool Equals(object obj)
bool op_Equality(ModelInputShapeConstraint left, ModelInputShapeConstraint right)
bool op_Inequality(ModelInputShapeConstraint left, ModelInputShapeConstraint right)
int GetHashCode()
string ToString()
void Deconstruct(int MinimumRank, int MinimumElementCount, int ExactRank, int MaximumRank, IReadOnlyList<int> MinimumAxisSizes, IReadOnlyList<int> AxisDivisors, IReadOnlyList<int> ExactAxisSizes)