-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[C++ API] Remove deprecated torch::nn::BatchNorm / FeatureDropout / modules_ordered_dict and torch::nn::init::Nonlinearity / FanMode #34508
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
…:Nonlinearity / FanMode
There was a problem hiding this 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.
💊 CircleCI build failures summary and remediationsAs of commit 718cbf4 (more details on the Dr. CI page): ✅ None of the build failures appear to be your fault 💚
🚧 2 upstream failures:These were probably caused by upstream breakages:
This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions on the GitHub issue tracker. This comment has been revised 24 times. |
There was a problem hiding this 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.
There was a problem hiding this 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.
There was a problem hiding this 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.
There was a problem hiding this 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.
This PR is BC-breaking in the following way:
torch::nn::BatchNorm
is removed in favor oftorch::nn::BatchNorm{1,2,3}d
torch::nn::FeatureDropout
is removed in favor oftorch::nn::Dropout{2,3}d
torch::nn::modules_ordered_dict
is removed. User should doSequential sequential({{"m1", MyModule(1)}, {"m2", MyModule(2)}})
instead.torch::nn::init::Nonlinearity
is removed, in favor of the following enums:torch::kLinear
torch::kConv1D
torch::kConv2D
torch::kConv3D
torch::kConvTranspose1D
torch::kConvTranspose2D
torch::kConvTranspose3D
torch::kSigmoid
torch::kTanh
torch::kReLU
torch::kLeakyReLU
torch::nn::init::FanMode
is removed, in favor of the following enums:torch::kFanIn
torch::kFanOut