# Figure request F1 toolkit: superfig language: cjk claim: 一次前向是 x → f_θ → ŷ;损失不在主路上。 grammar: pipeline work_rel_dir: figures/F1 ## Roles - {role: input, color: sfTeal} - {role: model, color: sfOrange} - {role: loss, color: sfCoral} - {role: output, color: sfViolet} ## Flow (cursor). \sfconn 没有 endpoints。 stage: {name: SA, text: "推理流程:一次前向"} row: {name: R1, height: 16mm} in_row: - {macro: sfnode, name: x, role: input, label: "输入 $x$", w: 16mm, h: 12mm} - {macro: sfconn, name: e1, label: 预处理} - {macro: sfnode, name: f, role: model, label: "模型 $f_\\theta$", w: 18mm, h: 12mm} - {macro: sfconn, name: e2, label: logits} - {macro: sfnode, name: y, role: output, label: "预测 $\\hat y$", w: 16mm, h: 12mm} ## Fixed topology - {macro: sfnode, name: s, role: loss, label: "损失 $L$", w: 14mm, h: 12mm, at: "($(y.south)+(0,-22mm)$)"} - {macro: sfarrowlabel, from: "y.south", to: "s.north", label: "$L(\\hat y, y)$"}