layer.rst 6.9 KB
Newer Older
L
Luo Tao 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13
..  _api_v2.layer:

======
Layers
======

Data layer
===========

..  _api_v2.layer_data:

data
----
L
Luo Tao 已提交
14
..  autoclass:: paddle.v2.layer.data
L
Luo Tao 已提交
15 16 17 18 19 20 21 22 23
    :noindex:

Fully Connected Layers
======================

..  _api_v2.layer_fc:

fc
--
L
Luo Tao 已提交
24
..  autoclass:: paddle.v2.layer.fc
L
Luo Tao 已提交
25 26 27 28
    :noindex:

selective_fc
------------
L
Luo Tao 已提交
29
..  autoclass:: paddle.v2.layer.selective_fc
L
Luo Tao 已提交
30 31 32 33 34 35 36
    :noindex:

Conv Layers
===========

conv_operator
-------------
L
Luo Tao 已提交
37
..  autoclass:: paddle.v2.layer.conv_operator
L
Luo Tao 已提交
38 39 40 41
    :noindex:

conv_projection
---------------
L
Luo Tao 已提交
42
..  autoclass:: paddle.v2.layer.conv_projection
L
Luo Tao 已提交
43 44 45 46
    :noindex:

conv_shift
----------
L
Luo Tao 已提交
47
..  autoclass:: paddle.v2.layer.conv_shift
L
Luo Tao 已提交
48 49 50 51
    :noindex:

img_conv
--------
L
Luo Tao 已提交
52
..  autoclass:: paddle.v2.layer.img_conv
L
Luo Tao 已提交
53 54 55 56 57 58
    :noindex:

..  _api_v2.layer_context_projection:

context_projection 
------------------
L
Luo Tao 已提交
59
..  autoclass:: paddle.v2.layer.context_projection
L
Luo Tao 已提交
60 61 62 63 64 65 66
    :noindex:

Image Pooling Layer
===================

img_pool
--------
L
Luo Tao 已提交
67
..  autoclass:: paddle.v2.layer.img_pool
L
Luo Tao 已提交
68 69 70 71
    :noindex:   

spp
---
L
Luo Tao 已提交
72
..  autoclass:: paddle.v2.layer.spp
L
Luo Tao 已提交
73 74 75 76
    :noindex:

maxout
------
L
Luo Tao 已提交
77
..  autoclass:: paddle.v2.layer.maxout
L
Luo Tao 已提交
78 79 80 81 82 83 84
    :noindex:

Norm Layer
==========

img_cmrnorm
-----------
L
Luo Tao 已提交
85
..  autoclass:: paddle.v2.layer.img_cmrnorm
L
Luo Tao 已提交
86 87 88 89
    :noindex:

batch_norm
----------
L
Luo Tao 已提交
90
..  autoclass:: paddle.v2.layer.batch_norm
L
Luo Tao 已提交
91 92 93 94
    :noindex:

sum_to_one_norm
---------------
L
Luo Tao 已提交
95
..  autoclass:: paddle.v2.layer.sum_to_one_norm
L
Luo Tao 已提交
96 97
    :noindex:
    
G
gaoyuan 已提交
98
cross_channel_norm
G
gaoyuan 已提交
99
------------------
L
Luo Tao 已提交
100
..  autoclass:: paddle.v2.layer.cross_channel_norm
G
gaoyuan 已提交
101 102
    :noindex:
    
L
Luo Tao 已提交
103 104 105 106 107
Recurrent Layers
================

recurrent
---------
L
Luo Tao 已提交
108
..  autoclass:: paddle.v2.layer.recurrent
L
Luo Tao 已提交
109 110 111 112
    :noindex:

lstmemory
---------
L
Luo Tao 已提交
113
..  autoclass:: paddle.v2.layer.lstmemory
L
Luo Tao 已提交
114 115 116 117
    :noindex:

grumemory
---------
L
Luo Tao 已提交
118
..  autoclass:: paddle.v2.layer.grumemory
L
Luo Tao 已提交
119 120 121 122 123 124 125
    :noindex:

