Skip to content

[RPC x JIT] Integrate Python RPC TorchScript call with profiler#36266

Closed
xush6528 wants to merge 2 commits intogh/xush6528/87/basefrom
gh/xush6528/87/head
Closed

[RPC x JIT] Integrate Python RPC TorchScript call with profiler#36266
xush6528 wants to merge 2 commits intogh/xush6528/87/basefrom
gh/xush6528/87/head

Conversation

@xush6528
Copy link
Contributor

@xush6528 xush6528 commented Apr 8, 2020

Stack from ghstack:

RecordFunction starts but never ends at an appropriate location. Might be recording wrong time numbers.

This is following up on

#32197
and
#32466

Differential Revision: D7857991

RecordFunction start but never end at an appropriate location. Might be recording wrong time number.

Differential Revision: [D7857991](https://our.internmc.facebook.com/intern/diff/D7857991/)

[ghstack-poisoned]
@dr-ci
Copy link

dr-ci bot commented Apr 8, 2020

💊 CircleCI build failures summary and remediations

As of commit a23369e (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no CircleCI failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker.

See how this bot performed.

This comment has been revised 6 times.

const py::args& args,
const py::kwargs& kwargs) {
const std::shared_ptr<torch::autograd::profiler::RecordFunction>&
rf const py::args& args,
Copy link
Contributor

Choose a reason for hiding this comment

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

This won't compile, right? Missing comma between rf and next arg?

Copy link
Contributor

@rohan-varma rohan-varma left a comment

Choose a reason for hiding this comment

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

Don't we need to make the relevant API changes in torchscript_functions.h? Also, will adding the extra arg cause any errors with the JIT call in register_distributed_ops? I'm assuming that if we default RecordFunction to nullptr, then it should be fine we and we won't have to make any JIT changes.

…filer"

RecordFunction start but never end at an appropriate location. Might be recording wrong time number.

Differential Revision: [D7857991](https://our.internmc.facebook.com/intern/diff/D7857991/)

[ghstack-poisoned]
@xush6528 xush6528 requested a review from apaszke as a code owner April 8, 2020 22:19
xush6528 added a commit that referenced this pull request Apr 8, 2020
Pull Request resolved: #36266

RecordFunction starts but never ends at an appropriate location. Might be recording wrong time numbers.

This is following up on

#32197
and
#32466

ghstack-source-id: 101798149

Differential Revision: [D7857991](https://our.internmc.facebook.com/intern/diff/D7857991/)
@xush6528 xush6528 closed this Apr 8, 2020
@xush6528 xush6528 reopened this Apr 8, 2020
@xush6528 xush6528 requested a review from rohan-varma April 8, 2020 22:49
@xush6528 xush6528 closed this Apr 8, 2020
@facebook-github-bot facebook-github-bot deleted the gh/xush6528/87/head branch May 9, 2020 14:17
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