Skip to content

Conversation

RenfeiChen-FB
Copy link
Contributor

Summary:
Basically today we:
[getattr....getattr, call partition1, call parition2]
this makes getattr just in time:
so [getattr, call partition1, getattr, call partition 2 ..]

Test Plan:
CMF and MAI test result:
https://fb.quip.com/K5J9A7G246Ox

Differential Revision: D43376080

@pytorch-bot
Copy link

pytorch-bot bot commented Feb 16, 2023

🔗 Helpful Links

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

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

✅ No Failures

As of commit 67f69df:
💚 Looks good so far! There are no failures yet. 💚

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

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Feb 16, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: RenfeiChen-FB (a183ceb539fa3537d5fbc4c6bfc2801d2957a4e8)

@pytorch-bot pytorch-bot bot added the release notes: fx release notes category label Feb 16, 2023
@facebook-github-bot
Copy link
Contributor

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

@RenfeiChen-FB
Copy link
Contributor Author

/easycla

@facebook-github-bot
Copy link
Contributor

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

…g all get_attr ahead (pytorch#95014)

Summary:
Pull Request resolved: pytorch#95014

Basically today we:
[getattr....getattr, call partition1, call parition2]
this makes getattr just in time:
so [getattr, call partition1, getattr, call partition 2 ..]

Test Plan:
CMF and MAI test result:
https://fb.quip.com/K5J9A7G246Ox

Reviewed By: angelayi

Differential Revision: D43376080

fbshipit-source-id: 69c2fcfdf469706f9649f6d1d17d695f4693d04a
@facebook-github-bot
Copy link
Contributor

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

@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).

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

else:
# Go through the graph to construct the mapping dict
for node in m.graph.nodes:
if node.op == "placeholder" or "get_attr":
Copy link
Contributor

Choose a reason for hiding this comment

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

This will always return true because the second part of the or condition is just a non-empty string:

>>> foo = "get_attr"
>>> foo == "placeholder" or "get_attr"
'get_attr'
>>> foo = "placeholder"
>>> foo == "placeholder" or "get_attr"
True

You want to use another == or use in

if node.op in ("placeholder", "get_attr"):

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for pointing out!

cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Mar 5, 2023
…g all get_attr ahead (#95014)

Summary:
Basically today we:
[getattr....getattr, call partition1, call parition2]
this makes getattr just in time:
so [getattr, call partition1, getattr, call partition 2 ..]

Test Plan:
CMF and MAI test result:
https://fb.quip.com/K5J9A7G246Ox

Differential Revision: D43376080

Pull Request resolved: pytorch/pytorch#95014
Approved by: https://github.com/angelayi
pruthvistony added a commit to ROCm/pytorch that referenced this pull request May 2, 2023
jhavukainen pushed a commit to kulinseth/pytorch that referenced this pull request Mar 15, 2024
…g all get_attr ahead (pytorch#95014)

Summary:
Basically today we:
[getattr....getattr, call partition1, call parition2]
this makes getattr just in time:
so [getattr, call partition1, getattr, call partition 2 ..]

Test Plan:
CMF and MAI test result:
https://fb.quip.com/K5J9A7G246Ox

Differential Revision: D43376080

Pull Request resolved: pytorch#95014
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants