Skip to content

Conversation

@yf225
Copy link
Contributor

@yf225 yf225 commented Dec 3, 2019

This PR removes namespace F = torch::nn::functional from torch/nn/modules/batchhnorm.h, so that people don't have to define torch::nn::functional as F if they don't want to.

Fixes #30682.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yf225 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@yf225 yf225 mentioned this pull request Dec 3, 2019
yf225 pushed a commit that referenced this pull request Dec 3, 2019
…hhnorm.h (#30684)

Summary:
This PR removes `namespace F = torch::nn::functional` from `torch/nn/modules/batchhnorm.h`, so that people don't have to define `torch::nn::functional` as `F` if they don't want to.

Fixes #30682.
Pull Request resolved: #30684

Differential Revision: D18795717

Pulled By: yf225

fbshipit-source-id: c9feffbeb632cc6b4ce3e6c22c0a78533bab69ad
yf225 pushed a commit that referenced this pull request Dec 4, 2019
…hhnorm.h (#30684)

Summary:
This PR removes `namespace F = torch::nn::functional` from `torch/nn/modules/batchhnorm.h`, so that people don't have to define `torch::nn::functional` as `F` if they don't want to.

Fixes #30682.
Pull Request resolved: #30684

Differential Revision: D18795717

Pulled By: yf225

fbshipit-source-id: c9feffbeb632cc6b4ce3e6c22c0a78533bab69ad
wuhuikx pushed a commit to wuhuikx/pytorch that referenced this pull request Jan 30, 2020
…hhnorm.h (pytorch#30684)

Summary:
This PR removes `namespace F = torch::nn::functional` from `torch/nn/modules/batchhnorm.h`, so that people don't have to define `torch::nn::functional` as `F` if they don't want to.

Fixes pytorch#30682.
Pull Request resolved: pytorch#30684

Differential Revision: D18795717

Pulled By: yf225

fbshipit-source-id: c9feffbeb632cc6b4ce3e6c22c0a78533bab69ad
@facebook-github-bot facebook-github-bot deleted the fix_F_definition branch July 13, 2020 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nn/modules/batchnorm.h redefines "F"

5 participants