InputContractManifest
Models & Types · AiDotNet.NeuralNetworks
Canonical input schema for a layer or model. Generated tensor-port declarations, runtime
validation and test-data synthesis all consume this single representation.
Constructors
| Constructor |
Summary |
InputContractManifest(string ownerName, IReadOnlyList<LayerPort> inputPorts, IReadOnlyList<LayerPort> outputPorts, ModelInputShapeConstraint shapeConstraint) |
|
Properties
| Property |
Summary |
IReadOnlyList<InputContractVariant> Variants { get; } |
|
IReadOnlyList<LayerPort> InputPorts { get; } |
|
IReadOnlyList<LayerPort> OutputPorts { get; } |
|
ModelInputShapeConstraint ShapeConstraint { get; } |
|
string OwnerName { get; } |
|
Methods
| Method |
Summary |
BoundInputContract Bind(IReadOnlyDictionary<string, int[]> inputShapes, string variant) |
Binds every supplied named input to its own concrete shape. |
BoundInputContract Bind(int[] primaryInputShape, LayerInputDomain? resolvedPrimaryDomain, string variant) |
Binds the default variant to the caller’s concrete primary-input shape. |
string ResolveVariant(IEnumerable<string> suppliedPortNames) |
Selects the one declared variant satisfied by the supplied named ports. |