Skip to content

Conversation

@albanD
Copy link
Collaborator

@albanD albanD commented Oct 1, 2019

Fix for #25859

Stack from ghstack:

Differential Revision: D18249631

[ghstack-poisoned]
@albanD albanD requested a review from apaszke as a code owner October 1, 2019 19:09
@pytorchbot pytorchbot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Oct 1, 2019
albanD added a commit that referenced this pull request Oct 1, 2019
ghstack-source-id: 4f5ef1d
Pull Request resolved: #27154
@albanD albanD requested a review from ezyang October 1, 2019 19:22
tracer::getTracingState()->graph->pop_scope();
}
return result;
END_HANDLE_TH_ERRORS_PYBIND
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not the other bindings too?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because this is the only place where arbitrary pytorch code can actually run (like functions from aten). Other entry points, to the best of my knowledge only work with jit code.

Copy link
Contributor

Choose a reason for hiding this comment

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

But if those functions ever call TORCH_WARN you still need to handle unbuffering the warnings in that case, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If they call TORCH_WARN, then a cpp warning will be printed (in cerr).

@pytorchbot pytorchbot added the module: internals Related to internal abstractions in c10 and ATen label Oct 2, 2019
albanD added a commit that referenced this pull request Oct 2, 2019
ghstack-source-id: 5c65a4b
Pull Request resolved: #27154
albanD added a commit that referenced this pull request Oct 17, 2019
ghstack-source-id: b529226
Pull Request resolved: #27154
albanD added a commit that referenced this pull request Oct 17, 2019
ghstack-source-id: a96f5b5
Pull Request resolved: #27154
albanD added a commit that referenced this pull request Nov 4, 2019
ghstack-source-id: 027e3fa
Pull Request resolved: #27154
albanD added a commit that referenced this pull request Nov 5, 2019
ghstack-source-id: 19a80bd
Pull Request resolved: #27154
albanD added a commit that referenced this pull request Nov 6, 2019
ghstack-source-id: 40d643c
Pull Request resolved: #27154
albanD added a commit that referenced this pull request Nov 6, 2019
ghstack-source-id: 4f84cb4
Pull Request resolved: #27154
albanD added a commit to albanD/pytorch that referenced this pull request Nov 6, 2019
ghstack-source-id: 4f84cb4
Pull Request resolved: pytorch#27154
albanD added a commit that referenced this pull request Nov 6, 2019
ghstack-source-id: 9d8331d
Pull Request resolved: #27154
@facebook-github-bot
Copy link
Contributor

@albanD merged this pull request in b14c594.

@facebook-github-bot
Copy link
Contributor

@albanD merged this pull request in b14c594.

@facebook-github-bot facebook-github-bot deleted the gh/albanD/5/head branch November 11, 2019 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged 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.

6 participants