IInputDomainProvider
Interfaces · AiDotNet.NeuralNetworks
Supplies the complete executable behavior for a user-defined tensor value domain. Requiring all four operations prevents a custom validator from becoming a test-fixture blind spot.
Properties
| Property | Summary |
|---|---|
string Key { get; } |
Stable key referenced by CustomProviderKey declarations. |
Methods
| Method | Summary |
|---|---|
LayerInputDomainCompatibility CompatibilityWith(LayerInputDomain producer) |
Proves whether this consumer accepts a producer domain. |
Tensor<T> CreateInvalid(int[] shape) |
Creates an invalid tensor used to prove the validator’s negative path. |
Tensor<T> CreateNearby(Tensor<T> input, double epsilon) |
Creates a nearby valid tensor without leaving the custom domain. |
Tensor<T> CreateValid(int[] shape, Random random) |
Creates a valid tensor for generated fixtures and tooling. |
void Validate(Tensor<T> input, string ownerName, string portName) |
Validates a tensor, throwing InputContractViolationException on failure. |