mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-04-30 01:29:07 -05:00
Refactor Foundation tier layout into two rows
- Split Foundation modules (01-08) into two rows of 4 nodes each - Row 1: 01 Tensor -> 04 Losses - Row 2: 05 DataLoad -> 08 Training - Connect end of Row 1 to start of Row 2 with a wrapped arrow - Center 'FOUNDATION' label over the new two-row layout
This commit is contained in:
@@ -59,11 +59,14 @@
|
||||
]
|
||||
|
||||
% === FOUNDATION TIER (01-08) ===
|
||||
% Row 1
|
||||
\node[foundation] (T) {01 Tensor};
|
||||
\node[foundation, right=of T] (A) {02 Activ.};
|
||||
\node[foundation, right=of A] (L) {03 Layers};
|
||||
\node[foundation, right=of L] (Loss) {04 Losses};
|
||||
\node[foundation, right=of Loss] (Data) {05 DataLoad.};
|
||||
|
||||
% Row 2 - positioned below Row 1
|
||||
\node[foundation, below=0.6cm of T] (Data) {05 DataLoad.};
|
||||
\node[foundation, right=of Data] (Auto) {06 Autograd};
|
||||
\node[foundation, right=of Auto] (Opt) {07 Optim.};
|
||||
\node[foundation, right=of Opt] (Train) {08 Training};
|
||||
@@ -72,7 +75,8 @@
|
||||
\draw[arr] (T) -- (A);
|
||||
\draw[arr] (A) -- (L);
|
||||
\draw[arr] (L) -- (Loss);
|
||||
\draw[arr] (Loss) -- (Data);
|
||||
% Wrap from end of Row 1 to start of Row 2
|
||||
\draw[arr, rounded corners=5pt] (Loss.east) -- ++(0.3,0) |- (Data.west);
|
||||
\draw[arr] (Data) -- (Auto);
|
||||
\draw[arr] (Auto) -- (Opt);
|
||||
\draw[arr] (Opt) -- (Train);
|
||||
@@ -134,7 +138,8 @@
|
||||
\draw[arr] (Bench) -- (Cap);
|
||||
|
||||
% === TIER LABELS ===
|
||||
\node[above=0.8cm of L, font=\scriptsize\bfseries\sffamily, blue!60!black] {FOUNDATION (01-08)};
|
||||
% Center Foundation label between the two rows
|
||||
\node[above=0.8cm of A, font=\scriptsize\bfseries\sffamily, blue!60!black, xshift=0.9cm] {FOUNDATION (01-08)};
|
||||
% Center Architecture label between the two branches
|
||||
\node[above=2.7cm of Emb, font=\scriptsize\bfseries\sffamily, purple!60!black] {ARCHITECTURE (09-13)};
|
||||
\node[above=0.5cm of Comp, font=\scriptsize\bfseries\sffamily, orange!60!black] {OPTIMIZATION (14-19)};
|
||||
|
||||
Reference in New Issue
Block a user