Files
mt/thesis/third_party/PlotNeuralNet/pycore/tikzeng.pyc

165 lines
7.0 KiB
Plaintext
Raw Normal View History

<03>
.xn\c
@sHddlZd<00>Zd<00>Zd<00>Zdddd<00>Zdd d
d
d d d d d<00>Zdd%d
d
d&d d d d<00>Zd
d
d dddd d<00>Zd
d
d dddd d<00>Zdd d
d
dd d dd d<00> Z d d
d
d d d d d<00>Z
dd
d
ddddd d<00>Z d<00>Z d d!<00>Z d"<00>Zd#d$<00>ZdS('i<><69><EFBFBD><EFBFBD>NcCs!tjj|d<00>}d|dS(Nslayers/sU
\documentclass[border=8pt, multi, tikz]{standalone}
\usepackage{import}
\subimport{sX}{init}
\usetikzlibrary{positioning}
\usetikzlibrary{3d} %for including external image
(tostpathtjoin(t projectpatht
pathlayers((s../core/tikzeng.pytto_headscCsdS(Ns0
\def\ConvColor{rgb:yellow,5;red,2.5;white,5}
\def\ConvReluColor{rgb:yellow,5;red,5;white,5}
\def\PoolColor{rgb:red,1;black,0.3}
\def\UnpoolColor{rgb:blue,2;green,1;black,0.3}
\def\FcColor{rgb:blue,5;red,2.5;white,5}
\def\FcReluColor{rgb:blue,5;red,5;white,4}
\def\SoftmaxColor{rgb:magenta,5;black,7}
((((s../core/tikzeng.pytto_cors cCsdS(Ns<4E>
\newcommand{\copymidarrow}{\tikz \draw[-Stealth,line width=0.8mm,draw={rgb:blue,4;red,1;green,1;black,3}] (-0.3,0) -- ++(0.3,0);}
\begin{document}
\begin{tikzpicture}
\tikzstyle{connection}=[ultra thick,every node/.style={sloped,allow upside down},draw=\edgecolor,opacity=0.7]
\tikzstyle{copyconnection}=[ultra thick,every node/.style={sloped,allow upside down},draw={rgb:blue,4;red,1;green,1;black,3},opacity=0.7]
((((s../core/tikzeng.pytto_beginss(-3,0,0)icCs8d|dt|<00>ddt|<00>dd|dS(Ns,
\node[canvas is zy plane at x=0] (temp) at s {\includegraphics[width=tcms,height=s]{s}};
(tstr(tpathfilettotwidththeight((s../core/tikzeng.pytto_input%s3ii@s(0,0,0)ii(t c Csjd|d|d|d|dt|<00>dt|<00>dt|<00>dt|<00>d t|<00>d
S( Ns
\pic[shift={s}] at s
{Box={
name=s,
caption=s,
xlabel={{s, }},
zlabel=s*,
fill=\ConvColor,
height=s,
width=s,
depth=s
}
};
(R ( tnamets_filertn_filertoffsetR R R tdepthtcaption((s../core/tikzeng.pytto_Conv+s eic Cs<>d|d|d|d|dt|d<19>dt|d<19>d t|<00>d
t|<00>d t|d<19>d t|d<19>d t|<00>dS(Ns
\pic[shift={ s }] at s%
{RightBandedBox={
name=s,
caption=s,
xlabel={{ is, is }},
zlabel=sK,
fill=\ConvColor,
bandfill=\ConvReluColor,
height=s,
width={ s , s },
depth=s
}
};
(R ( RRRRR R R RR((s../core/tikzeng.pytto_ConvConvRelu=s <0C>i g<00>?cCs\d|d|d|d|dt|<00>dt|<00>dt|<00>dt|<00>d S(
Ns
\pic[shift={ s }] at s
{Box={
name=s,
caption=s+,
fill=\PoolColor,
opacity=s,
height=s,
width=s,
depth=s
}
};
(R (RRR R R RtopacityR((s../core/tikzeng.pytto_PoolQs
WcCs\d|d|d|d|dt|<00>dt|<00>dt|<00>dt|<00>d S(
Ns
\pic[shift={ s }] at s
{Box={
name=s,
caption=s-,
fill=\UnpoolColor,
opacity=s,
height=s,
width=s,
depth=s
}
};
(R (RRR R R RRR((s../core/tikzeng.pyt to_UnPoolas
Wig<><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?c
Csxd|d|d|d| dt|<00>dt|<00>dt|<00>dt|<00>d t|<00>d
t|<00>d S( Ns
\pic[shift={ s }] at s%
{RightBandedBox={
name=s,
caption=s,
xlabel={{ s, }},
zlabel=s^,
fill={rgb:white,1;black,3},
bandfill={rgb:white,1;black,2},
opacity=s,
height=s,
width=s,
depth=s
}
};
(R (
RRRRR R R RRR((s../core/tikzeng.pyt
to_ConvResrs scCs\d|d|d|d|dt|<00>dt|<00>dt|<00>dt|<00>d S(
Ns
\pic[shift={s}] at s
{Box={
name=s,
caption=s,
zlabel=s-,
fill=\SoftmaxColor,
height=s,
width=s,
depth=s
}
};
(R (RRRR R R RR((s../core/tikzeng.pytto_ConvSoftMax<61>s
Wi
g<00>?iig<><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?c Csjd|d|d|d|dt|<00>dt|<00>dt|<00>dt|<00>d t|<00>d
S( Ns
\pic[shift={s}] at s
{Box={
name=s,
caption=s1,
xlabel={{" ","dummy"}},
zlabel=s.,
fill=\SoftmaxColor,
opacity=s,
height=s,
width=s,
depth=s
}
};
(R ( RRRR R R RRR((s../core/tikzeng.pyt
to_SoftMax<61>s ecCsd|d|dS(Ns
\draw [connection] (s-east) -- node {\midarrow} (s-west);
((tofR ((s../core/tikzeng.pyt to_connection<6F>sg<00>?cCsbd|d|dt|<00>d|d|d|d|d|d |d
|d |d S( Ns
\path (s-southeast) -- (s-northeast) coordinate[pos=s] (s-top) ;
\path (s -south) -- (s-north) coordinate[pos=1.25] (s!-top) ;
\draw [copyconnection] (s&-northeast)
-- node {\copymidarrow}(s-top)
-- node {\copymidarrow}(s-top)
-- node {\copymidarrow} (s -north);
(R (RR tpos((s../core/tikzeng.pytto_skip<69>s]cCsdS(Ns"
\end{tikzpicture}
\end{document}
((((s../core/tikzeng.pytto_end<6E>ssfile.texcCs?t|d<00><00>*}x |D]}|GH|j|<00>qWWdQXdS(Ntw(topentwrite(tarchtpathnametftc((s../core/tikzeng.pyt to_generate<74>s (i@i@(ii(RRRRRRRRRRRRRR!R"R*(((s../core/tikzeng.pyt<module>s 
!!$!