KEMBAR78
Add manual_seed in script by eellison · Pull Request #19510 · pytorch/pytorch · GitHub
Skip to content

Conversation

@eellison
Copy link
Contributor

Add manual_seed to torch script.

@pytorchbot pytorchbot added oncall: jit Add this issue/PR to JIT oncall triage queue module: internals Related to internal abstractions in c10 and ATen labels Apr 19, 2019
@eellison eellison requested review from driazati and suo April 19, 2019 20:02
push(stack, a.cpu());
return 0;
}),
Operator(
Copy link
Member

@suo suo Apr 19, 2019

Choose a reason for hiding this comment

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

we should mark this op as having side effects. I'm actually kind of surprised the test didn't have it DCE'd out

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there a way of doing that in the schema ? I added it to hasSideEffects() in ir.cpp

Copy link
Member

Choose a reason for hiding this comment

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

oh I missed that lol. carry on.

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.

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

zdevito pushed a commit to zdevito/ATen that referenced this pull request Apr 22, 2019
Summary:
Add manual_seed to torch script.
Pull Request resolved: pytorch/pytorch#19510

Reviewed By: suo, driazati

Differential Revision: D15018823

Pulled By: eellison

fbshipit-source-id: d7734a8ad05ba254c0d88abf3fb58c4ce6a4e53b
@facebook-github-bot
Copy link
Contributor

@eellison merged this pull request in 19f7318.

zhangguanheng66 pushed a commit to zhangguanheng66/pytorch that referenced this pull request May 6, 2019
Summary:
Add manual_seed to torch script.
Pull Request resolved: pytorch#19510

Reviewed By: suo, driazati

Differential Revision: D15018823

Pulled By: eellison

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

Labels

module: internals Related to internal abstractions in c10 and ATen oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants