Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add comments for default value #2242

Merged
merged 2 commits into from
Jul 29, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions torch/nn/modules/batchnorm.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class BatchNorm1d(_BatchNorm):
momentum: the value used for the running_mean and running_var
computation. Default: 0.1
affine: a boolean value that when set to true, gives the layer learnable
affine parameters.
affine parameters. Default: True

Shape:
- Input: :math:`(N, C)` or :math:`(N, C, L)`
Expand Down Expand Up @@ -114,7 +114,7 @@ class BatchNorm2d(_BatchNorm):
momentum: the value used for the running_mean and running_var
computation. Default: 0.1
affine: a boolean value that when set to true, gives the layer learnable
affine parameters.
affine parameters. Default: True

Shape:
- Input: :math:`(N, C, H, W)`
Expand Down Expand Up @@ -161,7 +161,7 @@ class BatchNorm3d(_BatchNorm):
momentum: the value used for the running_mean and running_var
computation. Default: 0.1
affine: a boolean value that when set to true, gives the layer learnable
affine parameters.
affine parameters. Default: True

Shape:
- Input: :math:`(N, C, D, H, W)`
Expand Down
6 changes: 3 additions & 3 deletions torch/nn/modules/instancenorm.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class InstanceNorm1d(_InstanceNorm):
num_features: num_features from an expected input of size `batch_size x num_features x width`
eps: a value added to the denominator for numerical stability. Default: 1e-5
momentum: the value used for the running_mean and running_var computation. Default: 0.1
affine: a boolean value that when set to true, gives the layer learnable affine parameters.
affine: a boolean value that when set to true, gives the layer learnable affine parameters. Default: False

Shape:
- Input: :math:`(N, C, L)`
Expand Down Expand Up @@ -102,7 +102,7 @@ class InstanceNorm2d(_InstanceNorm):
num_features: num_features from an expected input of size batch_size x num_features x height x width
eps: a value added to the denominator for numerical stability. Default: 1e-5
momentum: the value used for the running_mean and running_var computation. Default: 0.1
affine: a boolean value that when set to true, gives the layer learnable affine parameters.
affine: a boolean value that when set to true, gives the layer learnable affine parameters. Default: False

Shape:
- Input: :math:`(N, C, H, W)`
Expand Down Expand Up @@ -147,7 +147,7 @@ class InstanceNorm3d(_InstanceNorm):
num_features: num_features from an expected input of size batch_size x num_features x depth x height x width
eps: a value added to the denominator for numerical stability. Default: 1e-5
momentum: the value used for the running_mean and running_var computation. Default: 0.1
affine: a boolean value that when set to true, gives the layer learnable affine parameters.
affine: a boolean value that when set to true, gives the layer learnable affine parameters. Default: False

Shape:
- Input: :math:`(N, C, D, H, W)`
Expand Down