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
Adding Cos, Sin, Acos, Sigmoid to PyTorch Frontend #2471
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.
Hi can you please make the requested changes and re request a review :)
@@ -4,7 +4,7 @@ | |||
<option name="INTERPRETER_OPTIONS" value="" /> | |||
<option name="PARENT_ENVS" value="true" /> | |||
<option name="SDK_HOME" value="" /> | |||
<option name="WORKING_DIRECTORY" value="" /> | |||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" /> |
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 you please remove this change :)
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.
sure
@@ -4,7 +4,7 @@ | |||
<option name="INTERPRETER_OPTIONS" value="" /> | |||
<option name="PARENT_ENVS" value="true" /> | |||
<option name="SDK_HOME" value="" /> | |||
<option name="WORKING_DIRECTORY" value="" /> | |||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" /> |
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.
Please remove this changes also
ivy_tests/test_ivy/test_functional/test_core/test_elementwise.py
Outdated
Show resolved
Hide resolved
ivy_tests/test_ivy/test_functional/test_core/test_elementwise.py |
Hi @pritam1322, It looks like you are implementing multiple functions yet you have only requested to do Thanks, |
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.
In this PR you are still deleting the contents of file in .idea
. In order to correct this you need to revert them back to how they are on Ivy/master locally and push the change.
Once you have done this request a review and I will review your implementations
@@ -1,2175 +0,0 @@ | |||
"""Collection of tests for elementwise functions.""" |
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.
In this PR this is still a change to delete the contents of this file. Please undo.
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 can't undo it. Should I add it again
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.
Done
@@ -1,48 +0,0 @@ | |||
<component name="ProjectRunConfigurationManager"> |
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.
In this PR this is still a change to delete the contents of this file. Please undo.
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.
This is still an issue you need to revert this file to how it was on Ivy/master
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.
Done
@@ -1,48 +0,0 @@ | |||
<component name="ProjectRunConfigurationManager"> |
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.
In this PR this is still a change to delete the contents of this file. Please undo.
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.
This is still an issue you need to revert this file to how it was on Ivy/master
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.
Done
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.
Hi,
You have some lint errors with this commit. You can install a pre-commit hook as documented here. To prevent these errors in the future. The issues are highlighted in the GitHub action here. Please make the corrections for any files that are included in this commit.
Finally there are test failures for the functions you have implemented here. You need to have the tests passing before I can merge to master.
Thanks,
James
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.
Please see requested changes :). I am also seeing some lint errors regarding the files you have been working on, if you haven't already please install a pre commit hook as documented here. This will prevent any lint errors.
|
||
def sigmoid(input, out=None): | ||
return ivy.sigmoid(input, out=out) | ||
|
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.
add float 16 as unsupported data type here
): | ||
input_dtype, x = dtype_and_x | ||
|
||
if input_dtype == "float16": |
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 shouldn't skip any testing scenarios in the testing body. Please remove. See above for fix for this data type.
I have installed pre-commit and it gets check during push, but still getting lint error |
Should I create separate PR for each function? Things are getting mixed up. |
Lint run successfully |
Yep this looks good to me and all tests passing. Thanks! |
Add Pointwise ops to PyTorch Frontend #12