-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Added bilinear function in ivy.frontend.paddle.nn.functional.common.py #21371
Conversation
Thanks for contributing to Ivy! 😊👏 |
If you are working on an open task, please edit the PR description to link to the issue you've created. For more information, please check ToDo List Issues Guide. Thank you 🤗 |
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.
Hello, @MuhammadTalha-10 ,Kindly add the close #issue_number
in the PR description, so that the pull request gets linked to the issue that you have just created. Doing this, will automatically close the issue as completed when the pull request gets merged.
Also, while you have added the implementation for the function, you should also add the test function in the corresponding test file.
Thanks
In ivy_test directory? |
Yes the description is correct as the issue is now linked , and you should implement test in the ivy test directory. please find the correct frontend test file. |
I will do it as soon as possible thank you for guidance. |
I have committed the final changes |
@MuhammadTalha-10 , looked at the test logs, It seems that there is some issue with the test configuration.
please recheck it once and do try to run the test locally as well. |
Sure, I will try to fix this issue |
I tested it locally after making some changes and no error occurred there was just a warning "WARNING:root:This function includes the mixed partial function 'ivy.linear'. Please note that the returned data types may not be exhaustive. Please check the dtypes of |
frontend, | ||
test_flags, | ||
): | ||
dtype, x1, x2, weight, bias = dtype_x_weight_bias |
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 fetch the support dtypes for this test instead of reusing the earlier one for linear using the handle_frontend_test
decorator similar to other tests to configure the test correctly!
Thanks for contributing, sorry just checking! Could you comment |
Can you help me with these conflicts? I am committing changes in my own branch but there are conflicting files and I am unable to figure this out why is this happening |
@@ -113,5 +113,14 @@ def linear(x, weight, bias=None, name=None): | |||
|
|||
@to_ivy_arrays_and_back | |||
@with_supported_dtypes({"2.5.1 and below": ("float32", "float64")}, "paddle") | |||
def dropout3d(x, p=0.5, training=True, data_format="NCDHW", name=None): | |||
return ivy.dropout3d(x, p, training=training, data_format=data_format) |
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 don't remove any existing code to add yours!
@handle_frontend_test( | ||
fn_tree="paddle.nn.functional.common.dropout3d", |
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.
Again, please don't remove code to add tests!
Try pulling a fresh fork of ivy and then adding your changes, currently you seem to have removed a few lines of code that were present, please revert these, and can then review once you request. Thanks for contributing |
I will try that, thanks! |
close #21366