layer.rst 8.7 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
    :noindex:

..  _api_v2.layer_context_projection:

57
context_projection
L
Luo Tao 已提交
58
------------------
L
Luo Tao 已提交
59
..  autoclass:: paddle.v2.layer.context_projection
L
Luo Tao 已提交
60 61
    :noindex:

D
dangqingqing 已提交
62 63 64 65 66
row_conv
--------
..  autoclass:: paddle.v2.layer.row_conv
    :noindex:

L
Luo Tao 已提交
67 68 69 70 71
Image Pooling Layer
===================

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

spp
---
L
Luo Tao 已提交
77
..  autoclass:: paddle.v2.layer.spp
L
Luo Tao 已提交
78 79 80 81
    :noindex:

maxout
------
L
Luo Tao 已提交
82
..  autoclass:: paddle.v2.layer.maxout
L
Luo Tao 已提交
83 84
    :noindex:

G
guosheng 已提交
85 86 87 88 89
roi_pool
--------
..  autoclass:: paddle.v2.layer.roi_pool
    :noindex:

L
Luo Tao 已提交
90 91 92 93 94
Norm Layer
==========

img_cmrnorm
-----------
L
Luo Tao 已提交
95
..  autoclass:: paddle.v2.layer.img_cmrnorm
L
Luo Tao 已提交
96 97 98 99
    :noindex:

batch_norm
----------
L
Luo Tao 已提交
100
..  autoclass:: paddle.v2.layer.batch_norm
L
Luo Tao 已提交
101 102 103 104
    :noindex:

sum_to_one_norm
---------------
L
Luo Tao 已提交
105
..  autoclass:: paddle.v2.layer.sum_to_one_norm
L
Luo Tao 已提交
106
    :noindex:
107

G
gaoyuan 已提交
108
cross_channel_norm
G
gaoyuan 已提交
109
------------------
L
Luo Tao 已提交
110
..  autoclass:: paddle.v2.layer.cross_channel_norm
G
gaoyuan 已提交
111
    :noindex:
112 113 114 115 116

row_l2_norm
-----------
..  autoclass:: paddle.v2.layer.row_l2_norm
    :noindex:
117

L
Luo Tao 已提交
118 119 120 121 122
Recurrent Layers
================

recurrent
---------
L
Luo Tao 已提交
123
..  autoclass:: paddle.v2.layer.recurrent
L
Luo Tao 已提交
124 125 126 127
    :noindex:

lstmemory
---------
L
Luo Tao 已提交
128
..  autoclass:: paddle.v2.layer.lstmemory
L
Luo Tao 已提交
129 130 131 132
    :noindex:

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

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

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

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

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

gru_step
--------
L
Luo Tao 已提交
156
..  autoclass:: paddle.v2.layer.gru_step
L
Luo Tao 已提交
157 158 159 160
    :noindex:

beam_search
------------
L
Luo Tao 已提交
161
..  autoclass:: paddle.v2.layer.beam_search
L
Luo Tao 已提交
162
    :noindex:
163

L
Luo Tao 已提交
164 165
get_output
----------
L
Luo Tao 已提交
166
..  autoclass:: paddle.v2.layer.get_output
L
Luo Tao 已提交
167
    :noindex:
168

L
Luo Tao 已提交
169 170 171 172 173 174 175
Mixed Layer
===========

..  _api_v2.layer_mixed:

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

..  _api_v2.layer_embedding:

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

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

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

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

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

identity_projection
-------------------
L
Luo Tao 已提交
208
..  autoclass:: paddle.v2.layer.identity_projection
L
Luo Tao 已提交
209 210
    :noindex:

211 212 213 214
slice_projection
-------------------
..  autoclass:: paddle.v2.layer.slice_projection
    :noindex:
L
Luo Tao 已提交
215 216 217

table_projection
----------------
L
Luo Tao 已提交
218
..  autoclass:: paddle.v2.layer.table_projection
L
Luo Tao 已提交
219 220 221 222
    :noindex:

trans_full_matrix_projection
----------------------------
L
Luo Tao 已提交
223
..  autoclass:: paddle.v2.layer.trans_full_matrix_projection
L
Luo Tao 已提交
224
    :noindex:
225

L
Luo Tao 已提交
226 227 228
Aggregate Layers
================

