Skip to content

Clean up Module forward and __call__ - #14

Merged
apaszke merged 1 commit into
pytorch:masterfrom
colesbury:forward
Sep 7, 2016
Merged

apaszke merged 1 commit into
pytorch:masterfrom
colesbury:forward

Conversation

@colesbury

Copy link
Copy Markdown
Contributor
  • _forward is renamed forward since users should override it
  • some __call__ overrides are changed to forward
  • function which return a single variable are changed to return that
    variable instead of a one-element tuple

 * _forward is renamed forward since users should override it

 * some __call__ overrides are changed to forward

 * function which return a single variable are changed to return that
   variable instead of a one-element tuple
@apaszke
apaszke merged commit b738b09 into pytorch:master Sep 7, 2016
@colesbury
colesbury deleted the forward branch September 7, 2016 22:03
zou3519 referenced this pull request in zou3519/pytorch May 23, 2018
@nWEIdia nWEIdia mentioned this pull request Aug 21, 2024
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