Skip to content

Conversation

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 13, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 8e95504 with merge base a89cf2b (image):
💚 Looks good so far! There are no failures yet. 💚

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

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
@Chillee Chillee added topic: not user facing topic category ciflow/trunk Trigger trunk jobs on your pull request labels Oct 13, 2024
@Skylion007
Copy link
Collaborator

Skylion007 commented Oct 13, 2024

Heads up, while this isn't explicitly checked until Python 3.13 (after which it errors) any frozen dataclass must have all it's subclasses also be frozen.

@Skylion007
Copy link
Collaborator

Also, if you are freezing all these classes too, you may want to consider slots=True later on as well for extra memory savings + performance

@Chillee
Copy link
Collaborator Author

Chillee commented Oct 13, 2024

@Skylion007

Also, if you are freezing all these classes too, you may want to consider slots=True later on as well for extra memory savings + performance

I've found it useful to be able to set attributes in __post_init__ still with __setattr__.

Heads up, while this isn't explicitly checked until Python 3.13 (after which it errors) any frozen dataclass must have all it's subclasses also be frozen.

Are you referring to python/cpython#109409? I think this is still checked in mypy

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
@Skylion007
Copy link
Collaborator

Skylion007 commented Oct 14, 2024

I've found it useful to be able to set attributes in __post_init__ still with __setattr__.

You can still set attributes in __post_init__ with slots = True as long as their name and type is pre-declared? You can also just pass init=False to the dataclass fields

@Skylion007
Copy link
Collaborator

Skylion007 commented Oct 14, 2024

@Skylion007

Also, if you are freezing all these classes too, you may want to consider slots=True later on as well for extra memory savings + performance

I've found it useful to be able to set attributes in __post_init__ still with __setattr__.

Heads up, while this isn't explicitly checked until Python 3.13 (after which it errors) any frozen dataclass must have all it's subclasses also be frozen.

Are you referring to python/cpython#109409? I think this is still checked in mypy

Cool, Python 3.13 explicitly checks it at runtime too

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
@Chillee
Copy link
Collaborator Author

Chillee commented Oct 17, 2024

@pytorchbot merge -f "One job stuck"

@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

@github-actions github-actions bot deleted the gh/chillee/366/head branch November 17, 2024 02:12
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.

6 participants