Skip to content

Commit

Permalink
fix minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Haris Iqbal committed Jan 17, 2020
1 parent 5aba09f commit 62aebe7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Binary file modified examples/VGG16/vgg16.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/VGG16/vgg16.tex
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
%%%%%%%%%%
% conv2_1,conv2_2
\pic[shift={(2,0,0)}] at (p1-east) {RightBandedBox={name=cr2,caption=conv2,%
xlabel={{"64","64"}},zlabel=112,fill=\ConvColor,bandfill=\ConvReluColor,%
xlabel={{"128","128"}},zlabel=112,fill=\ConvColor,bandfill=\ConvReluColor,%
height=35,width={3,3},depth=35}};
%pool2
\pic[shift={(0,0,0)}] at (cr2-east) {Box={name=p2,%
Expand Down
8 changes: 4 additions & 4 deletions layers/Box.sty
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
\pgfmathsetmacro{\y}{\cubey*\scale}
\pgfmathsetmacro{\z}{\cubez*\scale}

%Multiple concatenated boxes
%Multiple concatenated boxes
\foreach[count=\i,%
evaluate=\i as \xlabel using {array({\boxlabels},\i-1)},%
evaluate=\unscaledx as \k using {\unscaledx*\scale+\prev}, remember=\k as \prev (initially 0)]
Expand All @@ -25,15 +25,15 @@
\coordinate (f) at (\k ,-\y/2 ,-\z/2);
\coordinate (g) at (\k-\x ,-\y/2 ,-\z/2);
\coordinate (h) at (\k-\x , \y/2 ,-\z/2);

\draw [box]
(d) -- (a) -- (b) -- (c) -- cycle
(d) -- (a) -- (h) -- (e) -- cycle
%dotted edges
(f) edge (g)
(b) edge (g)
(h) edge (g)
;
;
\path (b) edge ["\xlabel"',midway] (c);

\xdef\LastEastx{\k} %\k persists as \LastEastx after loop
Expand All @@ -45,7 +45,7 @@
\tikzstyle{depthlabel}=[pos=0,text width=14*\z,text centered,sloped]

\path (c) edge ["\small\zlabel"',depthlabel](f); %depth label
\path (b1) edge ["\ylabel",midway] (a1); %height label
\path (b1) edge ["\ylabel",midway] (a1); %height label


\tikzstyle{captionlabel}=[text width=15*\LastEastx/\scale,text centered]
Expand Down

0 comments on commit 62aebe7

Please sign in to comment.