Skip to content

[Profiler] Clean up visit logic#80822

Closed
robieta wants to merge 21 commits intogh/robieta/78/basefrom
gh/robieta/78/head
Closed

[Profiler] Clean up visit logic#80822
robieta wants to merge 21 commits intogh/robieta/78/basefrom
gh/robieta/78/head

Conversation

@robieta
Copy link
Contributor

@robieta robieta commented Jul 3, 2022

Stack from ghstack (oldest at bottom):

It's rather tedious to constantly have to specify extra_fields_ in visit; especially since it tends to add a line. The DEFINE_VISITOR logic was also getting rather unwieldy and hard to read. Positional arguments in macros are quite bug prone. I think the new way is clearer.

Differential Revision: D37481560

It's rather tedious to constantly have to specify `extra_fields_` in visit; especially since it tends to add a line. The `DEFINE_VISITOR` logic was also getting rather unwieldy and hard to read. Positional arguments in macros are quite bug prone. I think the new way is clearer.

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

[ghstack-poisoned]
@robieta robieta requested review from albanD and soulitzer as code owners July 3, 2022 22:37
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Jul 3, 2022

🔗 Helpful links

✅ No Failures (0 Pending)

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

Expand to see more

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


This comment was automatically generated by Dr. CI (expand for details).

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

It's rather tedious to constantly have to specify `extra_fields_` in visit; especially since it tends to add a line. The `DEFINE_VISITOR` logic was also getting rather unwieldy and hard to read. Positional arguments in macros are quite bug prone. I think the new way is clearer.

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

[ghstack-poisoned]
robieta pushed a commit that referenced this pull request Jul 3, 2022
Pull Request resolved: #80822

It's rather tedious to constantly have to specify `extra_fields_` in visit; especially since it tends to add a line. The `DEFINE_VISITOR` logic was also getting rather unwieldy and hard to read. Positional arguments in macros are quite bug prone. I think the new way is clearer.
ghstack-source-id: 160547946

Differential Revision: [D37481560](https://our.internmc.facebook.com/intern/diff/D37481560/)
@robieta robieta requested review from aaronenyeshi and chaekit and removed request for albanD and soulitzer July 3, 2022 22:45
It's rather tedious to constantly have to specify `extra_fields_` in visit; especially since it tends to add a line. The `DEFINE_VISITOR` logic was also getting rather unwieldy and hard to read. Positional arguments in macros are quite bug prone. I think the new way is clearer.

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

[ghstack-poisoned]
robieta pushed a commit that referenced this pull request Jul 6, 2022
Pull Request resolved: #80822

It's rather tedious to constantly have to specify `extra_fields_` in visit; especially since it tends to add a line. The `DEFINE_VISITOR` logic was also getting rather unwieldy and hard to read. Positional arguments in macros are quite bug prone. I think the new way is clearer.
ghstack-source-id: 160633362

Differential Revision: [D37481560](https://our.internmc.facebook.com/intern/diff/D37481560/)
It's rather tedious to constantly have to specify `extra_fields_` in visit; especially since it tends to add a line. The `DEFINE_VISITOR` logic was also getting rather unwieldy and hard to read. Positional arguments in macros are quite bug prone. I think the new way is clearer.

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

[ghstack-poisoned]
It's rather tedious to constantly have to specify `extra_fields_` in visit; especially since it tends to add a line. The `DEFINE_VISITOR` logic was also getting rather unwieldy and hard to read. Positional arguments in macros are quite bug prone. I think the new way is clearer.

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

[ghstack-poisoned]
It's rather tedious to constantly have to specify `extra_fields_` in visit; especially since it tends to add a line. The `DEFINE_VISITOR` logic was also getting rather unwieldy and hard to read. Positional arguments in macros are quite bug prone. I think the new way is clearer.

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

[ghstack-poisoned]
Taylor Robie added 2 commits July 22, 2022 13:55
It's rather tedious to constantly have to specify `extra_fields_` in visit; especially since it tends to add a line. The `DEFINE_VISITOR` logic was also getting rather unwieldy and hard to read. Positional arguments in macros are quite bug prone. I think the new way is clearer.

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

[ghstack-poisoned]
It's rather tedious to constantly have to specify `extra_fields_` in visit; especially since it tends to add a line. The `DEFINE_VISITOR` logic was also getting rather unwieldy and hard to read. Positional arguments in macros are quite bug prone. I think the new way is clearer.

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

[ghstack-poisoned]
robieta pushed a commit that referenced this pull request Jul 25, 2022
Pull Request resolved: #80822

It's rather tedious to constantly have to specify `extra_fields_` in visit; especially since it tends to add a line. The `DEFINE_VISITOR` logic was also getting rather unwieldy and hard to read. Positional arguments in macros are quite bug prone. I think the new way is clearer.
ghstack-source-id: 162345293

Differential Revision: [D37481560](https://our.internmc.facebook.com/intern/diff/D37481560/)
Taylor Robie added 3 commits July 28, 2022 08:07
It's rather tedious to constantly have to specify `extra_fields_` in visit; especially since it tends to add a line. The `DEFINE_VISITOR` logic was also getting rather unwieldy and hard to read. Positional arguments in macros are quite bug prone. I think the new way is clearer.

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

[ghstack-poisoned]
It's rather tedious to constantly have to specify `extra_fields_` in visit; especially since it tends to add a line. The `DEFINE_VISITOR` logic was also getting rather unwieldy and hard to read. Positional arguments in macros are quite bug prone. I think the new way is clearer.

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

[ghstack-poisoned]
It's rather tedious to constantly have to specify `extra_fields_` in visit; especially since it tends to add a line. The `DEFINE_VISITOR` logic was also getting rather unwieldy and hard to read. Positional arguments in macros are quite bug prone. I think the new way is clearer.

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

[ghstack-poisoned]
@robieta robieta added the release notes: profiler release notes category label Jul 29, 2022
Taylor Robie added 5 commits July 29, 2022 17:23
It's rather tedious to constantly have to specify `extra_fields_` in visit; especially since it tends to add a line. The `DEFINE_VISITOR` logic was also getting rather unwieldy and hard to read. Positional arguments in macros are quite bug prone. I think the new way is clearer.

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

[ghstack-poisoned]
It's rather tedious to constantly have to specify `extra_fields_` in visit; especially since it tends to add a line. The `DEFINE_VISITOR` logic was also getting rather unwieldy and hard to read. Positional arguments in macros are quite bug prone. I think the new way is clearer.

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

[ghstack-poisoned]
It's rather tedious to constantly have to specify `extra_fields_` in visit; especially since it tends to add a line. The `DEFINE_VISITOR` logic was also getting rather unwieldy and hard to read. Positional arguments in macros are quite bug prone. I think the new way is clearer.

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

[ghstack-poisoned]
It's rather tedious to constantly have to specify `extra_fields_` in visit; especially since it tends to add a line. The `DEFINE_VISITOR` logic was also getting rather unwieldy and hard to read. Positional arguments in macros are quite bug prone. I think the new way is clearer.

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

[ghstack-poisoned]
It's rather tedious to constantly have to specify `extra_fields_` in visit; especially since it tends to add a line. The `DEFINE_VISITOR` logic was also getting rather unwieldy and hard to read. Positional arguments in macros are quite bug prone. I think the new way is clearer.

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

[ghstack-poisoned]
@robieta
Copy link
Contributor Author

robieta commented Aug 1, 2022

@pytorchbot merge -l

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a merge and created land time checks. See merge status here and land check progress here

pytorchmergebot pushed a commit that referenced this pull request Aug 1, 2022
It's rather tedious to constantly have to specify `extra_fields_` in visit; especially since it tends to add a line. The `DEFINE_VISITOR` logic was also getting rather unwieldy and hard to read. Positional arguments in macros are quite bug prone. I think the new way is clearer.

Differential Revision: [D37481560](https://our.internmc.facebook.com/intern/diff/D37481560/)
Pull Request resolved: #80822
Approved by: https://github.com/aaronenyeshi
@pytorchmergebot
Copy link
Collaborator

Merge failed due to Failed to merge; some land checks failed: trunk, trunk / macos-12-py3-arm64 / Run MPS tests
Raised by https://github.com/pytorch/pytorch/actions/runs/2775675633

It's rather tedious to constantly have to specify `extra_fields_` in visit; especially since it tends to add a line. The `DEFINE_VISITOR` logic was also getting rather unwieldy and hard to read. Positional arguments in macros are quite bug prone. I think the new way is clearer.

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

[ghstack-poisoned]
@robieta
Copy link
Contributor Author

robieta commented Aug 1, 2022

@pytorchbot merge -l

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a merge and created land time checks. See merge status here and land check progress here

pytorchmergebot pushed a commit that referenced this pull request Aug 1, 2022
It's rather tedious to constantly have to specify `extra_fields_` in visit; especially since it tends to add a line. The `DEFINE_VISITOR` logic was also getting rather unwieldy and hard to read. Positional arguments in macros are quite bug prone. I think the new way is clearer.

Differential Revision: [D37481560](https://our.internmc.facebook.com/intern/diff/D37481560/)
Pull Request resolved: #80822
Approved by: https://github.com/aaronenyeshi
@pytorchmergebot
Copy link
Collaborator

Merge failed due to Failed to merge; some land checks failed: pull, pull / linux-docs / build-docs (cpp)
Raised by https://github.com/pytorch/pytorch/actions/runs/2777852689

@robieta
Copy link
Contributor Author

robieta commented Aug 2, 2022

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a merge job. Check the current status here

@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2022

Hey @robieta.
You've committed this PR, but it does not have both a 'release notes: ...' and 'topics: ...' label. Please add one of each to the PR. The 'release notes: ...' label should represent the part of PyTorch that this PR changes (fx, autograd, distributed, etc) and the 'topics: ...' label should represent the kind of PR it is (not user facing, new feature, bug fix, perf improvement, etc). The list of valid labels can be found here for the 'release notes: ...' and here for the 'topics: ...'.
For changes that are 'topic: not user facing' there is no need for a release notes label.

facebook-github-bot pushed a commit that referenced this pull request Aug 3, 2022
Summary:
It's rather tedious to constantly have to specify `extra_fields_` in visit; especially since it tends to add a line. The `DEFINE_VISITOR` logic was also getting rather unwieldy and hard to read. Positional arguments in macros are quite bug prone. I think the new way is clearer.

Pull Request resolved: #80822
Approved by: https://github.com/aaronenyeshi

Test Plan:
contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/6ada85eff013f36f5babf7574acaf94856f1cf37

Original Phabricator Test Plan:
All properties should already be unit tested, and variant provides quite a bit of type safety.

Reviewed By: aaronenyeshi, kit1980

Differential Revision: D37481560

Pulled By: robieta

fbshipit-source-id: 65a3137590a020aa3f933624445487a78989c90c
@facebook-github-bot facebook-github-bot deleted the gh/robieta/78/head branch August 5, 2022 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants