-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Fix setting using running stats in InstanceNorm*d #4444
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
Conversation
torch/nn/modules/instancenorm.py
Outdated
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
torch/nn/modules/instancenorm.py
Outdated
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
torch/nn/modules/instancenorm.py
Outdated
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
@pytorch/buildbot retest this please |
|
@pytorchbot retest this please |
1 similar comment
|
@pytorchbot retest this please |
| def __init__(self, num_features, eps=1e-5, momentum=0.1, affine=False): | ||
| super(_InstanceNorm, self).__init__( | ||
| num_features, eps, momentum, affine) | ||
| self.use_running_stats = False |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
The original docs about
.training(False)uses running stats are wrong. This line always usestraining=Truewhen calling BN backend function. This PR fixes the doc, and adds a method to control whether using running stats or instance stats.Fixes #4348 .