layer.rst.txt 8.8 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
..  _api_v2.layer:

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

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

..  _api_v2.layer_data:

data
----
14
..  autoclass:: paddle.v2.layer.data
15 16 17 18 19 20 21 22 23
    :noindex:

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

..  _api_v2.layer_fc:

fc
--
24
..  autoclass:: paddle.v2.layer.fc
25 26 27 28
    :noindex:

selective_fc
------------
29
..  autoclass:: paddle.v2.layer.selective_fc
30 31 32 33 34 35 36
    :noindex:

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

conv_operator
-------------
37
..  autoclass:: paddle.v2.layer.conv_operator
38 39 40 41
    :noindex:

conv_projection
---------------
42
..  autoclass:: paddle.v2.layer.conv_projection
43 44 45 46
    :noindex:

conv_shift
----------
47
..  autoclass:: paddle.v2.layer.conv_shift
48 49 50 51
    :noindex:

img_conv
--------
52
..  autoclass:: paddle.v2.layer.img_conv
53 54 55 56
    :noindex:

..  _api_v2.layer_context_projection:

57
context_projection
58
------------------
59
..  autoclass:: paddle.v2.layer.context_projection
60 61
    :noindex:

62 63 64 65 66
row_conv
--------
..  autoclass:: paddle.v2.layer.row_conv
    :noindex:

67 68 69 70 71
Image Pooling Layer
===================

img_pool
--------
72
..  autoclass:: paddle.v2.layer.img_pool
73
    :noindex:
74 75 76

spp
---
77
..  autoclass:: paddle.v2.layer.spp
78 79 80 81
    :noindex:

maxout
------
82
..  autoclass:: paddle.v2.layer.maxout
83 84
    :noindex:

85 86 87 88 89
roi_pool
--------
..  autoclass:: paddle.v2.layer.roi_pool
    :noindex:

90 91 92 93 94
Norm Layer
==========

img_cmrnorm
-----------
95
..  autoclass:: paddle.v2.layer.img_cmrnorm
96 97 98 99
    :noindex:

batch_norm
----------
100
..  autoclass:: paddle.v2.layer.batch_norm
101 102 103 104
    :noindex:

sum_to_one_norm
---------------
105
..  autoclass:: paddle.v2.layer.sum_to_one_norm
106
    :noindex:
107

108 109
cross_channel_norm
------------------
110
..  autoclass:: paddle.v2.layer.cross_channel_norm
111
    :noindex:
112 113 114 115 116

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

118 119 120 121 122
Recurrent Layers
================

recurrent
---------
123
..  autoclass:: paddle.v2.layer.recurrent
124 125 126 127
    :noindex:

lstmemory
---------
128
..  autoclass:: paddle.v2.layer.lstmemory
129 130 131 132
    :noindex:

grumemory
---------
133
..  autoclass:: paddle.v2.layer.grumemory
134 135 136 137 138 139 140
    :noindex:

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

memory
------
141
..  autoclass:: paddle.v2.layer.memory
142 143 144 145
    :noindex:

recurrent_group
---------------
146
..  autoclass:: paddle.v2.layer.recurrent_group
147
    :noindex:
148

149 150
lstm_step
---------
151
..  autoclass:: paddle.v2.layer.lstm_step
152 153 154 155
    :noindex:

gru_step
--------
156
..  autoclass:: paddle.v2.layer.gru_step
157 158 159 160
    :noindex:

beam_search
------------
161
..  autoclass:: paddle.v2.layer.beam_search
162
    :noindex:
163

164 165
get_output
----------
166
..  autoclass:: paddle.v2.layer.get_output
167
    :noindex:
168

169 170 171 172 173 174 175
Mixed Layer
===========

..  _api_v2.layer_mixed:

mixed
-----
176
..  autoclass:: paddle.v2.layer.mixed
177 178 179 180 181 182
    :noindex:

..  _api_v2.layer_embedding:

embedding
---------
183
..  autoclass:: paddle.v2.layer.embedding
184 185 186 187
    :noindex:

scaling_projection
------------------
188
..  autoclass:: paddle.v2.layer.scaling_projection
189 190 191 192
    :noindex:

