GraphNode

data class GraphNode(val id: String, val operation: Operation, val inputs: List<TensorSpec>, val outputs: List<TensorSpec>, val metadata: Map<String, Any> = emptyMap())(source)

Represents a node in the computational graph containing operation metadata. Each node represents a single operation with its inputs, outputs, and parameters.

Constructors

Link copied to clipboard
constructor(id: String, operation: Operation, inputs: List<TensorSpec>, outputs: List<TensorSpec>, metadata: Map<String, Any> = emptyMap())

Properties

Link copied to clipboard
val id: String

Unique identifier for this node

Link copied to clipboard

Metadata about inputs to this operation

Link copied to clipboard

Additional metadata for this node

Link copied to clipboard

The operation this node represents

Link copied to clipboard

Gets the operation name

Link copied to clipboard

Gets the operation type

Link copied to clipboard

Metadata about outputs from this operation

Functions

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