layer.rst.txt 7.1 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 57 58
    :noindex:

..  _api_v2.layer_context_projection:

context_projection 
------------------
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 74 75 76
    :noindex:   

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

maxout
------
82
..  autoclass:: paddle.v2.layer.maxout
83 84 85 86 87 88 89
    :noindex:

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

img_cmrnorm
-----------
90
..  autoclass:: paddle.v2.layer.img_cmrnorm
91 92 93 94
    :noindex:

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

sum_to_one_norm
---------------
100
..  autoclass:: paddle.v2.layer.sum_to_one_norm
101 102
    :noindex:
    
103 104
cross_channel_norm
------------------
105
..  autoclass:: paddle.v2.layer.cross_channel_norm
106 107
    :noindex:
    
108 109 110 111 112
Recurrent Layers
================

recurrent
---------
113
..  autoclass:: paddle.v2.layer.recurrent
114 115 116 117
    :noindex:

lstmemory
---------
118
..  autoclass:: paddle.v2.layer.lstmemory
119 120 121 122
    :noindex:

grumemory
---------
123
..  autoclass:: paddle.v2.layer.grumemory
124 125 126 127 128 129 130
    :noindex:

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

memory
------
131
..  autoclass:: paddle.v2.layer.memory
132 133 134 135
    :noindex:

recurrent_group
---------------
136
..  autoclass:: paddle.v2.layer.recurrent_group
137
    :noindex:
138

139 140
lstm_step
---------
141
..  autoclass:: paddle.v2.layer.lstm_step
142 143 144 145
    :noindex:

gru_step
--------
146
..  autoclass:: paddle.v2.layer.gru_step
147 148 149 150
    :noindex:

beam_search
------------
151
..  autoclass:: paddle.v2.layer.beam_search
152
    :noindex:
153

154 155
get_output
----------
156
..  autoclass:: paddle.v2.layer.get_output
157
    :noindex:
158

159 160 161 162 163 164 165
Mixed Layer
===========

..  _api_v2.layer_mixed:

mixed
-----
166
..  autoclass:: paddle.v2.layer.mixed
167 168 169 170 171 172
    :noindex:

..  _api_v2.layer_embedding:

embedding
---------
173
..  autoclass:: paddle.v2.layer.embedding
174 175 176 177
    :noindex:

scaling_projection
------------------
178
..  autoclass:: paddle.v2.layer.scaling_projection
179 180 181 182
    :noindex:

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

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

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

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


table_projection
----------------
204
..  autoclass:: paddle.v2.layer.table_projection
205 206 207 208
    :noindex:

trans_full_matrix_projection
----------------------------
209
..  autoclass:: paddle.v2.layer.trans_full_matrix_projection
210
    :noindex:
211

212 213 214
Aggregate Layers
================

215 216 217 218 219
AggregateLevel
--------------
..  autoclass:: paddle.v2.layer.AggregateLevel
    :noindex:

220 221 222 223
..  _api_v2.layer_pooling:

pooling
-------
224
..  autoclass:: paddle.v2.layer.pooling
225 226 227 228 229 230
    :noindex:

..  _api_v2.layer_last_seq:

last_seq
--------
231
..  autoclass:: paddle.v2.layer.last_seq
232 233 234 235 236 237
    :noindex:

..  _api_v2.layer_first_seq:

first_seq
---------
238
..  autoclass:: paddle.v2.layer.first_seq
239 240 241 242
    :noindex:

concat
------
243
..  autoclass:: paddle.v2.layer.concat
244 245 246 247
    :noindex:

seq_concat
----------
248
..  autoclass:: paddle.v2.layer.seq_concat
249 250 251 252 253 254 255
    :noindex:

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

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

..  _api_v2.layer_expand:

261 262 263 264 265
ExpandLevel
-----------
..  autoclass:: paddle.v2.layer.ExpandLevel
    :noindex:

266 267
expand
------
268
..  autoclass:: paddle.v2.layer.expand
269 270 271 272
    :noindex:

