PortShapeConstraint

Layers · AiDotNet.NeuralNetworks.Layers

A small, decidable shape language shared by generated contracts, runtime validation and test synthesis. Zero-valued limits mean unconstrained.

Implements: IEquatable<PortShapeConstraint>

Constructors

Constructor Summary
PortShapeConstraint()

Properties

Property Summary
IReadOnlyList<int> AxisDivisors { get; set; } Per-axis divisors.
IReadOnlyList<int> MinimumAxisSizes { get; set; } Per-axis minimum sizes.
PortShapeConstraint None { get; } No extra shape restriction.
bool IsConstrained { get; }
int ExactRank { get; set; }
int MaximumRank { get; set; }
int MinimumElementCount { get; set; }
int MinimumRank { get; set; }
string SameShapeAs { get; set; } Optional port whose complete shape must match this port.

Methods

Method Summary
PortShapeConstraint <Clone>$()
bool Equals(PortShapeConstraint other)
bool Equals(object obj)
bool op_Equality(PortShapeConstraint left, PortShapeConstraint right)
bool op_Inequality(PortShapeConstraint left, PortShapeConstraint right)
int GetHashCode()
string ToString()