BoundInputContract

Models & Types · AiDotNet.NeuralNetworks

A static input manifest after instance configuration and concrete shape are resolved.

Properties

Property Summary
IReadOnlyList<LayerPort> InputPorts { get; }
IReadOnlyList<string> Reasons { get; }
InputContractManifest Manifest { get; }
InputContractReadiness Readiness { get; }
LayerPort PrimaryInput { get; }
string Variant { get; }

Methods

Method Summary
void RequireReady() Throws an actionable error instead of executing an unproved contract.
void Validate(IReadOnlyDictionary<string, Tensor<T>> inputs) Validates named inputs, including required/defaulted ports and shape relations.
void Validate(Tensor<T> input) Validates named inputs, including required/defaulted ports and shape relations.