Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
Toy-MT-Introduction
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
NiuTrans
Toy-MT-Introduction
Commits
2dfaa569
Commit
2dfaa569
authored
May 04, 2020
by
zhoutao
Browse files
Options
Browse Files
Download
Plain Diff
合并分支 'zhoutao' 到 'caorunzhe'
update 7.5.1 查看合并请求
!42
parents
1ce63433
83c358e9
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
71 行增加
和
73 行删除
+71
-73
Book/Chapter7/Chapter7.tex
+0
-0
Book/Chapter7/Figures/Post-Norm-vs-Pre-Norm.tex
+2
-2
Book/Chapter7/Figures/dynamic-linear-aggregation-network-structure.tex
+6
-6
Book/Chapter7/Figures/expanded-residual-network.tex
+25
-26
Book/Chapter7/Figures/learning-rate.tex
+3
-3
Book/Chapter7/Figures/progressive-training.tex
+32
-32
Book/Chapter7/Figures/sparse-connections-between-different-groups.tex
+3
-4
没有找到文件。
Book/Chapter7/Chapter7.tex
查看文件 @
2dfaa569
差异被折叠。
点击展开。
Book/Chapter7/Figures/Post-Norm-vs-Pre-Norm.tex
查看文件 @
2dfaa569
...
...
@@ -6,13 +6,13 @@
\begin{scope}
[minimum height = 20pt]
\node
[anchor=east] (x1) at (-0.5em, 0)
{$
x
_
l
$}
;
\node
[anchor=west,draw=green,fill=green!20,inner xsep=5pt] (F1) at ([xshift=2em]x1.east)
{$
\
textrm
{
F
}$}
;
\node
[anchor=west,draw=green,fill=green!20,inner xsep=5pt] (F1) at ([xshift=2em]x1.east)
{$
\
mathcal
{
F
}$}
;
\node
[anchor=west,circle,draw,minimum size=1em] (n1) at ([xshift=2em]F1.east)
{}
;
\node
[anchor=west,draw=green,fill=green!20,inner xsep=5pt] (ln1) at ([xshift=2em]n1.east)
{
\textrm
{
LN
}}
;
\node
[anchor=west] (x2) at ([xshift=2em]ln1.east)
{$
x
_{
l
+
l
}$}
;
\node
[anchor=north] (x3) at ([yshift=-5em]x1.south)
{$
x
_
l
$}
;
\node
[anchor=west,draw=green,fill=green!20,inner xsep=5pt] (F2) at ([xshift=2em]x3.east)
{$
\
textrm
{
F
}$}
;
\node
[anchor=west,draw=green,fill=green!20,inner xsep=5pt] (F2) at ([xshift=2em]x3.east)
{$
\
mathcal
{
F
}$}
;
\node
[anchor=west,draw=green,fill=green!20,inner xsep=5pt] (ln2) at ([xshift=2em]F2.east)
{
\textrm
{
LN
}}
;
\node
[anchor=west,circle,draw,,minimum size=1em] (n2) at ([xshift=2em]ln2.east)
{}
;
\node
[anchor=west] (x4) at ([xshift=2em]n2.east)
{$
x
_{
l
+
l
}$}
;
...
...
Book/Chapter7/Figures/dynamic-linear-aggregation-network-structure.tex
查看文件 @
2dfaa569
...
...
@@ -4,21 +4,21 @@
\node
[anchor=north,rectangle, inner sep=0mm,minimum height=1.2em,minimum width=2em,rounded corners=5pt,thick] (n1) at (0, 0)
{
编码端
}
;
\node
[anchor=west,rectangle, inner sep=0mm,minimum height=1.2em,minimum width=0em,rounded corners=5pt,thick] (n2) at ([xshift=3.5em,yshift=-0.5em]n1.east)
{$
x
_
1
$}
;
\node
[anchor=west,rectangle, inner sep=0mm,minimum height=1.2em,minimum width=0em,rounded corners=5pt,thick] (n2) at ([xshift=3.5em,yshift=-0.5em]n1.east)
{$
z
_
0
$}
;
\node
[anchor=west,rectangle,draw, inner sep=0mm,minimum height=1.2em,minimum width=3em,fill=orange!20,rounded corners=5pt,thick] (n3) at ([xshift=3.5em,yshift=0em]n2.east)
{$
x
_
2
$}
;
\node
[anchor=west,rectangle,draw, inner sep=0mm,minimum height=1.2em,minimum width=3em,fill=orange!20,rounded corners=5pt,thick] (n3) at ([xshift=3.5em,yshift=0em]n2.east)
{$
z
_
1
$}
;
\node
[anchor=west,rectangle,draw, inner sep=0mm,minimum height=1.2em,minimum width=3em,fill=orange!20,rounded corners=5pt,thick] (n4) at ([xshift=3.5em,yshift=0em]n3.east)
{$
x
_
3
$}
;
\node
[anchor=west,rectangle,draw, inner sep=0mm,minimum height=1.2em,minimum width=3em,fill=orange!20,rounded corners=5pt,thick] (n4) at ([xshift=3.5em,yshift=0em]n3.east)
{$
z
_
2
$}
;
\node
[anchor=west,rectangle, inner sep=0mm,minimum height=1.2em,minimum width=1em,rounded corners=5pt,thick] (n6) at ([xshift=1.5em,yshift=0em]n4.east)
{$
\ldots
$}
;
\node
[anchor=west,rectangle,draw, inner sep=0mm,minimum height=1.2em,minimum width=3em,fill=orange!20,rounded corners=5pt,thick] (n5) at ([xshift=3.5em,yshift=0em]n6.east)
{$
x
_{
l
+
1
}$}
;
\node
[anchor=west,rectangle,draw, inner sep=0mm,minimum height=1.2em,minimum width=3em,fill=orange!20,rounded corners=5pt,thick] (n5) at ([xshift=3.5em,yshift=0em]n6.east)
{$
z
_{
l
}$}
;
\node
[anchor=west,rectangle,draw, inner sep=0mm,minimum height=1.2em,minimum width=3em,fill=orange!20,rounded corners=5pt,thick] (n7) at ([xshift=1.5em,yshift=0em]n5.east)
{$
x
_{
l
+
2
}$}
;
\node
[anchor=west,rectangle,draw, inner sep=0mm,minimum height=1.2em,minimum width=3em,fill=orange!20,rounded corners=5pt,thick] (n7) at ([xshift=1.5em,yshift=0em]n5.east)
{$
z
_{
l
+
1
}$}
;
\node
[anchor=north,rectangle,draw, inner sep=0mm,minimum height=1.2em,minimum width=15em,fill=teal!17,rounded corners=5pt,thick] (n8) at ([xshift=0em,yshift=-3em]n4.south)
{
层正则化
}
;
\node
[anchor=north,rectangle,draw, inner sep=0mm,minimum height=1.2em,minimum width=15em,fill=purple!17,rounded corners=5pt,thick] (n9) at ([xshift=0em,yshift=-1em]n8.south)
{$
z
_
0
\ \quad
z
_
1
\ \quad
z
_
2
\quad
\ldots
\quad\
z
_
l
$}
;
\node
[anchor=north,rectangle,draw, inner sep=0mm,minimum height=1.2em,minimum width=15em,fill=purple!17,rounded corners=5pt,thick] (n9) at ([xshift=0em,yshift=-1em]n8.south)
{$
L
_
0
\ \quad
L
_
1
\ \quad
L
_
2
\quad
\ldots
\quad\
L
_
l
$}
;
\node
[anchor=north,rectangle,draw, inner sep=0mm,minimum height=1.2em,minimum width=15em,fill=teal!17,rounded corners=5pt,thick] (n10) at ([xshift=0em,yshift=-2em]n9.south)
{
权重累加
}
;
...
...
Book/Chapter7/Figures/expanded-residual-network.tex
查看文件 @
2dfaa569
%%%------------------------------------------------------------------------------------------------------------
%%% 短语系统的问题 - 一个实例
%%
\begin{center}
\begin{tikzpicture}
\begin{scope}
[scale=0.
7
]
\begin{scope}
[scale=0.
6
]
\node
[anchor=east,fill=red!50,draw,rounded corners=3pt] (s11) at (-0.5em, 0)
{
sublayer1
}
;
\node
[anchor=east,fill=red!50,draw,rounded corners=3pt] (s11) at (-0.5em, 0)
{
\footnotesize
{
sublayer1
}
}
;
\node
[anchor=west,draw,circle,line width=1pt] (c11) at ([xshift=2em]s11.east)
{}
;
\node
[anchor=north,fill=red!10,draw,d
ashed,rounded corners=3pt] (s21) at ([yshift=-3em]s11.south)
{
sublayer1
}
;
\node
[anchor=west, draw,circle,d
ash
ed,line width=1pt] (c21) at ([xshift=2em]s21.east)
{}
;
\node
[anchor=west,fill=red!10,draw,d
ashed,rounded corners=3pt] (s22) at ([xshift=2em]c21.east)
{
sublayer2
}
;
\node
[anchor=west, draw,circle,d
ash
ed,line width=1pt] (c22) at ([xshift=2em]s22.east)
{}
;
\node
[anchor=north,fill=red!10,draw,d
otted,rounded corners=3pt] (s21) at ([yshift=-3em]s11.south)
{
\footnotesize
{
sublayer1
}
}
;
\node
[anchor=west, draw,circle,d
ott
ed,line width=1pt] (c21) at ([xshift=2em]s21.east)
{}
;
\node
[anchor=west,fill=red!10,draw,d
otted,rounded corners=3pt] (s22) at ([xshift=2em]c21.east)
{
\footnotesize
{
sublayer2
}
}
;
\node
[anchor=west, draw,circle,d
ott
ed,line width=1pt] (c22) at ([xshift=2em]s22.east)
{}
;
\node
[anchor=north,fill=red!50,draw,rounded corners=3pt] (s31) at ([yshift=-3em]s21.south)
{
sublayer1
}
;
\node
[anchor=north,fill=red!50,draw,rounded corners=3pt] (s31) at ([yshift=-3em]s21.south)
{
\footnotesize
{
sublayer1
}
}
;
\node
[anchor=west,draw,circle,line width=1pt] (c31) at ([xshift=2em]s31.east)
{}
;
\node
[anchor=north,fill=red!10,draw,d
ashed,rounded corners=3pt] (s41) at ([yshift=-3em]s31.south)
{
sublayer1
}
;
\node
[anchor=north,fill=red!10,draw,d
otted,rounded corners=3pt] (s41) at ([yshift=-3em]s31.south)
{
\footnotesize
{
sublayer1
}
}
;
\node
[anchor=east, draw,circle,line width=1pt] (c44) at ([xshift=-2em]s41.west)
{}
;
\node
[anchor=west, draw,circle,d
ash
ed,line width=1pt] (c41) at ([xshift=2em]s41.east)
{}
;
\node
[anchor=west,fill=red!10,draw,d
ashed,rounded corners=3pt] (s42) at ([xshift=2em]c41.east)
{
sublayer2
}
;
\node
[anchor=west, draw,circle,d
ash
ed,line width=1pt] (c42) at ([xshift=2em]s42.east)
{}
;
\node
[anchor=west,fill=red!50,draw,rounded corners=3pt] (s43) at ([xshift=2em]c42.east)
{
sublayer3
}
;
\node
[anchor=west, draw,circle,d
ott
ed,line width=1pt] (c41) at ([xshift=2em]s41.east)
{}
;
\node
[anchor=west,fill=red!10,draw,d
otted,rounded corners=3pt] (s42) at ([xshift=2em]c41.east)
{
\footnotesize
{
sublayer2
}
}
;
\node
[anchor=west, draw,circle,d
ott
ed,line width=1pt] (c42) at ([xshift=2em]s42.east)
{}
;
\node
[anchor=west,fill=red!50,draw,rounded corners=3pt] (s43) at ([xshift=2em]c42.east)
{
\footnotesize
{
sublayer3
}
}
;
\node
[anchor=west, draw,circle,line width=1pt] (c43) at ([xshift=2em]s43.east)
{}
;
\draw
[-,rounded corners,line width=1pt]
(c44.east) -- ([xshift=0.8em]c44.east) -- ([xshift=-1.2em,yshift=2.
2em]s11.west) -- ([xshift=2.7em,,yshift=2.2
em]s11.east) -- (c11.north);
\draw
[-,rounded corners,line width=1pt]
(c44.east) -- ([xshift=0.8em]c44.east) -- ([xshift=-1.2em,yshift=2.
3em]s11.west) -- ([xshift=2.8em,,yshift=2.3
em]s11.east) -- (c11.north);
\draw
[-,rounded corners,line width=1pt]
(c44.east) -- ([xshift=0.8em]c44.east) -- ([xshift=-1.2em]s11.west) -- (s11.west);
\draw
[-,rounded corners,line width=1pt]
(s11.east) -- (c11.west);
\draw
[-,rounded corners,line width=1pt]
(c11.east) -- ([xshift=11.3em]c11.east) -- (c22.north);
\draw
[-,rounded corners,line width=1pt,d
ashed]
(c44.east) -- ([xshift=0.8em]c44.east) -- ([xshift=-1.2em,yshift=2.2em]s21.west) -- ([xshift=2.7em,,yshift=2.2
em]s21.east) -- (c21.north);
\draw
[-,rounded corners,line width=1pt,d
ash
ed]
(c44.east) -- ([xshift=0.8em]c44.east) -- ([xshift=-1.2em]s21.west) -- (s21.west);
\draw
[-,rounded corners,line width=1pt,d
ash
ed]
(s21.east) -- (c21.west);
\draw
[-,rounded corners,line width=1pt,d
ash
ed]
(c21.east) -- (s22.west);
\draw
[-,rounded corners,line width=1pt,d
ash
ed]
(s22.east) -- (c22.west);
\draw
[-,rounded corners,line width=1pt,d
otted]
(c44.east) -- ([xshift=0.8em]c44.east) -- ([xshift=-1.2em,yshift=2.3em]s21.west) -- ([xshift=2.7em,,yshift=2.3
em]s21.east) -- (c21.north);
\draw
[-,rounded corners,line width=1pt,d
ott
ed]
(c44.east) -- ([xshift=0.8em]c44.east) -- ([xshift=-1.2em]s21.west) -- (s21.west);
\draw
[-,rounded corners,line width=1pt,d
ott
ed]
(s21.east) -- (c21.west);
\draw
[-,rounded corners,line width=1pt,d
ott
ed]
(c21.east) -- (s22.west);
\draw
[-,rounded corners,line width=1pt,d
ott
ed]
(s22.east) -- (c22.west);
\draw
[-,rounded corners,line width=1pt]
(c22.east) -- ([xshift=11.3em]c22.east) -- (c43.north);
\draw
[-,rounded corners,line width=1pt]
(c44.east) -- ([xshift=0.8em]c44.east) -- ([xshift=-1.2em,yshift=2.
2em]s31.west) -- ([xshift=2.7em,,yshift=2.2
em]s31.east) -- (c31.north);
\draw
[-,rounded corners,line width=1pt]
(c44.east) -- ([xshift=0.8em]c44.east) -- ([xshift=-1.2em,yshift=2.
3em]s31.west) -- ([xshift=2.7em,,yshift=2.3
em]s31.east) -- (c31.north);
\draw
[-,rounded corners,line width=1pt]
(c44.east) -- ([xshift=0.8em]c44.east) -- ([xshift=-1.2em]s31.west) -- (s31.west);
\draw
[-,rounded corners,line width=1pt]
(s31.east) -- (c31.west);
\draw
[-,rounded corners,line width=1pt]
(c31.east) -- ([xshift=11.3em]c31.east) -- (c42.north);
\draw
[-,rounded corners,line width=1pt,d
ashed]
(c44.east) -- ([xshift=0.8em]c44.east) -- ([xshift=-1.2em,yshift=2.2em]s41.west) -- ([xshift=2.7em,,yshift=2.2
em]s41.east) -- (c41.north);
\draw
[-,rounded corners,line width=1pt,d
ash
ed]
(c44.east) -- (s41.west);
\draw
[-,rounded corners,line width=1pt,d
ash
ed]
(s41.east) -- (c41.west);
\draw
[-,rounded corners,line width=1pt,d
ash
ed]
(c41.east) -- (s42.west);
\draw
[-,rounded corners,line width=1pt,d
ash
ed]
(s42.east) -- (c42.west);
\draw
[-,rounded corners,line width=1pt,d
otted]
(c44.east) -- ([xshift=0.8em]c44.east) -- ([xshift=-1.2em,yshift=2.3em]s41.west) -- ([xshift=2.7em,,yshift=2.3
em]s41.east) -- (c41.north);
\draw
[-,rounded corners,line width=1pt,d
ott
ed]
(c44.east) -- (s41.west);
\draw
[-,rounded corners,line width=1pt,d
ott
ed]
(s41.east) -- (c41.west);
\draw
[-,rounded corners,line width=1pt,d
ott
ed]
(c41.east) -- (s42.west);
\draw
[-,rounded corners,line width=1pt,d
ott
ed]
(s42.east) -- (c42.west);
\draw
[-,rounded corners,line width=1pt]
(c42.east) -- (s43.west);
\draw
[-,rounded corners,line width=1pt]
(s43.east) -- (c43.west);
\draw
[->,rounded corners,line width=1pt]
(c43.east) -- ([xshift=2em]c43.east);
...
...
Book/Chapter7/Figures/learning-rate.tex
查看文件 @
2dfaa569
\begin{center}
\begin{tikzpicture}
\begin{tikzpicture}
[scale=1.3]
\footnotesize
{
\begin{axis}
[
width=.40
\textwidth
,
height=.30
\textwidth
,
legend style=
{
at=
{
(0.60,0.08)
}
, anchor=south west
}
,
xlabel=
{
\
footnote
size
{
更新次数(10k)
}}
,
ylabel=
{
\
footnotesize
{
学习率 (
\scriptsize
{$
10
^{
-
3
}$
)
}
}}
,
xlabel=
{
\
script
size
{
更新次数(10k)
}}
,
ylabel=
{
\
scriptsize
{
学习率 (
$
10
^{
-
3
}$
)
}}
,
ylabel style=
{
yshift=-1em
}
,xlabel style=
{
yshift=0.0em
}
,
yticklabel style=
{
/pgf/number format/precision=2,/pgf/number format/fixed zerofill
}
,
ymin=0,ymax=2.2, ytick=
{
0.5, 1, 1.5, 2
}
,
...
...
Book/Chapter7/Figures/progressive-training.tex
查看文件 @
2dfaa569
...
...
@@ -4,57 +4,57 @@
\begin{tikzpicture}
\begin{scope}
\node
[anchor=east,fill=orange!20,draw
=orange,rounded corners=3pt,minimum height=1.4em,minimum width=1.4em] (s11) at (-0.5em, 0)
{$
\times
h
$
}
;
\node
[rectangle,anchor=west,fill=blue!20,draw
=blue,rounded corners=3pt,minimum height=1.4em,minimum width=1.5em] (s12) at ([xshift=1.5
em]s11.east)
{}
;
\node
[anchor=east,fill=orange!20,draw
,rounded corners=3pt,minimum height=1.6em,minimum width=1.6em] (s11) at (-0.5em, 0)
{
\footnotesize
{$
\times
h
$}
}
;
\node
[rectangle,anchor=west,fill=blue!20,draw
,rounded corners=3pt,minimum height=1.6em,minimum width=1.6em] (s12) at ([xshift=1.2
em]s11.east)
{}
;
\node
[anchor=north,fill=orange!20,draw
=orange,rounded corners=3pt,minimum height=1.4em,minimum width=1.4em] (s21) at ([yshift=-1.8em]s11.south)
{$
\times
h
$
}
;
\node
[anchor=west,fill=orange!20,draw=red,rounded corners=3pt,minimum height=1.
4em,minimum width=1.4em,dashed] (s22) at ([xshift=1.5em]s21.east)
{$
\times
h
$
}
;
\node
[anchor=west,fill=blue!20,draw
=blue,rounded corners=3pt,minimum height=1.4em,minimum width=1.5em] (s23) at ([xshift=1.5
em]s22.east)
{}
;
\node
[anchor=north,fill=orange!20,draw
,rounded corners=3pt,minimum height=1.6em,minimum width=1.6em] (s21) at ([yshift=-1.2em]s11.south)
{
\footnotesize
{$
\times
h
$}
}
;
\node
[anchor=west,fill=orange!20,draw=red,rounded corners=3pt,minimum height=1.
6em,minimum width=1.6em,dashed] (s22) at ([xshift=1.2em]s21.east)
{
\footnotesize
{$
\times
h
$}
}
;
\node
[anchor=west,fill=blue!20,draw
,rounded corners=3pt,minimum height=1.6em,minimum width=1.6em] (s23) at ([xshift=1.2
em]s22.east)
{}
;
\node
[anchor=north,fill=orange!20,draw
=orange,rounded corners=3pt,minimum height=1.4em,minimum width=1.4em] (s31) at ([yshift=-1.8em]s21.south)
{$
\times
h
$
}
;
\node
[anchor=west,fill=orange!20,draw
=orange,rounded corners=3pt,minimum height=1.4em,minimum width=1.4em] (s32) at ([xshift=1.5em]s31.east)
{$
\times
h
$
}
;
\node
[anchor=west,fill=orange!20,draw=red,rounded corners=3pt,minimum height=1.
4em,minimum width=1.4em,dashed] (s33) at ([xshift=1.5em]s32.east)
{$
\times
h
$
}
;
\node
[anchor=west,fill=blue!20,draw
=blue,rounded corners=3pt,minimum height=1.4em,minimum width=1.5em] (s34) at ([xshift=1.5
em]s33.east)
{}
;
\node
[anchor=north,fill=orange!20,draw
,rounded corners=3pt,minimum height=1.6em,minimum width=1.6em] (s31) at ([yshift=-1.2em]s21.south)
{
\footnotesize
{$
\times
h
$}
}
;
\node
[anchor=west,fill=orange!20,draw
,rounded corners=3pt,minimum height=1.6em,minimum width=1.6em] (s32) at ([xshift=1.2em]s31.east)
{
\footnotesize
{$
\times
h
$}
}
;
\node
[anchor=west,fill=orange!20,draw=red,rounded corners=3pt,minimum height=1.
6em,minimum width=1.6em,dashed] (s33) at ([xshift=1.2em]s32.east)
{
\footnotesize
{$
\times
h
$}
}
;
\node
[anchor=west,fill=blue!20,draw
,rounded corners=3pt,minimum height=1.6em,minimum width=1.6em] (s34) at ([xshift=1.2
em]s33.east)
{}
;
\node
[anchor=north,fill=orange!20,draw
=orange,rounded corners=3pt,minimum height=1.4em,minimum width=1.4em] (s41) at ([yshift=-1.8em]s31.south)
{$
\times
h
$
}
;
\node
[anchor=west,fill=orange!20,draw
=orange,rounded corners=3pt,minimum height=1.4em,minimum width=1.4em] (s42) at ([xshift=1.5em]s41.east)
{$
\times
h
$
}
;
\node
[anchor=west,fill=orange!20,draw
=orange,rounded corners=3pt,minimum height=1.4em,minimum width=1.4em] (s43) at ([xshift=1.5em]s42.east)
{$
\times
h
$
}
;
\node
[anchor=west,fill=orange!20,draw=red,rounded corners=3pt,minimum height=1.
4em,minimum width=1.4em,dashed] (s44) at ([xshift=1.5em]s43.east)
{$
\times
h
$
}
;
\node
[anchor=west,fill=blue!20,draw
=blue,rounded corners=3pt,minimum height=1.4em,minimum width=1.5em] (s45) at ([xshift=1.5
em]s44.east)
{}
;
\node
[anchor=north,fill=orange!20,draw
,rounded corners=3pt,minimum height=1.6em,minimum width=1.6em] (s41) at ([yshift=-1.2em]s31.south)
{
\footnotesize
{$
\times
h
$}
}
;
\node
[anchor=west,fill=orange!20,draw
,rounded corners=3pt,minimum height=1.6em,minimum width=1.6em] (s42) at ([xshift=1.2em]s41.east)
{
\footnotesize
{$
\times
h
$}
}
;
\node
[anchor=west,fill=orange!20,draw
,rounded corners=3pt,minimum height=1.6em,minimum width=1.6em] (s43) at ([xshift=1.2em]s42.east)
{
\footnotesize
{$
\times
h
$}
}
;
\node
[anchor=west,fill=orange!20,draw=red,rounded corners=3pt,minimum height=1.
6em,minimum width=1.6em,dashed] (s44) at ([xshift=1.2em]s43.east)
{
\footnotesize
{$
\times
h
$}
}
;
\node
[anchor=west,fill=blue!20,draw
,rounded corners=3pt,minimum height=1.6em,minimum width=1.6em] (s45) at ([xshift=1.2
em]s44.east)
{}
;
\node
[anchor=east] (p1) at ([xshift=-2em]s11.west)
{
step 1
}
;
\node
[anchor=east] (p2) at ([xshift=-2em]s21.west)
{
step 2
}
;
\node
[anchor=east] (p3) at ([xshift=-2em]s31.west)
{
step 3
}
;
\node
[anchor=east] (p4) at ([xshift=-2em]s41.west)
{
step 4
}
;
\node
[anchor=east] (p1) at ([xshift=-2em]s11.west)
{
\footnotesize
{
step 1
}
}
;
\node
[anchor=east] (p2) at ([xshift=-2em]s21.west)
{
\footnotesize
{
step 2
}
}
;
\node
[anchor=east] (p3) at ([xshift=-2em]s31.west)
{
\footnotesize
{
step 3
}
}
;
\node
[anchor=east] (p4) at ([xshift=-2em]s41.west)
{
\footnotesize
{
step 4
}
}
;
\node
[anchor=south,fill=orange!20,draw
=orange,rounded corners=3pt,minimum height=1.4em,minimum width=1.4em] (b1) at ([xshift=-0.2em,yshift=2
em]p1.north)
{}
;
\node
[anchor=west] (b2) at (b1.east)
{
:编码器
}
;
\node
[anchor=west,fill=blue!20,draw
=blue
,rounded corners=3pt,minimum height=1.4em,minimum width=1.4em] (b3) at ([xshift=1em]b2.east)
{}
;
\node
[anchor=west] (b4) at (b3.east)
{
:解码器
}
;
\node
[anchor=west] (b5) at ([xshift=2
.5em]b4.east)
{
:拷贝
}
;
\draw
[-latex,thick,red,dashed]
([xshift=0.
2
em]b4.east) -- (b5.west);
\node
[anchor=south,fill=orange!20,draw
,rounded corners=3pt,minimum height=1.4em,minimum width=1.4em] (b1) at ([xshift=-0.2em,yshift=1.6
em]p1.north)
{}
;
\node
[anchor=west] (b2) at (b1.east)
{
\footnotesize
{
:编码器
}
}
;
\node
[anchor=west,fill=blue!20,draw,rounded corners=3pt,minimum height=1.4em,minimum width=1.4em] (b3) at ([xshift=1em]b2.east)
{}
;
\node
[anchor=west] (b4) at (b3.east)
{
\footnotesize
{
:解码器
}
}
;
\node
[anchor=west] (b5) at ([xshift=2
em]b4.east)
{
\footnotesize
{
:拷贝
}
}
;
\draw
[-latex,thick,red,dashed]
([xshift=0.
5
em]b4.east) -- (b5.west);
\draw
[-latex, line width=0.8pt] ([xshift=-1.
5
em]s11.west) -- (s11.west);
\draw
[-latex, line width=0.8pt] ([xshift=-1.
2
em]s11.west) -- (s11.west);
\draw
[-latex, line width=0.8pt] (s11.east) -- (s12.west);
\draw
[-latex, line width=0.8pt] (s12.east) -- ([xshift=1.
5
em]s12.east);
\draw
[-latex, line width=0.8pt] (s12.east) -- ([xshift=1.
2
em]s12.east);
\draw
[-latex, line width=0.8pt] ([xshift=-1.
5
em]s21.west) -- (s21.west);
\draw
[-latex, line width=0.8pt] ([xshift=-1.
2
em]s21.west) -- (s21.west);
\draw
[-latex, line width=0.8pt] (s21.east) -- (s22.west);
\draw
[-latex, line width=0.8pt] (s22.east) -- (s23.west);
\draw
[-latex, line width=0.8pt] (s23.east) -- ([xshift=1.
5
em]s23.east);
\draw
[-latex, line width=0.8pt] (s23.east) -- ([xshift=1.
2
em]s23.east);
\draw
[-latex, line width=0.8pt] ([xshift=-1.
5
em]s31.west) -- (s31.west);
\draw
[-latex, line width=0.8pt] ([xshift=-1.
2
em]s31.west) -- (s31.west);
\draw
[-latex, line width=0.8pt] (s31.east) -- (s32.west);
\draw
[-latex, line width=0.8pt] (s32.east) -- (s33.west);
\draw
[-latex, line width=0.8pt] (s33.east) -- (s34.west);
\draw
[-latex, line width=0.8pt] (s34.east) -- ([xshift=1.
5
em]s34.east);
\draw
[-latex, line width=0.8pt] (s34.east) -- ([xshift=1.
2
em]s34.east);
\draw
[-latex, line width=0.8pt] ([xshift=-1.
5
em]s41.west) -- (s41.west);
\draw
[-latex, line width=0.8pt] ([xshift=-1.
2
em]s41.west) -- (s41.west);
\draw
[-latex, line width=0.8pt] (s41.east) -- (s42.west);
\draw
[-latex, line width=0.8pt] (s42.east) -- (s43.west);
\draw
[-latex, line width=0.8pt] (s43.east) -- (s44.west);
\draw
[-latex, line width=0.8pt] (s44.east) -- (s45.west);
\draw
[-latex, line width=0.8pt] (s45.east) -- ([xshift=1.
5
em]s45.east);
\draw
[-latex, line width=0.8pt] (s45.east) -- ([xshift=1.
2
em]s45.east);
\draw
[-latex,thick,red,dashed]
(s11.south)..controls +(south:1em) and +(north:1.2em)..(s22.north);
\draw
[-latex,thick,red,dashed]
(s22.south)..controls +(south:1em) and +(north:1.2em)..(s33.north);
...
...
Book/Chapter7/Figures/sparse-connections-between-different-groups.tex
查看文件 @
2dfaa569
%%%------------------------------------------------------------------------------------------------------------
%%% 短语系统的问题 - 一个实例
\begin{center}
\begin{tikzpicture}
\begin{scope}
...
...
@@ -29,10 +28,10 @@
\node
[anchor=east] (p3) at ([xshift=-4em]s31.west)
{$
p
=
2
$}
;
\node
[anchor=east] (p4) at ([xshift=-4em]s41.west)
{$
p
=
4
$}
;
\node
[anchor=north] (p5) at ([yshift=-1em]p3.south)
{$
\cdots
$}
;
\node
[anchor=south,fill=orange!20,draw,rounded corners=3pt,minimum height=1.4em,minimum width=1.4em] (b1) at ([xshift=-0.6em,yshift=2em]p1.north)
{}
;
\node
[anchor=west] (b2) at (b1.east)
{
:Layer
}
;
\node
[anchor=south,fill=orange!20,draw,rounded corners=3pt,minimum height=1.4em,minimum width=1.4em] (b1) at ([xshift=-0.6em,yshift=
1.
2em]p1.north)
{}
;
\node
[anchor=west] (b2) at (b1.east)
{
\footnotesize
{
:Layer
}
}
;
\node
[anchor=west,draw=red,rounded corners=3pt,minimum height=1.4em,minimum width=1.4em,dashed,line width=0.8pt] (b3) at ([xshift=1em]b2.east)
{}
;
\node
[anchor=west] (b4) at (b3.east)
{
:Block
}
;
\node
[anchor=west] (b4) at (b3.east)
{
\footnotesize
{
:Block
}
}
;
\draw
[-latex, line width=0.8pt] ([xshift=-2em]s11.west) -- (s11.west);
\draw
[-latex, line width=0.8pt] (s11.east) -- (s12.west);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论