Recurrent Layer Group
=====================

memory
------
L
Luo Tao 已提交
126
..  autoclass:: paddle.v2.layer.memory
L
Luo Tao 已提交
127 128 129 130
    :noindex:

recurrent_group
---------------
L
Luo Tao 已提交
131
..  autoclass:: paddle.v2.layer.recurrent_group
L
Luo Tao 已提交
132
    :noindex:
133

L
Luo Tao 已提交
134 135
lstm_step
---------
L
Luo Tao 已提交
136
..  autoclass:: paddle.v2.layer.lstm_step
L
Luo Tao 已提交
137 138 139 140
    :noindex:

gru_step
--------
L
Luo Tao 已提交
141
..  autoclass:: paddle.v2.layer.gru_step
L
Luo Tao 已提交
142 143 144 145
    :noindex:

beam_search
------------
L
Luo Tao 已提交
146
..  autoclass:: paddle.v2.layer.beam_search
L
Luo Tao 已提交
147
    :noindex:
148

L
Luo Tao 已提交
149 150
get_output
----------
L
Luo Tao 已提交
151
..  autoclass:: paddle.v2.layer.get_output
L
Luo Tao 已提交
152
    :noindex:
153

L
Luo Tao 已提交
154 155 156 157 158 159 160
Mixed Layer
===========

..  _api_v2.layer_mixed:

mixed
-----
L
Luo Tao 已提交
161
..  autoclass:: paddle.v2.layer.mixed
L
Luo Tao 已提交
162 163 164 165 166 167
    :noindex:

..  _api_v2.layer_embedding:

embedding
---------
L
Luo Tao 已提交
168
..  autoclass:: paddle.v2.layer.embedding
L
Luo Tao 已提交
169 170 171 172
    :noindex:

scaling_projection
------------------
L
Luo Tao 已提交
173
..  autoclass:: paddle.v2.layer.scaling_projection
L
Luo Tao 已提交
174 175 176 177
    :noindex:

dotmul_projection
-----------------
L
Luo Tao 已提交
178
..  autoclass:: paddle.v2.layer.dotmul_projection
L
Luo Tao 已提交
179 180 181 182
    :noindex:

dotmul_operator
---------------
L
Luo Tao 已提交
183
..  autoclass:: paddle.v2.layer.dotmul_operator
L
Luo Tao 已提交
184 185 186 187
    :noindex:

full_matrix_projection
----------------------
L
Luo Tao 已提交
188
..  autoclass:: paddle.v2.layer.full_matrix_projection
L
Luo Tao 已提交
189 190 191 192
    :noindex:

identity_projection
-------------------
L
Luo Tao 已提交
193
..  autoclass:: paddle.v2.layer.identity_projection
L
Luo Tao 已提交
194 195 196 197 198
    :noindex:


table_projection
----------------
L
Luo Tao 已提交
199
..  autoclass:: paddle.v2.layer.table_projection
L
Luo Tao 已提交
200 201 202 203
    :noindex:

trans_full_matrix_projection
----------------------------
L
Luo Tao 已提交
204
..  autoclass:: paddle.v2.layer.trans_full_matrix_projection
L
Luo Tao 已提交
205
    :noindex:
206

L
Luo Tao 已提交
207 208 209
Aggregate Layers
================

210 211 212 213 214
AggregateLevel
--------------
..  autoclass:: paddle.v2.layer.AggregateLevel
    :noindex:

L
Luo Tao 已提交
215 216 217 218
..  _api_v2.layer_pooling:

pooling
-------
L
Luo Tao 已提交
219
..  autoclass:: paddle.v2.layer.pooling
L
Luo Tao 已提交
220 221 222 223 224 225
    :noindex:

..  _api_v2.layer_last_seq:

last_seq
--------
L
Luo Tao 已提交
226
..  autoclass:: paddle.v2.layer.last_seq
L
Luo Tao 已提交
227 228 229 230 231 232
    :noindex:

