figure-application-of-multimodal-machine-translation-to-multitask-learning.tex 1.12 KB
Newer Older
曹润柘 committed
1
\tikzstyle{coder} = [rectangle,rounded corners,minimum height=2.2em,minimum width=4.3em,text centered,draw=black,fill=red!25]
曹润柘 committed
2 3
\begin{tikzpicture}[node distance = 0,scale = 0.75]
\tikzstyle{every node}=[scale=0.75]
曹润柘 committed
4 5
\node(x)[]{x};
\node(encoder)[coder, above of = x,yshift=4em]{{编码器}};
曹润柘 committed
6
\node(decoder_left)[coder, above of = encoder, yshift=6em,fill=blue!25]{{解码器}};
曹润柘 committed
7 8
\node(y_hat)[above of = decoder_left, yshift=4em]{{$\rm y'$}};
\node(y)[above of = decoder_left, xshift=-6em]{{$\rm y$}};
曹润柘 committed
9
\node(decoder_right)[coder, above of = encoder, xshift=11em,fill=yellow!25]{{解码器}};
曹润柘 committed
10

曹润柘 committed
11
\node(figure)[draw=white,above of = decoder_right,yshift=6.5em,scale=0.25] {\includegraphics[width=0.62\textwidth]{./Chapter17/Figures/figure-bank-without-attention.png}};
曹润柘 committed
12

曹润柘 committed
13
\draw[->,thick](x)to(encoder);
曹润柘 committed
14
\draw[->,thick](encoder)to(decoder_left)node[right,xshift=-0.1cm,yshift=-1.25cm,scale=1.2]{\small{翻译}};
曹润柘 committed
15 16
\draw[->,thick](decoder_left)to(y_hat);
\draw[->,thick](y)to(decoder_left);
曹润柘 committed
17
\draw[->,thick](encoder)to(decoder_right)node[left,xshift=-3.1em,yshift=0.25cm,scale=1.2]{\small{生成图片}};
曹润柘 committed
18
\draw[->,thick](decoder_right)to(figure);
曹润柘 committed
19
\end{tikzpicture}