Skip to content

fix param collection, apply black formatting #6

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

Closed
wants to merge 1 commit into from

Conversation

zbyte64
Copy link

@zbyte64 zbyte64 commented Jun 17, 2019

I noticed that the conv and batch normalization layers were being added to a normal list on our module instance. This prevents methods like train and params from impacting those layers. This PR puts those layers in a nn.ModuleList to allow for proper variable management.

I also forgot to turn off black formatting in my editor, so as a result allot of the code got reformatted to be more proper.

@kanezaki
Copy link
Owner

Hi,
Thanks a lot for fixing the param collection! But I feel the modifications regarding the black formatting are too much. So, I'm going to close this PR and modify the nn.ModuleList part by myself. How does it sound to you?

@zbyte64
Copy link
Author

zbyte64 commented Jun 18, 2019

👍

@zbyte64 zbyte64 closed this Jun 18, 2019
@kanezaki kanezaki mentioned this pull request Jun 19, 2019
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