Moving common layers to ops#4504
Merged
Merged
Conversation
datumbox
commented
Sep 29, 2021
Contributor
Author
datumbox
left a comment
There was a problem hiding this comment.
Highlighting the interesting parts of the implementation
Contributor
|
Can we move stochastic depth from |
Contributor
Author
|
@oke-aditya thanks for the comment. Note that the StochasticDepth layer lives in its own module at The historical convention for where to include things seems to be that layers with functional and class components end up on their own modules while those that are simple and use standard building convolutional blocks end up in |
facebook-github-bot
pushed a commit
that referenced
this pull request
Oct 1, 2021
Summary: * Moving _make_divisible to utils. * Replace the old ConvBNReLU and ConvBNActivation layers * Fix minor bug. * Moving SE layer to ops. * Adding deprecation warnings on old layers. * Apply changes to regnets. Reviewed By: prabhat00155, NicolasHug Differential Revision: D31309549 fbshipit-source-id: 2780783ddfeb58974829607ac90f122b915f7366
mszhanyi
pushed a commit
to mszhanyi/vision
that referenced
this pull request
Oct 19, 2021
* Moving _make_divisible to utils. * Replace the old ConvBNReLU and ConvBNActivation layers * Fix minor bug. * Moving SE layer to ops. * Adding deprecation warnings on old layers. * Apply changes to regnets.
cyyever
pushed a commit
to cyyever/vision
that referenced
this pull request
Nov 16, 2021
* Moving _make_divisible to utils. * Replace the old ConvBNReLU and ConvBNActivation layers * Fix minor bug. * Moving SE layer to ops. * Adding deprecation warnings on old layers. * Apply changes to regnets.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Partially resolves #4333
In this PR:
_make_divisible()from MobileNetV2 tomodels._utils.ConvBNReLUandConvBNActivationclasses in favour of a newConvNormActivationadded inops.misc.SqueezeExcitationtoops.miscand slightly modified the class to use only nn.Modules instead of functional.