Skip to content

Conversation

@driazati
Copy link
Contributor

@driazati driazati commented Apr 22, 2019

Stack from ghstack:

Remove the hack we had previously where training was a buffer

Differential Revision: D15502768

@pytorchbot pytorchbot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Apr 22, 2019
@driazati driazati requested review from eellison and suo April 22, 2019 23:02
@eellison
Copy link
Contributor

Add test?

@driazati
Copy link
Contributor Author

This is just a refactor, it's already covered in test_training_param and others

Copy link
Contributor

@eellison eellison left a comment

Choose a reason for hiding this comment

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

Maybe add serialization test? That's that this PR was a response to right

@driazati
Copy link
Contributor Author

driazati commented May 3, 2019

@pytorchbot retest this please

@driazati driazati changed the base branch from gh/driazati/23/base to master May 3, 2019 23:11
@yf225 yf225 added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label May 9, 2019
@pytorchbot pytorchbot added the module: pybind Related to our Python bindings / interactions with other Python libraries label May 14, 2019
@suo
Copy link
Member

suo commented May 24, 2019

hey what happened to this guy

@pytorchbot pytorchbot added the module: nn Related to torch.nn label May 24, 2019
@driazati driazati requested review from eellison and removed request for apaszke, ebetica, goldsborough, mrshenli, pietern and yf225 May 24, 2019 21:31
@driazati
Copy link
Contributor Author

@pytorchbot rebase this please

submod->train(on);
}
register_buffer("training", torch::tensor(on ? 1 : 0, at::kLong));
for (auto& submod : get_modules()) {
Copy link
Member

Choose a reason for hiding this comment

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

clang-format pls

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@driazati has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@zou3519 zou3519 deleted the gh/driazati/23/head branch May 28, 2019 23:09
@facebook-github-bot
Copy link
Contributor

@driazati merged this pull request in 28079c3.

facebook-github-bot pushed a commit that referenced this pull request Jun 6, 2019
Summary:
Redo of #19587
](https://our.intern.facebook.com/intern/diff/15560540/)
Pull Request resolved: #21078

Pulled By: driazati

Differential Revision: D15560540

fbshipit-source-id: f415775d87c163f93b3bbdd5f87c9ff73f58b049
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: nn Related to torch.nn module: pybind Related to our Python bindings / interactions with other Python libraries oncall: jit Add this issue/PR to JIT oncall triage queue triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants