torch
    Preparing search index...

    Interface GraphNode

    A graph node in the exported program, matching PyTorch's FX node format.

    interface GraphNode {
        args: (string | string[])[];
        name: string;
        op: "placeholder" | "call_function" | "output";
        target: string;
        val_shape?: number[];
    }
    Index

    Properties

    args: (string | string[])[]

    References to input node names

    name: string

    Unique name for this node (e.g. "add", "linear_1")

    op: "placeholder" | "call_function" | "output"

    Node type: 'placeholder' for inputs/params, 'call_function' for ops, 'output' for result

    target: string

    Operation target (e.g. "aten.add.default")

    val_shape?: number[]

    Output tensor shape, if available