..  _api_v2.layer_first_seq:

first_seq
---------
L
Luo Tao 已提交
233
..  autoclass:: paddle.v2.layer.first_seq
L
Luo Tao 已提交
234 235 236 237
    :noindex:

concat
------
L
Luo Tao 已提交
238
..  autoclass:: paddle.v2.layer.concat
L
Luo Tao 已提交
239 240 241 242
    :noindex:

seq_concat
----------
L
Luo Tao 已提交
243
..  autoclass:: paddle.v2.layer.seq_concat
L
Luo Tao 已提交
244 245 246 247 248 249 250
    :noindex:

Reshaping Layers
================

block_expand
------------
L
Luo Tao 已提交
251
..  autoclass:: paddle.v2.layer.block_expand
L
Luo Tao 已提交
252 253 254 255
    :noindex:

..  _api_v2.layer_expand:

256 257 258 259 260
ExpandLevel
-----------
..  autoclass:: paddle.v2.layer.ExpandLevel
    :noindex:

L
Luo Tao 已提交
261 262
expand
------
L
Luo Tao 已提交
263
..  autoclass:: paddle.v2.layer.expand
L
Luo Tao 已提交
264 265 266 267
    :noindex:

repeat
------
L
Luo Tao 已提交
268
..  autoclass:: paddle.v2.layer.repeat
L
Luo Tao 已提交
269 270 271 272
    :noindex:

rotate
------
L
Luo Tao 已提交
273
..  autoclass:: paddle.v2.layer.rotate
L
Luo Tao 已提交
274 275 276 277
    :noindex:

seq_reshape
-----------
L
Luo Tao 已提交
278
..  autoclass:: paddle.v2.layer.seq_reshape
L
Luo Tao 已提交
279 280 281 282 283 284 285
    :noindex:

Math Layers
===========

addto
-----
L
Luo Tao 已提交
286
..  autoclass:: paddle.v2.layer.addto
L
Luo Tao 已提交
287 288 289 290
    :noindex:

linear_comb
-----------
L
Luo Tao 已提交
291
..  autoclass:: paddle.v2.layer.linear_comb
L
Luo Tao 已提交
292 293 294 295
    :noindex:

interpolation
-------------
L
Luo Tao 已提交
296
..  autoclass:: paddle.v2.layer.interpolation
L
Luo Tao 已提交
297 298 299 300
    :noindex:

bilinear_interp
---------------
L
Luo Tao 已提交
301
..  autoclass:: paddle.v2.layer.bilinear_interp
L
Luo Tao 已提交
302 303 304 305
    :noindex:

power
-----
L
Luo Tao 已提交
306
..  autoclass:: paddle.v2.layer.power
L
Luo Tao 已提交
307 308 309 310
    :noindex:

scaling
-------
L
Luo Tao 已提交
311
..  autoclass:: paddle.v2.layer.scaling
L
Luo Tao 已提交
312 313 314 315
    :noindex:

slope_intercept
---------------
L
Luo Tao 已提交
316
..  autoclass:: paddle.v2.layer.slope_intercept
L
Luo Tao 已提交
317 318 319 320
    :noindex:

tensor
------
L
Luo Tao 已提交
321
..  autoclass:: paddle.v2.layer.tensor
L
Luo Tao 已提交
322 323 324 325 326 327
    :noindex:

..  _api_v2.layer_cos_sim:

cos_sim
-------
L
Luo Tao 已提交
328
..  autoclass:: paddle.v2.layer.cos_sim
L
Luo Tao 已提交
329 330 331 332
    :noindex:

trans
-----
L
Luo Tao 已提交
333
..  autoclass:: paddle.v2.layer.trans
L
Luo Tao 已提交
334 335 336 337 338 339 340
    :noindex:

Sampling Layers
===============

maxid
-----
L
Luo Tao 已提交
341
..  autoclass:: paddle.v2.layer.max_id
L
Luo Tao 已提交
342 343 344 345
    :noindex:

