%%%------------------------------------------------------------------------------------------------------------ \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); } { \tikzstyle{neuron} = [rectangle,draw,thick,fill=red!30,red!35,minimum height=2em,minimum width=2em,font=\small] \node[neuron,anchor=north] (a3) at ([xshift=11em,yshift=2.05em]a2.south) {}; \draw[->,thick] ([xshift=-3em,yshift=0em]a3.north) to ([xshift=2em,yshift=0em]a3.north); \draw[->,thick] ([xshift=-1em,yshift=-2em]a3.west) to ([xshift=-1em,yshift=4em]a3.west); \node[above] at ([xshift=-0.5em,yshift=1em]a3.west){0}; \node[above] at ([xshift=1em,yshift=1em]a3.west){1}; \node[left] at ([xshift=-0.75em,yshift=-0.5em]a3.west){-1}; \node [anchor=west,rotate = 180] (x) at ([xshift=0.7em,yshift=1em]a3.south) {\Large{$\textbf{F}$}}; \node [anchor=west] (x) at ([xshift=-4cm,yshift=2em]a3.north) {\scriptsize{ $b=\begin{bmatrix} 0.5&0&0\\ 0&0&0\\ 0&0&0 \end{bmatrix}$} }; \draw[-stealth, line width=2pt,dashed] ([xshift=3em,yshift=1em]a2.east) to ([xshift=-3em,yshift=1em]a3.west); } \end{tikzpicture} %%%------------------------------------------------------------------------------------------------------------