-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Fixes for collections.NamedTuple
#159367
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
base: gh/guilhermeleobas/216/base
Are you sure you want to change the base?
Fixes for collections.NamedTuple
#159367
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/159367
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ❌ 2 New Failures, 1 Unrelated FailureAs of commit 196d4ae with merge base aeb5321 ( NEW FAILURES - The following jobs have failed:
UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
test? Especially for the |
torch/_dynamo/polyfills/__init__.py
Outdated
@@ -101,6 +101,10 @@ def accumulate_grad(x, new_grad): | |||
x.grad.add_(new_grad_strided) | |||
|
|||
|
|||
def is_iterable(obj): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a typing_extensions.TypeIs[Iterable] as a return type to propagate the type narrowing.
Stack from ghstack (oldest at bottom):
set_fullgraph(False)
intest_collections
#159902list(UserDefinedObject)
viaforce_unpack_var_sequence
#159864next(iterator, default)
#159483collections.Counter
#159368collections.NamedTuple
#159367MutableMappingVariable
toAttributeMutationNew
#159366cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames @Lucaskabela @mlazos