229 230 231 232 233
AggregateLevel
--------------
..  autoclass:: paddle.v2.layer.AggregateLevel
    :noindex:

L
Luo Tao 已提交
234 235 236 237
..  _api_v2.layer_pooling:

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

..  _api_v2.layer_last_seq:

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

..  _api_v2.layer_first_seq:

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

concat
------
L
Luo Tao 已提交
257
..  autoclass:: paddle.v2.layer.concat
L
Luo Tao 已提交
258 259 260 261
    :noindex:

seq_concat
----------
L
Luo Tao 已提交
262
..  autoclass:: paddle.v2.layer.seq_concat
L
Luo Tao 已提交
263 264
    :noindex:

265 266 267 268 269
seq_slice
---------
..  autoclass:: paddle.v2.layer.seq_slice
    :noindex:

270 271 272 273 274
kmax_sequence_score
-------------------
..  autoclass:: paddle.v2.layer.kmax_sequence_score
    :noindex:

275 276 277 278 279
sub_nested_seq
--------------
..  autoclass:: paddle.v2.layer.sub_nested_seq
    :noindex:

L
Luo Tao 已提交
280 281 282 283 284
Reshaping Layers
================

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

..  _api_v2.layer_expand:

290 291 292 293 294
ExpandLevel
-----------
..  autoclass:: paddle.v2.layer.ExpandLevel
    :noindex:

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

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

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

seq_reshape
-----------
L
Luo Tao 已提交
312
..  autoclass:: paddle.v2.layer.seq_reshape
L
Luo Tao 已提交
313 314 315 316 317 318 319
    :noindex:

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

addto
-----
L
Luo Tao 已提交
320
..  autoclass:: paddle.v2.layer.addto
L
Luo Tao 已提交
321 322 323 324
    :noindex:

linear_comb
-----------
L
Luo Tao 已提交
325
..  autoclass:: paddle.v2.layer.linear_comb
L
Luo Tao 已提交
326 327 328 329
    :noindex:

interpolation
-------------
L
Luo Tao 已提交
330
..  autoclass:: paddle.v2.layer.interpolation
L
Luo Tao 已提交
331 332 333 334
    :noindex:

bilinear_interp
---------------
L
Luo Tao 已提交
335
..  autoclass:: paddle.v2.layer.bilinear_interp
L
Luo Tao 已提交
336 337
    :noindex:

R
ranqiu 已提交
338 339 340 341 342 343 344 345 346 347
dot_prod
---------
.. autoclass:: paddle.v2.layer.dot_prod
    :noindex:

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

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

scaling
-------
L
Luo Tao 已提交
355
..  autoclass:: paddle.v2.layer.scaling
L
Luo Tao 已提交
356 357
    :noindex:

358 359 360 361 362
clip
----
..  autoclass:: paddle.v2.layer.clip
    :noindex:

363 364 365 366 367
resize
------
..  autoclass:: paddle.v2.layer.resize
    :noindex:

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

tensor
------
L
Luo Tao 已提交
375
..  autoclass:: paddle.v2.layer.tensor
L
Luo Tao 已提交
376 377 378 379 380 381
    :noindex:

..  _api_v2.layer_cos_sim:

cos_sim
-------
L
Luo Tao 已提交
382
..  autoclass:: paddle.v2.layer.cos_sim
L
Luo Tao 已提交
383 384
    :noindex:

C
caoying03 已提交
385 386 387 388 389
l2_distance
-----------
..  autoclass:: paddle.v2.layer.l2_distance
    :noindex:

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

G
guosheng 已提交
395 396 397 398 399
scale_shift
-----------
..  autoclass:: paddle.v2.layer.scale_shift
    :noindex:

L
Luo Tao 已提交
400 401 402 403 404
Sampling Layers
===============

maxid
-----
L
Luo Tao 已提交
405
..  autoclass:: paddle.v2.layer.max_id
L
Luo Tao 已提交
406 407 408 409
    :noindex:

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

D
dangqingqing 已提交
413 414 415 416 417
multiplex
---------
..  autoclass:: paddle.v2.layer.multiplex
    :noindex:

418 419 420 421 422 423 424
Factorization Machine Layer
============================

factorization_machine
---------------------
..  autoclass:: paddle.v2.layer.factorization_machine
    :noindex:
D
dangqingqing 已提交
425

