<p></p><p></p><p>简单实现了一下,具体形状、颜色等根据需要调整。</p><p>```</p><p>\documentclass[margin=3pt,</p><p> 12pt,</p><p> border = 8pt,</p><p> convert,</p><p> convert={</p><p> outext=.png,</p><p> command=\unexpanded{</p><p> pdftocairo -r 300 -png \infile % 将生成的pdf文件转换为png图像</p><p> }</p><p> }</p><p> ]{standalone}</p><p><br/></p><p>\usepackage{tikz}</p><p>\usetikzlibrary{positioning}</p><p>\usetikzlibrary{calc}</p><p>\usetikzlibrary{arrows.meta}</p><p>\usetikzlibrary{shadows}</p><p><br/></p><p>\begin{document}</p><p>\begin{tikzpicture}[</p><p> %node distance = 5mm and 7mm,</p><p> MN/.style args = {#1/#2}{</p><p> draw=#1,% line color</p><p> top color=#2!10,</p><p> bottom color=#2!80,</p><p> rounded corners,</p><p> thick,</p><p> text width=9em,</p><p> minimum height=15mm,</p><p> inner sep=1mm,</p><p> align=flush center</p><p> },</p><p> line/.style = {</p><p> thick,</p><p> draw=#1,%line color</p><p> -{Stealth[scale=1.0]},</p><p> shorten >=1mm,</p><p> shorten <=1mm</p><p> },</p><p> ds/.style = {drop shadow}%drop shadow</p><p> ]</p><p> % 布置结点</p><p> \node[MN=black/red, ds](n1){Filter\\concatenation};</p><p> \node[MN=black/cyan,ds, below=1.0 of n1, shift={(-1.5cm, 0cm)}] (n2){$3\times{}3$ convolutions};</p><p> \node[MN=black/green,ds,right=of n2] (n3) {$5\times{}5$ convolutions};</p><p> \node[MN=black/yellow,ds,right=of n3] (n4) {$1\times{}1$ convolutions};</p><p> \node[MN=black/yellow,ds,left=1.5 of n2, shift={(0.0cm, -1.5cm)}] (n5) {$1\times{}1$ convolutions};</p><p> \node[MN=black/yellow,ds,below=1.0 of n2] (n6) {$1\times{}1$ convolutions};</p><p> \node[MN=black/yellow,ds,right=of n6] (n7) {$1\times{}1$ convolutions};</p><p> \node[MN=black/yellow,ds,right=of n7] (n8) {$3\times{}3$ max pooling};</p><p> \node[MN=black/yellow,ds,below=1.0 of n6, shift={(0.5cm, 0cm)}] (n9) {Previous layer};</p><p><br/></p><p> % 绘制连线</p><p> \draw[line=black] (n5.north) to[out=90, in = -160] (n1.south);</p><p> \draw[line=black] (n2.north) to[out=90, in = -100] (n1.south);</p><p> \draw[line=black] (n3.north) to[out=145, in = -45] (n1.south);</p><p> \draw[line=black] (n4.north) to[out=165, in = -20] (n1.south);</p><p> \draw[line=black] (n6.north) -- (n2.south);</p><p> \draw[line=black] (n7.north) -- (n3.south);</p><p> \draw[line=black] (n8.north) -- (n4.south);</p><p> \draw[line=black] (n9.north) to[out=160, in = -90] (n5.south);</p><p> \draw[line=black] (n9.north) to[out=100, in = -80] (n6.south);</p><p> \draw[line=black] (n9.north) to[out=60, in = -145] (n7.south);</p><p> \draw[line=black] (n9.north) to[out=30, in = -160] (n8.south);</p><p>\end{tikzpicture}</p><p>\end{document}</p><p><br/></p><p>%%% Local Variables:</p><p>%%% mode: latex</p><p>%%% TeX-master: t</p><p>%%% End:</p><p>```</p><p>结果如下:</p><p><img src="/data/ueditor/php/upload/image/20200421/1587479950828691.png" title="1587479950828691.png" alt="main-1.png" style="max-width:650px"/></p><p><br/></p>