TensorPortAttribute

Attributes · AiDotNet.Attributes

Declares a layer tensor port once so its runtime metadata, value-domain validation and generated diagnostics cannot drift into separate hand-written implementations.

Inheritance: Attribute → TensorPortAttribute

Constructors

Constructor Summary
TensorPortAttribute(string name, TensorPortDirection direction, LayerInputDomainKind domain) Creates a tensor-port declaration.

Properties

Property Summary
LayerInputDomainKind Domain { get; } Allowed or produced value domain.
TensorPortDirection Direction { get; } Whether this is an input or output port.
TensorPortRole Role { get; set; } Semantic role shown to model and layer authors in diagnostics.
TensorPortSource Source { get; set; } Whether the value is caller-supplied, derived, defaulted or internal.
bool PropagatesInputDomain { get; set; } True only for an identity layer whose output retains the input value domain.
bool Required { get; set; } Whether a named input is mandatory.
int ExactRank { get; set; }
int MaximumRank { get; set; }
int MinimumElementCount { get; set; }
int MinimumRank { get; set; }
int[] AxisDivisors { get; set; }
int[] MinimumAxisSizes { get; set; }
string CustomProviderKey { get; set; } Stable registered provider key.
string DomainResolver { get; set; } Optional method accepting int[]? and returning the complete value domain.
string MaxExclusiveMember { get; set; } Field or property containing the exclusive integer upper bound.
string MaxExclusiveResolver { get; set; } Method accepting int[]? and returning the exclusive integer upper bound.
string Name { get; } Stable port name used by named-forward APIs and diagnostics.
string SameShapeAs { get; set; }
string ShapeMember { get; set; } Optional field/property/method expression supplying this port’s shape.
string StableId { get; set; } Stable identifier retained across display-name changes and inheritance.
string Variant { get; set; } Alternative input signature.