repeat
------
273
..  autoclass:: paddle.v2.layer.repeat
274 275 276 277
    :noindex:

rotate
------
278
..  autoclass:: paddle.v2.layer.rotate
279 280 281 282
    :noindex:

seq_reshape
-----------
283
..  autoclass:: paddle.v2.layer.seq_reshape
284 285 286 287 288 289 290
    :noindex:

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

addto
-----
291
..  autoclass:: paddle.v2.layer.addto
292 293 294 295
    :noindex:

linear_comb
-----------
296
..  autoclass:: paddle.v2.layer.linear_comb
297 298 299 300
    :noindex:

interpolation
-------------
301
..  autoclass:: paddle.v2.layer.interpolation
302 303 304 305
    :noindex:

bilinear_interp
---------------
306
..  autoclass:: paddle.v2.layer.bilinear_interp
307 308 309 310
    :noindex:

power
-----
311
..  autoclass:: paddle.v2.layer.power
312 313 314 315
    :noindex:

scaling
-------
316
..  autoclass:: paddle.v2.layer.scaling
317 318 319 320
    :noindex:

slope_intercept
---------------
321
..  autoclass:: paddle.v2.layer.slope_intercept
322 323 324 325
    :noindex:

tensor
------
326
..  autoclass:: paddle.v2.layer.tensor
327 328 329 330 331 332
    :noindex:

..  _api_v2.layer_cos_sim:

cos_sim
-------
333
..  autoclass:: paddle.v2.layer.cos_sim
334 335 336 337
    :noindex:

trans
-----
338
..  autoclass:: paddle.v2.layer.trans
339 340 341 342 343 344 345
    :noindex:

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

maxid
-----
346
..  autoclass:: paddle.v2.layer.max_id
347 348 349 350
    :noindex:

sampling_id
-----------
351
..  autoclass:: paddle.v2.layer.sampling_id
352 353
    :noindex:

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


360 361 362 363 364
Slicing and Joining Layers
==========================

pad
----
365
..  autoclass:: paddle.v2.layer.pad
366 367 368 369 370 371 372 373 374
    :noindex:

..  _api_v2.layer_costs:

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

cross_entropy_cost
------------------
375
..  autoclass:: paddle.v2.layer.cross_entropy_cost
376 377 378 379
    :noindex:

cross_entropy_with_selfnorm_cost
--------------------------------
380
..  autoclass:: paddle.v2.layer.cross_entropy_with_selfnorm_cost
381 382 383 384
    :noindex:

multi_binary_label_cross_entropy_cost
-------------------------------------
385
..  autoclass:: paddle.v2.layer.multi_binary_label_cross_entropy_cost
386 387 388 389
    :noindex:

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

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

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

rank_cost
---------
405
..  autoclass:: paddle.v2.layer.rank_cost
406 407 408 409
    :noindex:

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

crf
---
415
..  autoclass:: paddle.v2.layer.crf
416 417 418 419
    :noindex:

crf_decoding
------------
420
..  autoclass:: paddle.v2.layer.crf_decoding
421 422 423 424
    :noindex:

ctc
---
425
..  autoclass:: paddle.v2.layer.ctc
426 427 428 429
    :noindex:

warp_ctc
--------
430
..  autoclass:: paddle.v2.layer.warp_ctc
431 432 433 434
    :noindex:

nce
---
435
..  autoclass:: paddle.v2.layer.nce
436 437 438 439
    :noindex:

hsigmoid
---------
440
..  autoclass:: paddle.v2.layer.hsigmoid
441 442
    :noindex:

443 444 445 446 447
smooth_l1_cost
--------------
..  autoclass:: paddle.v2.layer.smooth_l1_cost
    :noindex:

448
Check Layer
449 450 451 452
============

eos
---
453
..  autoclass:: paddle.v2.layer.eos
454
    :noindex:
455

456 457 458 459 460 461 462 463
Miscs
=====

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

464 465 466 467 468 469 470
Activation with learnable parameter
===================================

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