sampling_id
-----------
L
Luo Tao 已提交
346
..  autoclass:: paddle.v2.layer.sampling_id
L
Luo Tao 已提交
347 348 349 350 351 352 353
    :noindex:

Slicing and Joining Layers
==========================

pad
----
L
Luo Tao 已提交
354
..  autoclass:: paddle.v2.layer.pad
L
Luo Tao 已提交
355 356 357 358 359 360 361 362 363
    :noindex:

..  _api_v2.layer_costs:

Cost Layers
===========

cross_entropy_cost
------------------
L
Luo Tao 已提交
364
..  autoclass:: paddle.v2.layer.cross_entropy_cost
L
Luo Tao 已提交
365 366 367 368
    :noindex:

cross_entropy_with_selfnorm_cost
--------------------------------
L
Luo Tao 已提交
369
..  autoclass:: paddle.v2.layer.cross_entropy_with_selfnorm_cost
L
Luo Tao 已提交
370 371 372 373
    :noindex:

multi_binary_label_cross_entropy_cost
-------------------------------------
L
Luo Tao 已提交
374
..  autoclass:: paddle.v2.layer.multi_binary_label_cross_entropy_cost
L
Luo Tao 已提交
375 376 377 378
    :noindex:

huber_cost
----------
L
Luo Tao 已提交
379
..  autoclass:: paddle.v2.layer.huber_cost
L
Luo Tao 已提交
380 381 382 383
    :noindex:

lambda_cost
-----------
L
Luo Tao 已提交
384 385 386 387 388 389
..  autoclass:: paddle.v2.layer.lambda_cost
    :noindex:

mse_cost
--------
..  autoclass:: paddle.v2.layer.mse_cost
L
Luo Tao 已提交
390 391 392 393
    :noindex:

rank_cost
---------
L
Luo Tao 已提交
394
..  autoclass:: paddle.v2.layer.rank_cost
L
Luo Tao 已提交
395 396 397 398
    :noindex:

sum_cost
---------
L
Luo Tao 已提交
399
..  autoclass:: paddle.v2.layer.sum_cost
L
Luo Tao 已提交
400 401 402 403
    :noindex:

crf
---
L
Luo Tao 已提交
404
..  autoclass:: paddle.v2.layer.crf
L
Luo Tao 已提交
405 406 407 408
    :noindex:

crf_decoding
------------
L
Luo Tao 已提交
409
..  autoclass:: paddle.v2.layer.crf_decoding
L
Luo Tao 已提交
410 411 412 413
    :noindex:

ctc
---
L
Luo Tao 已提交
414
..  autoclass:: paddle.v2.layer.ctc
L
Luo Tao 已提交
415 416 417 418
    :noindex:

warp_ctc
--------
L
Luo Tao 已提交
419
..  autoclass:: paddle.v2.layer.warp_ctc
L
Luo Tao 已提交
420 421 422 423
    :noindex:

nce
---
L
Luo Tao 已提交
424
..  autoclass:: paddle.v2.layer.nce
L
Luo Tao 已提交
425 426 427 428
    :noindex:

hsigmoid
---------
L
Luo Tao 已提交
429
..  autoclass:: paddle.v2.layer.hsigmoid
L
Luo Tao 已提交
430 431
    :noindex:

D
rename  
dangqingqing 已提交
432 433
smooth_l1_cost
--------------
434
..  autoclass:: paddle.v2.layer.smooth_l1_cost
435 436
    :noindex:

437
Check Layer
L
Luo Tao 已提交
438 439 440 441
============

eos
---
L
Luo Tao 已提交
442
..  autoclass:: paddle.v2.layer.eos
L
Luo Tao 已提交
443
    :noindex:
444 445

Activation with learnable parameter
C
caoying03 已提交
446
===================================
447 448 449 450 451 452

prelu
--------
..  autoclass:: paddle.v2.layer.prelu
    :noindex: