-
Notifications
You must be signed in to change notification settings - Fork 25.5k
[quant][grapphmode][fx][test][refactor] Refactor quantized add test #43372
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
Summary: So that adding more binary op tests are easier Test Plan: Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit 0515808 (more details on the Dr. CI page):
XLA failureJob pytorch_xla_linux_bionic_py3_6_clang9_test is failing. Please create an issue with title prefixed by This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group. This comment has been revised 5 times. |
# class NonQuantizedOp(torch.nn.Module): | ||
# def __init__(self, is_inplace, is_scalar): | ||
# super(NonQuantizedOp, self).__init__() | ||
# self.is_scalar = is_scalar | ||
# self.op = ibinary_op if is_inplace else binary_op | ||
|
||
# def forward(self, x, y): | ||
# return x + y | ||
|
||
# class NonQuantizedInplaceAdd(torch.nn.Module): | ||
# def __init__(self): | ||
# super(NonQuantizedInplaceAdd, self).__init__() | ||
|
||
# def forward(self, x, y): | ||
# x += y | ||
# y = 3 if self.is_scalar else y | ||
# x = self.op(x, y) | ||
# return x |
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.
Do we still need this?
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.
we'll either remove or enable this after we decide what to do in this case
… add test" Summary: So that adding more binary op tests are easier Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23257046](https://our.internmc.facebook.com/intern/diff/D23257046) [ghstack-poisoned]
This pull request has been merged in ff454cc. |
Stack from ghstack:
Summary:
So that adding more binary op tests are easier
Test Plan:
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: D23257046