Skip to content

Commit

Permalink
Add layers into doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
qingqing01 committed Jun 6, 2017
1 parent 18cd1f2 commit 6e8c566
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions doc/api/v2/config/layer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ context_projection
.. autoclass:: paddle.v2.layer.context_projection
:noindex:

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

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

Expand Down Expand Up @@ -346,6 +351,12 @@ sampling_id
.. autoclass:: paddle.v2.layer.sampling_id
:noindex:

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


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

Expand Down
4 changes: 2 additions & 2 deletions paddle/function/RowConvOpGpu.cu
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@ void RowConvGrad<DEVICE_TYPE_GPU>(const GpuMatrix& outG,
dim3 dimBlock(32, 32);
dim3 dimGrid(DIVUP(width, dimBlock.x), 1);
real* dw = filterG.getData();
if (contextLength <= 16) {
KeRowConvBwWeight<32, 32, 16>
if (contextLength <= 32) {
KeRowConvBwWeight<32, 32, 32>
<<<dimGrid, dimBlock, 0, STREAM_DEFAULT>>>
(dw, x, dy, starts, height, width, numSeq, contextLength);
} else {
Expand Down

0 comments on commit 6e8c566

Please sign in to comment.