Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register creak_node_hook #126671

Closed
wants to merge 1 commit into from

Conversation

shengfukevin
Copy link
Contributor

Differential Revision: D57469157

Copy link

pytorch-bot bot commented May 20, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/126671

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (2 Unrelated Failures)

As of commit e7327b1 with merge base 9117779 (image):

UNSTABLE - The following jobs failed but were likely due to flakiness present on trunk and has been marked as unstable:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added ciflow/inductor release notes: fx release notes category labels May 20, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D57469157

shengfukevin added a commit to shengfukevin/pytorch that referenced this pull request May 20, 2024
Summary: Pull Request resolved: pytorch#126671

Differential Revision: D57469157
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D57469157

shengfukevin added a commit to shengfukevin/pytorch that referenced this pull request May 20, 2024
Summary: Pull Request resolved: pytorch#126671

Differential Revision: D57469157
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D57469157

shengfukevin added a commit to shengfukevin/pytorch that referenced this pull request May 20, 2024
)

Summary:
GraphModule supports a call back function (_create_node_hook) for creating a node, it is mainly for meta data export. 

In my prototype(https://www.internalfb.com/diff/D56974659), I also use the call back functions for creating/erasing a node to observe the change in every pass of graph transform. 

So it means GraphModule may have multiple observers listening to the change of the graph. This DIFF is to support multiple hooks for both creating and erasing nodes. 

I am going to have a few follow up DIFFs to support GraphTransformObserver after this DIFF is landed.


Test Plan: buck2 test mode/dev-nosan //caffe2/test:test_export

Differential Revision: D57469157
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D57469157

shengfukevin added a commit to shengfukevin/pytorch that referenced this pull request May 20, 2024
…#126671)

Summary:
GraphModule supports a call back function (_create_node_hook) for creating a node, it is mainly for meta data export. 

In my prototype(https://www.internalfb.com/diff/D56974659), I also use the call back functions for creating/erasing a node to observe the change in every pass of graph transform. 

So it means GraphModule may have multiple observers listening to the change of the graph. This DIFF is to support multiple hooks for both creating and erasing nodes. 

I am going to have a few follow up DIFFs to support GraphTransformObserver after this DIFF is landed.


Test Plan: buck2 test mode/dev-nosan //caffe2/test:test_export

Differential Revision: D57469157
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D57469157

pytorch-bot bot pushed a commit that referenced this pull request May 22, 2024
Summary:
GraphModule supports a call back function (_create_node_hook) for creating a node, it is mainly for meta data export.

In my prototype(https://www.internalfb.com/diff/D56974659), I also use the call back functions for creating/erasing a node to observe the change in every pass of graph transform.

So it means GraphModule may have multiple observers listening to the change of the graph. This DIFF is to support multiple hooks for both creating and erasing nodes.

I am going to have a few follow up DIFFs to support GraphTransformObserver after this DIFF is landed.


Test Plan:
buck2 test mode/dev-nosan //caffe2/test:test_export
buck2 test mode/dev-sand caffe2/test:fx -- fx.test_fx_node_hook.TestFXNodeHook

Differential Revision: D57469157
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D57469157

shengfukevin added a commit to shengfukevin/pytorch that referenced this pull request May 22, 2024
…#126671)

Summary:
GraphModule supports a call back function (_create_node_hook) for creating a node, it is mainly for meta data export.

In my prototype(https://www.internalfb.com/diff/D56974659), I also use the call back functions for creating/erasing a node to observe the change in every pass of graph transform.

So it means GraphModule may have multiple observers listening to the change of the graph. This DIFF is to support multiple hooks for both creating and erasing nodes.

I am going to have a few follow up DIFFs to support GraphTransformObserver after this DIFF is landed.


Test Plan:
buck2 test mode/dev-nosan //caffe2/test:test_export
buck2 test mode/dev-sand caffe2/test:fx -- fx.test_fx_node_hook.TestFXNodeHook

Differential Revision: D57469157
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D57469157

shengfukevin added a commit to shengfukevin/pytorch that referenced this pull request May 22, 2024
…#126671)

Summary:
GraphModule supports a call back function (_create_node_hook) for creating a node, it is mainly for meta data export.

In my prototype(https://www.internalfb.com/diff/D56974659), I also use the call back functions for creating/erasing a node to observe the change in every pass of graph transform.

So it means GraphModule may have multiple observers listening to the change of the graph. This DIFF is to support multiple hooks for both creating and erasing nodes.

I am going to have a few follow up DIFFs to support GraphTransformObserver after this DIFF is landed.


Test Plan:
buck2 test mode/dev-nosan //caffe2/test:test_export
buck2 test mode/dev-sand caffe2/test:fx -- fx.test_fx_node_hook.TestFXNodeHook

Differential Revision: D57469157
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D57469157

Copy link
Contributor

@angelayi angelayi left a comment

Choose a reason for hiding this comment

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

thanks!

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label May 23, 2024
@shengfukevin
Copy link
Contributor Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: This PR has internal changes and must be landed via Phabricator

Details for Dev Infra team Raised by workflow job

pytorch-bot bot pushed a commit that referenced this pull request May 24, 2024
Summary:
GraphModule supports a call back function (_create_node_hook) for creating a node, it is mainly for meta data export.

In my prototype(https://www.internalfb.com/diff/D56974659), I also use the call back functions for creating/erasing a node to observe the change in every pass of graph transform.

So it means GraphModule may have multiple observers listening to the change of the graph. This DIFF is to support multiple hooks for both creating and erasing nodes.

I am going to have a few follow up DIFFs to support GraphTransformObserver after this DIFF is landed.


Test Plan:
buck2 test mode/dev-nosan //caffe2/test:test_export
buck2 test mode/dev-sand caffe2/test:fx -- fx.test_fx_node_hook.TestFXNodeHook

Reviewed By: angelayi

Differential Revision: D57469157
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D57469157

shengfukevin added a commit to shengfukevin/pytorch that referenced this pull request May 24, 2024
…#126671)

Summary:
GraphModule supports a call back function (_create_node_hook) for creating a node, it is mainly for meta data export.

In my prototype(https://www.internalfb.com/diff/D56974659), I also use the call back functions for creating/erasing a node to observe the change in every pass of graph transform.

So it means GraphModule may have multiple observers listening to the change of the graph. This DIFF is to support multiple hooks for both creating and erasing nodes.

I am going to have a few follow up DIFFs to support GraphTransformObserver after this DIFF is landed.


Test Plan:
buck2 test mode/dev-nosan //caffe2/test:test_export
buck2 test mode/dev-sand caffe2/test:fx -- fx.test_fx_node_hook.TestFXNodeHook

Reviewed By: angelayi

Differential Revision: D57469157
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D57469157

shengfukevin added a commit to shengfukevin/pytorch that referenced this pull request May 24, 2024
…#126671)

Summary:
GraphModule supports a call back function (_create_node_hook) for creating a node, it is mainly for meta data export.

In my prototype(https://www.internalfb.com/diff/D56974659), I also use the call back functions for creating/erasing a node to observe the change in every pass of graph transform.

So it means GraphModule may have multiple observers listening to the change of the graph. This DIFF is to support multiple hooks for both creating and erasing nodes.

I am going to have a few follow up DIFFs to support GraphTransformObserver after this DIFF is landed.


Test Plan:
buck2 test mode/dev-nosan //caffe2/test:test_export
buck2 test mode/dev-sand caffe2/test:fx -- fx.test_fx_node_hook.TestFXNodeHook

Reviewed By: angelayi

Differential Revision: D57469157
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D57469157

…#126671)

Summary:
GraphModule supports a call back function (_create_node_hook) for creating a node, it is mainly for meta data export.

In my prototype(https://www.internalfb.com/diff/D56974659), I also use the call back functions for creating/erasing a node to observe the change in every pass of graph transform.

So it means GraphModule may have multiple observers listening to the change of the graph. This DIFF is to support multiple hooks for both creating and erasing nodes.

I am going to have a few follow up DIFFs to support GraphTransformObserver after this DIFF is landed.


Test Plan:
buck2 test mode/dev-nosan //caffe2/test:test_export
buck2 test mode/dev-sand caffe2/test:fx -- fx.test_fx_node_hook.TestFXNodeHook

Reviewed By: angelayi

Differential Revision: D57469157
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D57469157

@facebook-github-bot
Copy link
Contributor

@pytorchbot merge -f 'Landed internally'

(Initiating merge automatically since Phabricator Diff has merged, using force because this PR might not pass merge_rules.json but landed internally)

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

titaiwangms pushed a commit to titaiwangms/pytorch that referenced this pull request May 28, 2024
Differential Revision: D57469157

Pull Request resolved: pytorch#126671
Approved by: https://github.com/angelayi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/inductor ciflow/trunk Trigger trunk jobs on your pull request fb-exported Merged release notes: fx release notes category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants