GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Enable flake8-bugbear B020 lint by dmage · Pull Request #110823 · pytorch/pytorch Conversation
|
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/110823
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 0416162 with merge base ad3572a ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
You need to enable the rule for ruff in the pyproject.toml as well |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@Skylion007 I removed B020 from |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The new errors should make it clear that it is working properly in RUFF now. :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I don't have ideas for a better name for all_batches, so I added noqa.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
You'll also need to sign the CLA |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| for frame in iter(lambda: frame.f_back, None): # type: ignore[union-attr] | ||
| while frame is not None: | ||
| frame.f_locals | ||
| frame = frame.f_back |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This code is a bit magical for me. I suspect traversing through frames and calling frame.f_locals creates new objects that are accessible via gc.get_referrers, and my change doesn't break anything. I don't have CUDA to confirm that.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This looks fine to me, but if anything breaks in this PR, it's likely this code.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| idx = make_idx((0,), high=1) | ||
| src = make_arg((0,)) | ||
| for tgt, acc in product(tgt, (True, False)): | ||
| for tgt, acc in product(tgt_gen, (True, False)): |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This one fixes the test, should this change be in its own PR?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Great, bugbear actually caught something real. :)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@pytorchbot rebase |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@pytorchbot merge |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Successfully rebased |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
eddf5ec to
0416162
Compare
Merge startedYour 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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Fixes part of pytorch#106571 Pull Request resolved: pytorch#110823 Approved by: https://github.com/Skylion007
Fixes part of pytorch#106571 Pull Request resolved: pytorch#110823 Approved by: https://github.com/Skylion007
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.