-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
feat: corrcoef instance method for pytorch frontend and test function added #27032
feat: corrcoef instance method for pytorch frontend and test function added #27032
Conversation
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.
PR Compliance Checks Passed!
Thank you for this PR, here is the CI results: This pull request does not result in any additional test failures. Congratulations! |
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.
Hey @sharjeelnawaz8182, thanks a lot for the PR. However, we need to fix the tests first in order to merge the PR. Please run your tests locally using pytest
first to see if they're passing or not. I tested them locally and they were failing for me for all the backends.
@hmahmood24 |
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.
Hey @sharjeelnawaz8182, thanks for the PR. Requesting minor changes. Let me know if the tests still fail after this. Also, it would be helpful if you can share the logs of the test failures here so we can take a look at fixing them. Thanks!
min_value=1, | ||
shared_dtype=True, |
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 don't need to keep these arguments. You can remove these
init_tree="torch.tensor", | ||
method_name="corrcoef", | ||
dtype_and_x=helpers.dtype_and_values( | ||
available_dtypes=helpers.get_dtypes("float"), |
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 prefer using "valid"
instead of "float"
here. Of course you'll then have to update the @with_unsupported_dtypes
decorator to correctly flag all the invalid dtypes or inversely use the @with_supported_dtypes
to just define the valid dtypes
init_all_as_kwargs_np={ | ||
"data": x[0], | ||
}, | ||
method_input_dtypes=[], |
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 need to pass input_dtype
over here as well
Closing this PR since it has been stale for more than 2 weeks now. |
PR Description
Related Issue
Closes #26843
Checklist
Socials