%%%------------------------------------------------------------------------------------------------------------ \begin{tikzpicture} \tikzstyle{neuron} = [rectangle,draw,thick,fill=red!30,red!35,minimum height=2em,minimum width=2em,font=\small] \node[neuron,anchor=north] (a1) at (0,0) {}; \draw[->,thick] ([xshift=-2em,yshift=0em]a1.south) to ([xshift=3em,yshift=0em]a1.south); \draw[->,thick] ([xshift=0em,yshift=-4em]a1.west) to ([xshift=0em,yshift=2em]a1.west); \node[below] at ([xshift=0.5em,yshift=-1em]a1.west){0}; \node[below] at ([xshift=2em,yshift=-1em]a1.west){1}; \node[below] at ([xshift=-0.5em,yshift=2em]a1.west){1}; \node [anchor=west] (x) at ([xshift=-0.7em,yshift=1em]a1.south) {\Large{$\textbf{F}$}}; { \tikzstyle{neuron} = [rectangle,draw,thick,fill=red!30,red!35,minimum height=2em,minimum width=2em,font=\small] \node[neuron,anchor=north] (a2) at ([xshift=10em,yshift=0em]a1.south) {}; \draw[->,thick] ([xshift=-2em,yshift=0em]a2.north) to ([xshift=3em,yshift=0em]a2.north); \draw[->,thick] ([xshift=0em,yshift=-2em]a2.west) to ([xshift=0em,yshift=4em]a2.west); \node[above] at ([xshift=0.5em,yshift=1em]a2.west){0}; \node[above] at ([xshift=2em,yshift=1em]a2.west){1}; \node[below] at ([xshift=-0.5em,yshift=0em]a2.west){-1}; \node [anchor=west] (x) at ([xshift=-3.5cm,yshift=2em]a2.north) {\scriptsize{ $w=\begin{bmatrix} 1&0&0\\ 0&-1&0\\ 0&0&1 \end{bmatrix}$} }; \node [anchor=west,rotate = 180] (x) at ([xshift=0.7em,yshift=1em]a2.south) {\Large{$\textbf{F}$}}; \draw[-stealth, line width=2pt,dashed] ([xshift=4em,yshift=0em]a1.south) to ([xshift=-3em,yshift=0em]a2.north); } \end{tikzpicture} %%%------------------------------------------------------------------------------------------------------------