Skip to content

Commit 1ca5cf7

Browse files
author
chengduozh
committed
fix simple_img_conv_pool
test=develop
1 parent 9fa5f8c commit 1ca5cf7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

python/paddle/fluid/nets.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,13 @@ def simple_img_conv_pool(input,
7878
the first half of the filters is only connected to the first half
7979
of the input channels, while the second half of the filters is only
8080
connected to the second half of the input channels. Default: groups=1
81-
param_attr (ParamAttr): The parameters to the Conv2d Layer. Default: None
82-
bias_attr (ParamAttr): Bias parameter for the Conv2d layer. Default: None
81+
param_attr (ParamAttr): The parameter attribute for learnable parameters/weights
82+
of conv2d. If it is set to None, the parameter is initialized with
83+
:math:`Normal(0.0, std)`, and the :math:`std` is :math:`(\\frac{2.0 }{filter\_elem\_num})^{0.5}`.
84+
Default: None.
85+
bias_attr (ParamAttr): The parameter attribute for the bias of conv2d.
86+
If it is set to False, no bias will be added to the output units.
87+
If it is set to None, the bias is initialized zero. Default: None.
8388
act (str): Activation type for Conv2d. Default: None
8489
use_cudnn (bool): Use cudnn kernel or not, it is valid only when the cudnn
8590
library is installed. Default: True

0 commit comments

Comments
 (0)