LayerNode<T>
Helpers & Utilities · AiDotNet.NeuralNetworks.Graph
One layer in a LayerGraph, together with the nodes feeding it and any tensor
transformation applied on the way in.
Constructors
| Constructor |
Summary |
LayerNode(int id, ILayer<T> layer, IReadOnlyList<int> inputs, Func<IReadOnlyList<Tensor<T>>, Tensor<T>> edgeTransform, string edgeDescription) |
Creates a node. |
Properties
| Property |
Summary |
Func<IReadOnlyList<Tensor<T>>, Tensor<T>> EdgeTransform { get; } |
A transformation applied to the incoming tensor before the layer sees it — a reshape, permute or concatenation that is real dataflow but is NOT a layer. |
ILayer<T> Layer { get; } |
The layer this node runs. |
IReadOnlyList<int> Inputs { get; } |
Ids of the nodes feeding this one, in argument order. |
bool HasEdgeTransform { get; } |
True when this node reshapes or otherwise rewrites its input before the layer runs. |
int Id { get; } |
Position of this node in the graph’s node list; also its identity. |
string EdgeDescription { get; } |
Human-readable description of EdgeTransform, for diagnostics. |
Methods
| Method |
Summary |
string ToString() |
|