dotmul_projection
-----------------
193
..  autoclass:: paddle.v2.layer.dotmul_projection
194 195 196 197
    :noindex:

dotmul_operator
---------------
198
..  autoclass:: paddle.v2.layer.dotmul_operator
199 200 201 202
    :noindex:

full_matrix_projection
----------------------
203
..  autoclass:: paddle.v2.layer.full_matrix_projection
204 205 206 207
    :noindex:

identity_projection
-------------------
208
..  autoclass:: paddle.v2.layer.identity_projection
209 210
    :noindex:

211 212 213 214
slice_projection
-------------------
..  autoclass:: paddle.v2.layer.slice_projection
    :noindex:
215 216 217

table_projection
----------------
218
..  autoclass:: paddle.v2.layer.table_projection
219 220 221 222
    :noindex:

trans_full_matrix_projection
----------------------------
223
..  autoclass:: paddle.v2.layer.trans_full_matrix_projection
224
    :noindex:
225

226 227 228
Aggregate Layers
================

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

234 235 236 237
..  _api_v2.layer_pooling:

pooling
-------
238
..  autoclass:: paddle.v2.layer.pooling
239 240 241 242 243 244
    :noindex:

..  _api_v2.layer_last_seq:

last_seq
--------
245
..  autoclass:: paddle.v2.layer.last_seq
246 247 248 249 250 251
    :noindex:

..  _api_v2.layer_first_seq:

first_seq
---------
252
..  autoclass:: paddle.v2.layer.first_seq
253 254
    :noindex:

255 256 257 258 259
sub_seq
---------
..  autoclass:: paddle.v2.layer.sub_seq
    :noindex:

260 261
concat
------
262
..  autoclass:: paddle.v2.layer.concat
263 264 265 266
    :noindex:

seq_concat
----------
267
..  autoclass:: paddle.v2.layer.seq_concat
268 269
    :noindex:

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

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

280 281 282 283 284
sub_nested_seq
--------------
..  autoclass:: paddle.v2.layer.sub_nested_seq
    :noindex:

285 286 287 288 289
Reshaping Layers
================

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

..  _api_v2.layer_expand:

295 296 297 298 299
ExpandLevel
-----------
..  autoclass:: paddle.v2.layer.ExpandLevel
    :noindex:

300 301
expand
------
302
..  autoclass:: paddle.v2.layer.expand
303 304 305 306
    :noindex:

repeat
------
307
..  autoclass:: paddle.v2.layer.repeat
308 309 310 311
    :noindex:

rotate
------
312
..  autoclass:: paddle.v2.layer.rotate
313 314 315 316
    :noindex:

seq_reshape
-----------
317
..  autoclass:: paddle.v2.layer.seq_reshape
318 319 320 321 322 323 324
    :noindex:

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

addto
-----
325
..  autoclass:: paddle.v2.layer.addto
326 327 328 329
    :noindex:

linear_comb
-----------
330
..  autoclass:: paddle.v2.layer.linear_comb
331 332 333 334
    :noindex:

interpolation
-------------
335
..  autoclass:: paddle.v2.layer.interpolation
336 337 338 339
    :noindex:

bilinear_interp
---------------
340
..  autoclass:: paddle.v2.layer.bilinear_interp
341 342
    :noindex:

343 344 345 346 347 348 349 350 351 352
dot_prod
---------
.. autoclass:: paddle.v2.layer.dot_prod
    :noindex:

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

353 354
power
-----
355
..  autoclass:: paddle.v2.layer.power
356 357 358 359
    :noindex:

scaling
-------
360
..  autoclass:: paddle.v2.layer.scaling
361 362
    :noindex:

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

368 369 370 371 372
resize
------
..  autoclass:: paddle.v2.layer.resize
    :noindex:

373 374
slope_intercept
---------------
375
..  autoclass:: paddle.v2.layer.slope_intercept
376 377 378 379
    :noindex:

tensor
------
380
..  autoclass:: paddle.v2.layer.tensor
381 382 383 384 385 386
    :noindex:

..  _api_v2.layer_cos_sim:

