-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[JIT] Change SchemaCheckTensor into SchemaCheckMode and fix global variable issues #79473
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
Conversation
…riable issues [ghstack-poisoned]
🔗 Helpful links
✅ No Failures (0 Pending)As of commit 6d5129f (more details on the Dr. CI page): Expand to see more💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
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.
LGTM
|
||
def __torch_dispatch__(self, func, types, args=(), kwargs=None): | ||
def has_mutated(before, after): | ||
return not torch.equal(before, after) if isinstance(before, torch.Tensor) and isinstance(after, torch.Tensor) else False |
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.
Can we deepcopy before ? (unrelated to refactor)
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.
Yes we deepcopy before. (Although I'm not entirely sure if that's what you are asking here)
@pytorchbot merge |
@pytorchbot successfully started a merge job. Check the current status here |
Hey @goldenxuett. |
…riable issues (#79473) Summary: Pull Request resolved: #79473 Approved by: https://github.com/eellison Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/42fd58eaa0098f5f21890483d35cfcbd3ebcfb34 Reviewed By: malfet Differential Revision: D37208504 Pulled By: goldenxuett fbshipit-source-id: ffaf9ef6929c53cfbc6a9c0905eab6010bb1c45c
Stack from ghstack (oldest at bottom):