fix minor bugs

This commit is contained in:
Haris Iqbal
2020-01-17 16:31:36 +01:00
parent 5aba09f025
commit 62aebe7116
3 changed files with 5 additions and 5 deletions
Binary file not shown.
+1 -1
View File
@@ -27,7 +27,7 @@
%%%%%%%%%% %%%%%%%%%%
% conv2_1,conv2_2 % conv2_1,conv2_2
\pic[shift={(2,0,0)}] at (p1-east) {RightBandedBox={name=cr2,caption=conv2,% \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}}; height=35,width={3,3},depth=35}};
%pool2 %pool2
\pic[shift={(0,0,0)}] at (cr2-east) {Box={name=p2,% \pic[shift={(0,0,0)}] at (cr2-east) {Box={name=p2,%
+4 -4
View File
@@ -10,7 +10,7 @@
\pgfmathsetmacro{\y}{\cubey*\scale} \pgfmathsetmacro{\y}{\cubey*\scale}
\pgfmathsetmacro{\z}{\cubez*\scale} \pgfmathsetmacro{\z}{\cubez*\scale}
%Multiple concatenated boxes %Multiple concatenated boxes
\foreach[count=\i,% \foreach[count=\i,%
evaluate=\i as \xlabel using {array({\boxlabels},\i-1)},% evaluate=\i as \xlabel using {array({\boxlabels},\i-1)},%
evaluate=\unscaledx as \k using {\unscaledx*\scale+\prev}, remember=\k as \prev (initially 0)] evaluate=\unscaledx as \k using {\unscaledx*\scale+\prev}, remember=\k as \prev (initially 0)]
@@ -25,7 +25,7 @@
\coordinate (f) at (\k ,-\y/2 ,-\z/2); \coordinate (f) at (\k ,-\y/2 ,-\z/2);
\coordinate (g) at (\k-\x ,-\y/2 ,-\z/2); \coordinate (g) at (\k-\x ,-\y/2 ,-\z/2);
\coordinate (h) at (\k-\x , \y/2 ,-\z/2); \coordinate (h) at (\k-\x , \y/2 ,-\z/2);
\draw [box] \draw [box]
(d) -- (a) -- (b) -- (c) -- cycle (d) -- (a) -- (b) -- (c) -- cycle
(d) -- (a) -- (h) -- (e) -- cycle (d) -- (a) -- (h) -- (e) -- cycle
@@ -33,7 +33,7 @@
(f) edge (g) (f) edge (g)
(b) edge (g) (b) edge (g)
(h) edge (g) (h) edge (g)
; ;
\path (b) edge ["\xlabel"',midway] (c); \path (b) edge ["\xlabel"',midway] (c);
\xdef\LastEastx{\k} %\k persists as \LastEastx after loop \xdef\LastEastx{\k} %\k persists as \LastEastx after loop
@@ -45,7 +45,7 @@
\tikzstyle{depthlabel}=[pos=0,text width=14*\z,text centered,sloped] \tikzstyle{depthlabel}=[pos=0,text width=14*\z,text centered,sloped]
\path (c) edge ["\small\zlabel"',depthlabel](f); %depth label \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] \tikzstyle{captionlabel}=[text width=15*\LastEastx/\scale,text centered]