{
  "format": "tensorviz.graph",
  "version": 3,
  "exportedAt": "2026-11-04T18:44:54.780025+00:00",
  "status": "traced",
  "warningCount": 0,
  "document": {
    "schemaVersion": 2,
    "semantic": {
      "graph_id": "snapshot",
      "name": "TwoTowerFusion",
      "revision": 0,
      "nodes": [
        {
          "node_id": "input",
          "kind": "input",
          "op": "Input",
          "params": {
            "name": "Input",
            "shape": "1,64"
          },
          "in_ports": [],
          "out_ports": [
            "y"
          ],
          "metadata": {
            "layerType": {
              "id": "input",
              "name": "Input",
              "displayName": "Input",
              "description": "Model input node",
              "icon": "ArrowRight",
              "category": "io",
              "parameters": [
                {
                  "name": "shape",
                  "type": "string",
                  "defaultValue": "1,3,224,224",
                  "required": true,
                  "description": "Input tensor shape (comma-separated, e.g., 1,3,224,224)"
                },
                {
                  "name": "name",
                  "type": "string",
                  "defaultValue": "input",
                  "required": false,
                  "description": "Name for this input"
                }
              ]
            },
            "shapeEvidence": "unknown"
          }
        },
        {
          "node_id": "block",
          "kind": "module",
          "op": "Module",
          "params": {},
          "in_ports": [
            "x"
          ],
          "out_ports": [
            "y"
          ],
          "metadata": {
            "layerType": {
              "id": "module",
              "name": "Module",
              "displayName": "Module",
              "description": "Custom module group (nn.Module)",
              "icon": "Package",
              "category": "module",
              "parameters": [
                {
                  "name": "name",
                  "type": "string",
                  "defaultValue": "CustomModule",
                  "required": true,
                  "description": "Module class name"
                },
                {
                  "name": "description",
                  "type": "string",
                  "defaultValue": "",
                  "required": false,
                  "description": "Module description"
                }
              ]
            },
            "moduleInstanceId": "block",
            "moduleTemplateId": "FusionBlock",
            "isGroup": true,
            "inputShape": [
              1,
              64
            ],
            "outputShape": [
              1,
              16
            ],
            "shapeEvidence": "measured",
            "parameterCount": 20560,
            "outputTensor": {
              "shape": [
                1,
                16
              ],
              "dtype": "float32",
              "logicalBytes": 64
            },
            "moduleMembers": [
              "block.fuse",
              "block.left",
              "block.right"
            ],
            "moduleLayerCount": 3
          }
        },
        {
          "node_id": "block.fuse",
          "kind": "layer",
          "op": "Bilinear",
          "params": {
            "in1_features": 32,
            "in2_features": 32,
            "out_features": 16
          },
          "in_ports": [
            "x"
          ],
          "out_ports": [
            "y"
          ],
          "metadata": {
            "layerType": {
              "id": "bilinear",
              "name": "Bilinear",
              "displayName": "Bilinear",
              "description": "Bilinear transformation of two inputs: y = x1^T A x2 + b",
              "icon": "GitMerge",
              "category": "linear",
              "parameters": [
                {
                  "name": "in1_features",
                  "type": "number",
                  "defaultValue": 128,
                  "required": true,
                  "description": "Size of first input",
                  "min": 1
                },
                {
                  "name": "in2_features",
                  "type": "number",
                  "defaultValue": 128,
                  "required": true,
                  "description": "Size of second input",
                  "min": 1
                },
                {
                  "name": "out_features",
                  "type": "number",
                  "defaultValue": 64,
                  "required": true,
                  "description": "Size of output",
                  "min": 1
                },
                {
                  "name": "bias",
                  "type": "boolean",
                  "defaultValue": true,
                  "required": false,
                  "description": "If True, adds a learnable bias"
                }
              ]
            },
            "parentId": "block",
            "inputShape": [
              1,
              32
            ],
            "outputShape": [
              1,
              16
            ],
            "shapeEvidence": "measured",
            "parameterCount": 16400,
            "outputTensor": {
              "shape": [
                1,
                16
              ],
              "dtype": "float32",
              "logicalBytes": 64
            },
            "repeatCount": 16
          }
        },
        {
          "node_id": "block.left",
          "kind": "layer",
          "op": "Linear",
          "params": {
            "in_features": 64,
            "out_features": 32
          },
          "in_ports": [
            "x"
          ],
          "out_ports": [
            "y"
          ],
          "metadata": {
            "layerType": {
              "id": "linear",
              "name": "Linear",
              "displayName": "Linear",
              "description": "Fully Connected Layer",
              "icon": "Minus",
              "category": "linear",
              "parameters": [
                {
                  "name": "in_features",
                  "type": "number",
                  "defaultValue": 512,
                  "required": true,
                  "description": "Size of input features",
                  "min": 1
                },
                {
                  "name": "out_features",
                  "type": "number",
                  "defaultValue": 256,
                  "required": true,
                  "description": "Size of output features",
                  "min": 1
                },
                {
                  "name": "bias",
                  "type": "boolean",
                  "defaultValue": true,
                  "required": false,
                  "description": "If set to False, the layer will not learn an additive bias"
                }
              ]
            },
            "parentId": "block",
            "inputShape": [
              1,
              64
            ],
            "outputShape": [
              1,
              32
            ],
            "shapeEvidence": "measured",
            "parameterCount": 2080,
            "outputTensor": {
              "shape": [
                1,
                32
              ],
              "dtype": "float32",
              "logicalBytes": 128
            }
          }
        },
        {
          "node_id": "block.right",
          "kind": "layer",
          "op": "Linear",
          "params": {
            "in_features": 64,
            "out_features": 32
          },
          "in_ports": [
            "x"
          ],
          "out_ports": [
            "y"
          ],
          "metadata": {
            "layerType": {
              "id": "linear",
              "name": "Linear",
              "displayName": "Linear",
              "description": "Fully Connected Layer",
              "icon": "Minus",
              "category": "linear",
              "parameters": [
                {
                  "name": "in_features",
                  "type": "number",
                  "defaultValue": 512,
                  "required": true,
                  "description": "Size of input features",
                  "min": 1
                },
                {
                  "name": "out_features",
                  "type": "number",
                  "defaultValue": 256,
                  "required": true,
                  "description": "Size of output features",
                  "min": 1
                },
                {
                  "name": "bias",
                  "type": "boolean",
                  "defaultValue": true,
                  "required": false,
                  "description": "If set to False, the layer will not learn an additive bias"
                }
              ]
            },
            "parentId": "block",
            "inputShape": [
              1,
              64
            ],
            "outputShape": [
              1,
              32
            ],
            "shapeEvidence": "measured",
            "parameterCount": 2080,
            "outputTensor": {
              "shape": [
                1,
                32
              ],
              "dtype": "float32",
              "logicalBytes": 128
            }
          }
        },
        {
          "node_id": "output",
          "kind": "output",
          "op": "Output",
          "params": {
            "name": "Output",
            "shape": "1,16"
          },
          "in_ports": [
            "x"
          ],
          "out_ports": [],
          "metadata": {
            "layerType": {
              "id": "output",
              "name": "Output",
              "displayName": "Output",
              "description": "Model output node",
              "icon": "ArrowLeft",
              "category": "io",
              "parameters": [
                {
                  "name": "name",
                  "type": "string",
                  "defaultValue": "output",
                  "required": false,
                  "description": "Name for this output"
                }
              ]
            },
            "outputShape": [
              1,
              16
            ],
            "shapeEvidence": "measured",
            "outputTensor": {
              "shape": [
                1,
                16
              ],
              "dtype": "float32",
              "logicalBytes": 64
            }
          }
        }
      ],
      "edges": [
        {
          "edge_id": "edge-1",
          "source_node_id": "block.left",
          "target_node_id": "block.fuse",
          "source_port": "y",
          "target_port": "x",
          "metadata": {}
        },
        {
          "edge_id": "edge-2",
          "source_node_id": "block.right",
          "target_node_id": "block.fuse",
          "source_port": "y",
          "target_port": "x",
          "metadata": {}
        },
        {
          "edge_id": "edge-3",
          "source_node_id": "input",
          "target_node_id": "block.left",
          "source_port": "y",
          "target_port": "x",
          "metadata": {}
        },
        {
          "edge_id": "edge-4",
          "source_node_id": "input",
          "target_node_id": "block.right",
          "source_port": "y",
          "target_port": "x",
          "metadata": {}
        },
        {
          "edge_id": "edge-5",
          "source_node_id": "input",
          "target_node_id": "block",
          "source_port": "y",
          "target_port": "x",
          "metadata": {}
        },
        {
          "edge_id": "edge-6",
          "source_node_id": "block",
          "target_node_id": "output",
          "source_port": "y",
          "target_port": "x",
          "metadata": {}
        }
      ],
      "inputs": [],
      "modules": [],
      "operations": [],
      "metadata": {}
    },
    "view": {
      "graph_id": "snapshot",
      "node_positions": {
        "input": {
          "x": 200,
          "y": 0
        },
        "block": {
          "x": 0,
          "y": 168
        },
        "block.fuse": {
          "x": 200,
          "y": 340
        },
        "block.left": {
          "x": 40,
          "y": 72
        },
        "block.right": {
          "x": 360,
          "y": 72
        },
        "output": {
          "x": 200,
          "y": 860
        }
      },
      "collapsed_modules": [],
      "selection": [],
      "layout": {}
    }
  },
  "snapshotId": "snapshot-791dfa63c3428425",
  "collaboration": {
    "walkthrough": {
      "title": "Two paths, one representation",
      "steps": [
        {
          "id": "overview",
          "title": "Inside the fusion block",
          "note": "Two linear projections feed a bilinear fusion. Recorded input 1 × 64; output 1 × 16.",
          "anchors": [
            {
              "target": {
                "kind": "node",
                "nodeId": "input"
              },
              "snapshotId": "snapshot-791dfa63c3428425",
              "exportedAt": "2026-11-04T18:44:54.780025+00:00",
              "modelName": "TwoTowerFusion",
              "context": "{\"connections\":[\"{\\\"kind\\\":\\\"edge\\\",\\\"source\\\":\\\"input\\\",\\\"sourcePort\\\":\\\"y\\\",\\\"target\\\":\\\"block\\\",\\\"targetPort\\\":\\\"x\\\"}\",\"{\\\"kind\\\":\\\"edge\\\",\\\"source\\\":\\\"input\\\",\\\"sourcePort\\\":\\\"y\\\",\\\"target\\\":\\\"block.left\\\",\\\"targetPort\\\":\\\"x\\\"}\",\"{\\\"kind\\\":\\\"edge\\\",\\\"source\\\":\\\"input\\\",\\\"sourcePort\\\":\\\"y\\\",\\\"target\\\":\\\"block.right\\\",\\\"targetPort\\\":\\\"x\\\"}\"],\"contents\":[],\"node\":{\"id\":\"input\",\"kind\":\"input\",\"op\":\"Input\",\"params\":{\"name\":\"Input\",\"shape\":\"1,64\"}}}"
            },
            {
              "target": {
                "kind": "node",
                "nodeId": "block"
              },
              "snapshotId": "snapshot-791dfa63c3428425",
              "exportedAt": "2026-11-04T18:44:54.780025+00:00",
              "modelName": "TwoTowerFusion",
              "context": "{\"connections\":[\"{\\\"kind\\\":\\\"edge\\\",\\\"source\\\":\\\"block\\\",\\\"sourcePort\\\":\\\"y\\\",\\\"target\\\":\\\"output\\\",\\\"targetPort\\\":\\\"x\\\"}\",\"{\\\"kind\\\":\\\"edge\\\",\\\"source\\\":\\\"block.left\\\",\\\"sourcePort\\\":\\\"y\\\",\\\"target\\\":\\\"block.fuse\\\",\\\"targetPort\\\":\\\"x\\\"}\",\"{\\\"kind\\\":\\\"edge\\\",\\\"source\\\":\\\"block.right\\\",\\\"sourcePort\\\":\\\"y\\\",\\\"target\\\":\\\"block.fuse\\\",\\\"targetPort\\\":\\\"x\\\"}\",\"{\\\"kind\\\":\\\"edge\\\",\\\"source\\\":\\\"input\\\",\\\"sourcePort\\\":\\\"y\\\",\\\"target\\\":\\\"block\\\",\\\"targetPort\\\":\\\"x\\\"}\",\"{\\\"kind\\\":\\\"edge\\\",\\\"source\\\":\\\"input\\\",\\\"sourcePort\\\":\\\"y\\\",\\\"target\\\":\\\"block.left\\\",\\\"targetPort\\\":\\\"x\\\"}\",\"{\\\"kind\\\":\\\"edge\\\",\\\"source\\\":\\\"input\\\",\\\"sourcePort\\\":\\\"y\\\",\\\"target\\\":\\\"block.right\\\",\\\"targetPort\\\":\\\"x\\\"}\"],\"contents\":[\"{\\\"id\\\":\\\"block.fuse\\\",\\\"inputShape\\\":[1,32],\\\"kind\\\":\\\"layer\\\",\\\"op\\\":\\\"Bilinear\\\",\\\"outputShape\\\":[1,16],\\\"params\\\":{\\\"in1_features\\\":32,\\\"in2_features\\\":32,\\\"out_features\\\":16},\\\"parent\\\":\\\"block\\\"}\",\"{\\\"id\\\":\\\"block.left\\\",\\\"inputShape\\\":[1,64],\\\"kind\\\":\\\"layer\\\",\\\"op\\\":\\\"Linear\\\",\\\"outputShape\\\":[1,32],\\\"params\\\":{\\\"in_features\\\":64,\\\"out_features\\\":32},\\\"parent\\\":\\\"block\\\"}\",\"{\\\"id\\\":\\\"block.right\\\",\\\"inputShape\\\":[1,64],\\\"kind\\\":\\\"layer\\\",\\\"op\\\":\\\"Linear\\\",\\\"outputShape\\\":[1,32],\\\"params\\\":{\\\"in_features\\\":64,\\\"out_features\\\":32},\\\"parent\\\":\\\"block\\\"}\"],\"node\":{\"id\":\"block\",\"inputShape\":[1,64],\"kind\":\"module\",\"op\":\"Module\",\"outputShape\":[1,16],\"params\":{}}}"
            },
            {
              "target": {
                "kind": "node",
                "nodeId": "output"
              },
              "snapshotId": "snapshot-791dfa63c3428425",
              "exportedAt": "2026-11-04T18:44:54.780025+00:00",
              "modelName": "TwoTowerFusion",
              "context": "{\"connections\":[\"{\\\"kind\\\":\\\"edge\\\",\\\"source\\\":\\\"block\\\",\\\"sourcePort\\\":\\\"y\\\",\\\"target\\\":\\\"output\\\",\\\"targetPort\\\":\\\"x\\\"}\"],\"contents\":[],\"node\":{\"id\":\"output\",\"kind\":\"output\",\"op\":\"Output\",\"outputShape\":[1,16],\"params\":{\"name\":\"Output\",\"shape\":\"1,16\"}}}"
            }
          ],
          "view": {
            "camera": {
              "x": 0,
              "y": 0,
              "z": 0.8
            },
            "viewport": {
              "width": 1200,
              "height": 800
            },
            "nodePositions": {
              "input": {
                "x": 200,
                "y": 0
              },
              "block": {
                "x": 0,
                "y": 168
              },
              "output": {
                "x": 200,
                "y": 860
              },
              "block.left": {
                "x": 40,
                "y": 72
              },
              "block.right": {
                "x": 360,
                "y": 72
              },
              "block.fuse": {
                "x": 200,
                "y": 340
              }
            },
            "expandedModuleIds": [
              "block"
            ],
            "selectedNodeIds": [
              "input",
              "block",
              "output"
            ]
          }
        }
      ]
    },
    "threads": [],
    "savedViews": [
      {
        "id": "overview",
        "title": "Inside the fusion block",
        "note": "Two linear projections feed a bilinear fusion. Recorded input 1 × 64; output 1 × 16.",
        "anchors": [
          {
            "target": {
              "kind": "node",
              "nodeId": "input"
            },
            "snapshotId": "snapshot-791dfa63c3428425",
            "exportedAt": "2026-11-04T18:44:54.780025+00:00",
            "modelName": "TwoTowerFusion",
            "context": "{\"connections\":[\"{\\\"kind\\\":\\\"edge\\\",\\\"source\\\":\\\"input\\\",\\\"sourcePort\\\":\\\"y\\\",\\\"target\\\":\\\"block\\\",\\\"targetPort\\\":\\\"x\\\"}\",\"{\\\"kind\\\":\\\"edge\\\",\\\"source\\\":\\\"input\\\",\\\"sourcePort\\\":\\\"y\\\",\\\"target\\\":\\\"block.left\\\",\\\"targetPort\\\":\\\"x\\\"}\",\"{\\\"kind\\\":\\\"edge\\\",\\\"source\\\":\\\"input\\\",\\\"sourcePort\\\":\\\"y\\\",\\\"target\\\":\\\"block.right\\\",\\\"targetPort\\\":\\\"x\\\"}\"],\"contents\":[],\"node\":{\"id\":\"input\",\"kind\":\"input\",\"op\":\"Input\",\"params\":{\"name\":\"Input\",\"shape\":\"1,64\"}}}"
          },
          {
            "target": {
              "kind": "node",
              "nodeId": "block"
            },
            "snapshotId": "snapshot-791dfa63c3428425",
            "exportedAt": "2026-11-04T18:44:54.780025+00:00",
            "modelName": "TwoTowerFusion",
            "context": "{\"connections\":[\"{\\\"kind\\\":\\\"edge\\\",\\\"source\\\":\\\"block\\\",\\\"sourcePort\\\":\\\"y\\\",\\\"target\\\":\\\"output\\\",\\\"targetPort\\\":\\\"x\\\"}\",\"{\\\"kind\\\":\\\"edge\\\",\\\"source\\\":\\\"block.left\\\",\\\"sourcePort\\\":\\\"y\\\",\\\"target\\\":\\\"block.fuse\\\",\\\"targetPort\\\":\\\"x\\\"}\",\"{\\\"kind\\\":\\\"edge\\\",\\\"source\\\":\\\"block.right\\\",\\\"sourcePort\\\":\\\"y\\\",\\\"target\\\":\\\"block.fuse\\\",\\\"targetPort\\\":\\\"x\\\"}\",\"{\\\"kind\\\":\\\"edge\\\",\\\"source\\\":\\\"input\\\",\\\"sourcePort\\\":\\\"y\\\",\\\"target\\\":\\\"block\\\",\\\"targetPort\\\":\\\"x\\\"}\",\"{\\\"kind\\\":\\\"edge\\\",\\\"source\\\":\\\"input\\\",\\\"sourcePort\\\":\\\"y\\\",\\\"target\\\":\\\"block.left\\\",\\\"targetPort\\\":\\\"x\\\"}\",\"{\\\"kind\\\":\\\"edge\\\",\\\"source\\\":\\\"input\\\",\\\"sourcePort\\\":\\\"y\\\",\\\"target\\\":\\\"block.right\\\",\\\"targetPort\\\":\\\"x\\\"}\"],\"contents\":[\"{\\\"id\\\":\\\"block.fuse\\\",\\\"inputShape\\\":[1,32],\\\"kind\\\":\\\"layer\\\",\\\"op\\\":\\\"Bilinear\\\",\\\"outputShape\\\":[1,16],\\\"params\\\":{\\\"in1_features\\\":32,\\\"in2_features\\\":32,\\\"out_features\\\":16},\\\"parent\\\":\\\"block\\\"}\",\"{\\\"id\\\":\\\"block.left\\\",\\\"inputShape\\\":[1,64],\\\"kind\\\":\\\"layer\\\",\\\"op\\\":\\\"Linear\\\",\\\"outputShape\\\":[1,32],\\\"params\\\":{\\\"in_features\\\":64,\\\"out_features\\\":32},\\\"parent\\\":\\\"block\\\"}\",\"{\\\"id\\\":\\\"block.right\\\",\\\"inputShape\\\":[1,64],\\\"kind\\\":\\\"layer\\\",\\\"op\\\":\\\"Linear\\\",\\\"outputShape\\\":[1,32],\\\"params\\\":{\\\"in_features\\\":64,\\\"out_features\\\":32},\\\"parent\\\":\\\"block\\\"}\"],\"node\":{\"id\":\"block\",\"inputShape\":[1,64],\"kind\":\"module\",\"op\":\"Module\",\"outputShape\":[1,16],\"params\":{}}}"
          },
          {
            "target": {
              "kind": "node",
              "nodeId": "output"
            },
            "snapshotId": "snapshot-791dfa63c3428425",
            "exportedAt": "2026-11-04T18:44:54.780025+00:00",
            "modelName": "TwoTowerFusion",
            "context": "{\"connections\":[\"{\\\"kind\\\":\\\"edge\\\",\\\"source\\\":\\\"block\\\",\\\"sourcePort\\\":\\\"y\\\",\\\"target\\\":\\\"output\\\",\\\"targetPort\\\":\\\"x\\\"}\"],\"contents\":[],\"node\":{\"id\":\"output\",\"kind\":\"output\",\"op\":\"Output\",\"outputShape\":[1,16],\"params\":{\"name\":\"Output\",\"shape\":\"1,16\"}}}"
          }
        ],
        "view": {
          "camera": {
            "x": 0,
            "y": 0,
            "z": 0.8
          },
          "viewport": {
            "width": 1200,
            "height": 800
          },
          "nodePositions": {
            "input": {
              "x": 200,
              "y": 0
            },
            "block": {
              "x": 0,
              "y": 168
            },
            "output": {
              "x": 200,
              "y": 860
            },
            "block.left": {
              "x": 40,
              "y": 72
            },
            "block.right": {
              "x": 360,
              "y": 72
            },
            "block.fuse": {
              "x": 200,
              "y": 340
            }
          },
          "expandedModuleIds": [
            "block"
          ],
          "selectedNodeIds": [
            "input",
            "block",
            "output"
          ]
        }
      }
    ],
    "openingViewId": "overview"
  }
}
