StackInputLayoutAttribute

Attributes · AiDotNet.Attributes

Declares the tensor layout produced by a model’s preprocessing step and consumed by Layers[0].

Inheritance: Attribute → StackInputLayoutAttribute

How It Works

This is the other half of PreprocessesInputAttribute. The caller-facing TensorLayoutAttribute remains the public input contract; this declaration makes the transformed stack boundary equally explicit so preprocessing cannot become an unchecked exemption. Multiple declarations are allowed when the preprocessing method supports more than one layout.

Constructors

Constructor Summary
StackInputLayoutAttribute(TensorAxis[] axes) Creates a stack-entry layout from its ordered semantic axes.

Properties

Property Summary
TensorAxis[] Axes { get; } The ordered axes delivered to the first layer after preprocessing.
bool BatchOptional { get; set; } Whether the leading batch axis may be omitted.

Methods

Method Summary
bool AcceptsRank(int rank) Whether the declaration accepts rank.