L
Luo Tao 已提交
426 427 428 429 430
Slicing and Joining Layers
==========================

pad
----
L
Luo Tao 已提交
431
..  autoclass:: paddle.v2.layer.pad
L
Luo Tao 已提交
432 433 434 435 436 437 438 439 440
    :noindex:

..  _api_v2.layer_costs:

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

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

cross_entropy_with_selfnorm_cost
--------------------------------
L
Luo Tao 已提交
446
..  autoclass:: paddle.v2.layer.cross_entropy_with_selfnorm_cost
L
Luo Tao 已提交
447 448 449 450
    :noindex:

multi_binary_label_cross_entropy_cost
-------------------------------------
L
Luo Tao 已提交
451
..  autoclass:: paddle.v2.layer.multi_binary_label_cross_entropy_cost
L
Luo Tao 已提交
452 453
    :noindex:

L
Luo Tao 已提交
454 455 456 457 458
huber_regression_cost
-------------------------
..  autoclass:: paddle.v2.layer.huber_regression_cost
    :noindex:

459 460 461
huber_classification_cost
-------------------------
..  autoclass:: paddle.v2.layer.huber_classification_cost
L
Luo Tao 已提交
462 463 464 465
    :noindex:

lambda_cost
-----------
L
Luo Tao 已提交
466 467 468
..  autoclass:: paddle.v2.layer.lambda_cost
    :noindex:

C
caoying03 已提交
469
square_error_cost
L
Luo Tao 已提交
470
--------
C
caoying03 已提交
471
..  autoclass:: paddle.v2.layer.square_error_cost
L
Luo Tao 已提交
472 473 474 475
    :noindex:

rank_cost
---------
L
Luo Tao 已提交
476
..  autoclass:: paddle.v2.layer.rank_cost
L
Luo Tao 已提交
477 478 479 480
    :noindex:

sum_cost
---------
L
Luo Tao 已提交
481
..  autoclass:: paddle.v2.layer.sum_cost
L
Luo Tao 已提交
482 483 484 485
    :noindex:

crf
---
L
Luo Tao 已提交
486
..  autoclass:: paddle.v2.layer.crf
L
Luo Tao 已提交
487 488 489 490
    :noindex:

crf_decoding
------------
L
Luo Tao 已提交
491
..  autoclass:: paddle.v2.layer.crf_decoding
L
Luo Tao 已提交
492 493 494 495
    :noindex:

ctc
---
L
Luo Tao 已提交
496
..  autoclass:: paddle.v2.layer.ctc
L
Luo Tao 已提交
497 498 499 500
    :noindex:

warp_ctc
--------
L
Luo Tao 已提交
501
..  autoclass:: paddle.v2.layer.warp_ctc
L
Luo Tao 已提交
502 503 504 505
    :noindex:

nce
---
L
Luo Tao 已提交
506
..  autoclass:: paddle.v2.layer.nce
L
Luo Tao 已提交
507 508 509 510
    :noindex:

hsigmoid
---------
L
Luo Tao 已提交
511
..  autoclass:: paddle.v2.layer.hsigmoid
L
Luo Tao 已提交
512 513
    :noindex:

D
rename  
dangqingqing 已提交
514 515
smooth_l1_cost
--------------
516
..  autoclass:: paddle.v2.layer.smooth_l1_cost
517 518
    :noindex:

519 520 521 522 523
multibox_loss
--------------
..  autoclass:: paddle.v2.layer.multibox_loss
    :noindex:

524
Check Layer
L
Luo Tao 已提交
525 526 527 528
============

eos
---
L
Luo Tao 已提交
529
..  autoclass:: paddle.v2.layer.eos
L
Luo Tao 已提交
530
    :noindex:
531

532 533 534 535 536 537 538
Miscs
=====

dropout
--------------
..  autoclass:: paddle.v2.layer.dropout
    :noindex:
539

540
Activation with learnable parameter
C
caoying03 已提交
541
===================================
542 543 544 545 546

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

548 549 550 551 552
gated_unit
-----------
..  autoclass:: paddle.v2.layer.gated_unit
    :noindex:

553 554 555 556
Detection output Layer
======================

detection_output
Y
yangyaming 已提交
557
----------------
558 559
..  autoclass:: paddle.v2.layer.detection_output
    :noindex: