GraphEdge

data class GraphEdge(val id: String, val source: GraphNode, val destination: GraphNode, val sourceOutputIndex: Int = 0, val destinationInputIndex: Int = 0, val tensorSpec: TensorSpec, val metadata: Map<String, Any> = emptyMap())(source)

Represents an edge in the computational graph, connecting two nodes and representing tensor flow between operations.

Constructors

Link copied to clipboard
constructor(id: String, source: GraphNode, destination: GraphNode, sourceOutputIndex: Int = 0, destinationInputIndex: Int = 0, tensorSpec: TensorSpec, metadata: Map<String, Any> = emptyMap())

Properties

Link copied to clipboard

The destination node (consumer of the tensor)

Link copied to clipboard

Gets the destination node ID

Link copied to clipboard

Index of the input to the destination node (for multi-input operations)

Link copied to clipboard
val id: String

Unique identifier for this edge

Link copied to clipboard

Additional metadata for this edge

Link copied to clipboard

The source node (producer of the tensor)

Link copied to clipboard

Gets the source node ID

Link copied to clipboard

Index of the output from the source node (for multi-output operations)

Link copied to clipboard

Gets the tensor data type

Link copied to clipboard

Gets the tensor name

Link copied to clipboard

Gets the tensor shape

Link copied to clipboard

Specification of the tensor flowing through this edge

Functions

Link copied to clipboard
open override fun toString(): String