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

Make nn_sequential a bare nn_module #699

Merged
merged 4 commits into from Oct 4, 2021
Merged

Conversation

dfalbel
Copy link
Member

@dfalbel dfalbel commented Oct 1, 2021

This PR makes nn_sequential a bare nn_module. This allow inheriting from nn_sequential that might be useful in some scenarios.

We no longer support the name argument, but its easy to modify the name via inheritance. See the modified test case.
Fix #674

…ger support the `name` argument. See tests for how to modify the classname.
@dfalbel dfalbel requested a review from skeydan October 1, 2021 19:44
Copy link
Collaborator

@skeydan skeydan left a comment

Choose a reason for hiding this comment

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

LGTM!

NEWS.md Outdated Show resolved Hide resolved
Co-authored-by: Sigrid Keydana <keydana@gmx.de>
@dfalbel dfalbel merged commit dc36419 into master Oct 4, 2021
@dfalbel dfalbel deleted the feature/nn-sequential-bare branch October 4, 2021 19:35
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_sequential should be a bare nn_module not a function
2 participants