forked from horance-liu/tensorflow-internals
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tensorflow-internals.tex
139 lines (108 loc) · 3.47 KB
/
tensorflow-internals.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
%%%%%%%%------------------------------------------------------------------------
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
%%%%%%%%------------------------------------------------------------------------
%%%% 导言区
%% 文档类型为article
\documentclass[a4paper, 10pt]{book}
%1m = 39.4 inch
%大18开 (18.5cm * 23cm)
%\usepackage[left=3.25cm, right=3.25cm, top=2.3cm,bottom=1.4cm]{geometry}
\usepackage{geometry}
\geometry{left=3.75cm,right=3.25cm,top=3cm,bottom=2.5cm}
%% en_preamble包含基本的宏包配置
\input{style/en_preamble}
%% 如果不写中文的话就不需要引用xecjk_preamble里面的配置
\input{style/xecjk_preamble}
\input{style/coding}
% \usepackage[
% placement=center,
% angle=45,
% scale=20,
% color=black!40,
% %hshift=60,
% %vshift=-5
% ]{background}
% \backgroundsetup{contents={样章}}
% \backgroundsetup{contents={\includegraphics[width=0.2\textwidth]{figures/cock.jpg}}}
\newcommand{\myclearpage}{\clearpage{\pagestyle{empty}\cleardoublepage}}
\newcommand{\mydedicate}{\clearpage{\pagestyle{empty}\cleardedicatepage}}
%%%% 导言区结束
%%%%%%%%------------------------------------------------------------------------
%%%%%%%%------------------------------------------------------------------------
%%%% 正文部分
\begin{document}
\frontmatter
\pagestyle{empty}
%%自定义封面
\def\titlename{TensorFlow内核剖析}
\def\subtitle{TensorFlow Internals}
\def\authors{刘光聪\ 著}
% \def\orgnization{\ascii{}}
\input{style/title}
\myclearpage
\mydedicate
\input{contents/foreword}
\myclearpage
\input{contents/preface}
\myclearpage
\tableofcontents
\myclearpage
\def\thelstlisting{\thechapter-\arabic{lstlisting}}
%% 中文习惯是设定首行缩进为2em。
%% 注意此设置一定要在document环境之中,这可能与\setlength作用范围相关
\setlength{\parindent}{2em}
%%%%%%%%%%%%%%%%%%%%%%
%%开始正文,页面计数从正文开始
\mainmatter
\setcounter{page}{1}
\pagestyle{fancy}
% \input{contents/logistic-regression}
\part{基础知识}
\input{contents/introduction}
\input{contents/prog-env}
\input{contents/ice-breaker}
\part{系统架构}
\input{contents/architecture}
\input{contents/c-api}
\part{编程模型}
\input{contents/graph}
\input{contents/device}
\input{contents/session}
\input{contents/variable}
\input{contents/queue}
\input{contents/essential-op}
\part{运行模型}
\input{contents/local}
\input{contents/distributed}
\part{模型训练}
\input{contents/bp}
\input{contents/input-pipeline}
\input{contents/saver}
\input{contents/monitored-session}
%%%%%%%%%%%%%%%%%%%%%
\appendix
\part{附录}
\input{contents/code-reading}
\input{contents/learning}
%%%%%%%%%%%%%%%%%%%%
\backmatter
% \listoffigures
% \myclearpage
% \listoftables
% \myclearpage
\bibliographystyle{alpha}
\input{contents/biblio}
\end{document}
%%%% 正文部分结束
%%%%%%%%------------------------------------------------------------------------