Skip to content

Conversation

@yanboliang
Copy link
Contributor

@yanboliang yanboliang commented Nov 7, 2022

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 7, 2022

🔗 Helpful Links

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

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

❌ 1 Failures

As of commit d56e79d:

The following jobs have failed:

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

@staticmethod
def weakref_to_str(obj_weakref):
"""
This is a workaround of a Python weakref bug.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Opened python/cpython#99184 to track this bug at cpython.

@ezyang
Copy link
Contributor

ezyang commented Nov 7, 2022

cpython devs disagree with the assessment that it's a cpython bug, wdyt? Why are we printing weakrefs in the first place?

@yanboliang
Copy link
Contributor Author

yanboliang commented Nov 7, 2022

cpython devs disagree with the assessment that it's a cpython bug, wdyt?

I responded on that thread.

Why are we printing weakrefs in the first place?

I think this is info and debug purpose.

Overall, I think even cpython devs disagree with this is a cpython bug, we should still have this fix at dynamo. Because we don't expect PyTorch/Dynamo users who override __getattr__ need to take care of handling a lot of python internal stuff like '__name__', '__class__', ..., which is a bad UX.

Update: cpython fix is ready - python/cpython#99244.

@yanboliang yanboliang requested review from anijain2305 and jansel and removed request for jansel November 11, 2022 06:16
Copy link
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

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

link the weakref bug and happy to accept

@yanboliang
Copy link
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Nov 11, 2022
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

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

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: This PR is too stale; the last push date was more than 3 days ago. Please rebase and try again. You can rebase by leaving the following comment on this PR:
@pytorchbot rebase

Details for Dev Infra team Raised by workflow job

@yanboliang
Copy link
Contributor Author

@pytorchbot merge -f "irrelevant MacOS errors"

@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

@yanboliang yanboliang deleted the weakref branch November 11, 2022 22:33
pytorchmergebot pushed a commit that referenced this pull request Nov 12, 2022
kulinseth pushed a commit to kulinseth/pytorch that referenced this pull request Dec 10, 2022
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 Merged module: dynamo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants