[Profiler] Clean up visit logic#80822
Conversation
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]
🔗 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. |
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]
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/)
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]
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]
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]
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/)
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]
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]
|
@pytorchbot merge -l |
|
@pytorchbot successfully started a merge and created land time checks. See merge status here and land check progress here |
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
|
Merge failed due to Failed to merge; some land checks failed: trunk, trunk / macos-12-py3-arm64 / Run MPS tests |
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]
|
@pytorchbot merge -l |
|
@pytorchbot successfully started a merge and created land time checks. See merge status here and land check progress here |
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
|
Merge failed due to Failed to merge; some land checks failed: pull, pull / linux-docs / build-docs (cpp) |
|
@pytorchbot merge |
|
@pytorchbot successfully started a merge job. Check the current status here |
|
Hey @robieta. |
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
Stack from ghstack (oldest at bottom):
result_) #81321It's rather tedious to constantly have to specify
extra_fields_in visit; especially since it tends to add a line. TheDEFINE_VISITORlogic 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