Skip to content
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

fx norm deprecation #1538

Merged
merged 3 commits into from
Mar 18, 2021
Merged

fx norm deprecation #1538

merged 3 commits into from
Mar 18, 2021

Conversation

CarloLucibello
Copy link
Member

fix some deprecations for the normalization layers

@CarloLucibello CarloLucibello added this to the v0.12 milestone Mar 16, 2021
@DhairyaLGandhi
Copy link
Member

Seems fine, but it should follow the guidelines of being faithful to the fields (lambda comes first etc) and should only populate the new fields with the same defaults as the regular constructors

@CarloLucibello
Copy link
Member Author

Seems fine, but it should follow the guidelines of being faithful to the fields (lambda comes first etc)

It's a deprecation, so it should match the old constructor on one side and the new one on the other side

and should only populate the new fields with the same defaults as the regular constructors

It's a deprecation, so it should match the old behavior

@DhairyaLGandhi
Copy link
Member

Right, the new constructor should only add the new fields, not change the order of the remaining ones.

@CarloLucibello
Copy link
Member Author

Right, the new constructor should only add the new fields, not change the order of the remaining ones.

This seems rather arbitrary.

Number of channels is the very first (and typically the only) argument we pass to the user-facing constructor, BatchNorm(64), so seems natural to have it as the first field in the struct definition, other's fields positions are just shifted by one.

@DhairyaLGandhi
Copy link
Member

These are different constructors though. They are different from the channel one.

@CarloLucibello
Copy link
Member Author

These are just the constructors implicitly defined by the types

@DhairyaLGandhi
Copy link
Member

Yes they are defined per our struct definition. They are convenient for when someone wants to use different array or number types.

@CarloLucibello
Copy link
Member Author

moved the number of channels in last position

@CarloLucibello
Copy link
Member Author

should be ready to merge @DhairyaLGandhi

Copy link
Member

@DhairyaLGandhi DhairyaLGandhi left a comment

Choose a reason for hiding this comment

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

We will probably want the depwarns in rather quickly. Hopefully we can resolve the fields situation, it's a pretty long list atm

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 18, 2021

Build succeeded:

@bors bors bot merged commit a91dacd into master Mar 18, 2021
@CarloLucibello CarloLucibello deleted the cl/deprecations branch April 7, 2022 07:01
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.

2 participants