-
Notifications
You must be signed in to change notification settings - Fork 25k
OpInfo: renorm #59079
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
OpInfo: renorm #59079
Conversation
💊 CI failures summary and remediationsAs of commit 33621e6 (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 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 to the (internal) Dr. CI Users group. |
dtypesIfCUDA=floating_types_and(torch.float16), | ||
sample_inputs_func=sample_inputs_renorm, | ||
skips=( | ||
# AssertionError: Resized a non-empty tensor but did not warn about it. |
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.
I guess this isn't simple to fix because renorm is still in TH?
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.
@@ -1040,6 +1040,21 @@ def sample_inputs_trace(self, device, dtype, requires_grad, **kwargs): | |||
requires_grad=requires_grad))),) | |||
|
|||
|
|||
def sample_inputs_renorm(self, device, dtype, requires_grad, **kwargs): | |||
make_arg = partial(make_tensor, dtype=dtype, device=device, requires_grad=requires_grad) | |||
cases = (((S, S, S), (2, 1, 0.5)), |
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.
Note: we might want to start preserving names (where possible) now that SampleInputs have a "name" attribute
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.
Cool! We'll be done with method_tests() in no time!
@mruberry has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: Reference: pytorch#54261 Pull Request resolved: pytorch#59079 Reviewed By: ngimel Differential Revision: D28776789 Pulled By: mruberry fbshipit-source-id: ca46f2debe918c3de1f3b5bbc9924b7ddfe9442a
Reference: #54261