cos_sim
-------
387
..  autoclass:: paddle.v2.layer.cos_sim
388 389
    :noindex:

390 391 392 393 394
l2_distance
-----------
..  autoclass:: paddle.v2.layer.l2_distance
    :noindex:

395 396
trans
-----
397
..  autoclass:: paddle.v2.layer.trans
398 399
    :noindex:

400 401 402 403 404
scale_shift
-----------
..  autoclass:: paddle.v2.layer.scale_shift
    :noindex:

405 406 407 408 409
Sampling Layers
===============

maxid
-----
410
..  autoclass:: paddle.v2.layer.max_id
411 412 413 414
    :noindex:

sampling_id
-----------
415
..  autoclass:: paddle.v2.layer.sampling_id
416 417
    :noindex:

418 419 420 421 422
multiplex
---------
..  autoclass:: paddle.v2.layer.multiplex
    :noindex:

423 424 425 426 427 428 429
Factorization Machine Layer
============================

factorization_machine
---------------------
..  autoclass:: paddle.v2.layer.factorization_machine
    :noindex:
430

431 432 433 434 435
Slicing and Joining Layers
==========================

pad
----
436
..  autoclass:: paddle.v2.layer.pad
437 438 439 440 441 442 443 444 445
    :noindex:

..  _api_v2.layer_costs:

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

cross_entropy_cost
------------------
446
..  autoclass:: paddle.v2.layer.cross_entropy_cost
447 448 449 450
    :noindex:

cross_entropy_with_selfnorm_cost
--------------------------------
451
..  autoclass:: paddle.v2.layer.cross_entropy_with_selfnorm_cost
452 453 454 455
    :noindex:

multi_binary_label_cross_entropy_cost
-------------------------------------
456
..  autoclass:: paddle.v2.layer.multi_binary_label_cross_entropy_cost
457 458
    :noindex:

459 460 461 462 463 464 465 466
huber_regression_cost
-------------------------
..  autoclass:: paddle.v2.layer.huber_regression_cost
    :noindex:

huber_classification_cost
-------------------------
..  autoclass:: paddle.v2.layer.huber_classification_cost
467 468 469 470
    :noindex:

lambda_cost
-----------
471 472 473
..  autoclass:: paddle.v2.layer.lambda_cost
    :noindex:

474
square_error_cost
475
-----------------
476
..  autoclass:: paddle.v2.layer.square_error_cost
477 478 479 480
    :noindex:

rank_cost
---------
481
..  autoclass:: paddle.v2.layer.rank_cost
482 483 484 485
    :noindex:

sum_cost
---------
486
..  autoclass:: paddle.v2.layer.sum_cost
487 488 489 490
    :noindex:

crf
---
491
..  autoclass:: paddle.v2.layer.crf
492 493 494 495
    :noindex:

crf_decoding
------------
496
..  autoclass:: paddle.v2.layer.crf_decoding
497 498 499 500
    :noindex:

ctc
---
501
..  autoclass:: paddle.v2.layer.ctc
502 503 504 505
    :noindex:

warp_ctc
--------
506
..  autoclass:: paddle.v2.layer.warp_ctc
507 508 509 510
    :noindex:

nce
---
511
..  autoclass:: paddle.v2.layer.nce
512 513 514 515
    :noindex:

hsigmoid
---------
516
..  autoclass:: paddle.v2.layer.hsigmoid
517 518
    :noindex:

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

524 525 526 527 528
multibox_loss
--------------
..  autoclass:: paddle.v2.layer.multibox_loss
    :noindex:

529
Check Layer
530 531 532 533
============

eos
---
534
..  autoclass:: paddle.v2.layer.eos
535
    :noindex:
536

537 538 539 540
Miscs
=====

dropout
541
--------
542 543 544
..  autoclass:: paddle.v2.layer.dropout
    :noindex:

545 546 547 548 549 550 551
Activation with learnable parameter
===================================

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

553 554 555 556 557
gated_unit
-----------
..  autoclass:: paddle.v2.layer.gated_unit
    :noindex:

558 559 560 561 562 563 564
Detection output Layer
======================

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