Skip to content

Commit 74d2d56

Browse files
velikodniysoumith
authored andcommitted
Fix default values for affine= in the docstrings of InstanceNormXd (#8895)
1 parent 76e9dba commit 74d2d56

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

torch/nn/modules/instancenorm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class InstanceNorm1d(_InstanceNorm):
8585
eps: a value added to the denominator for numerical stability. Default: 1e-5
8686
momentum: the value used for the running_mean and running_var computation. Default: 0.1
8787
affine: a boolean value that when set to ``True``, this module has
88-
learnable affine parameters. Default: ``True``
88+
learnable affine parameters. Default: ``False``
8989
track_running_stats: a boolean value that when set to ``True``, this
9090
module tracks the running mean and variance, and when set to ``False``,
9191
this module does not track such statistics and always uses batch
@@ -149,7 +149,7 @@ class InstanceNorm2d(_InstanceNorm):
149149
eps: a value added to the denominator for numerical stability. Default: 1e-5
150150
momentum: the value used for the running_mean and running_var computation. Default: 0.1
151151
affine: a boolean value that when set to ``True``, this module has
152-
learnable affine parameters. Default: ``True``
152+
learnable affine parameters. Default: ``False``
153153
track_running_stats: a boolean value that when set to ``True``, this
154154
module tracks the running mean and variance, and when set to ``False``,
155155
this module does not track such statistics and always uses batch
@@ -213,7 +213,7 @@ class InstanceNorm3d(_InstanceNorm):
213213
eps: a value added to the denominator for numerical stability. Default: 1e-5
214214
momentum: the value used for the running_mean and running_var computation. Default: 0.1
215215
affine: a boolean value that when set to ``True``, this module has
216-
learnable affine parameters. Default: ``True``
216+
learnable affine parameters. Default: ``False``
217217
track_running_stats: a boolean value that when set to ``True``, this
218218
module tracks the running mean and variance, and when set to ``False``,
219219
this module does not track such statistics and always uses batch

0 commit comments

Comments
 (0)