Skip to content
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

Dropout 2D function and Test in Paddle #17477

Merged
merged 7 commits into from
Jun 28, 2023

Conversation

HaiderSultanArc
Copy link
Contributor

Close #17475

@ivy-leaves ivy-leaves added the Paddle Frontend Developing the Paddle Frontend, checklist triggered by commenting add_frontend_checklist label Jun 21, 2023
@DragosStoican
Copy link
Contributor

Hi @HaiderSultanArc please also make sure that the formatting test passes or I cannot merge the PR. You can check the logs here on github or locally to see what went wrong!

@HaiderSultanArc
Copy link
Contributor Author

HaiderSultanArc commented Jun 26, 2023

@DragosStoican I fixed the formatting. Let me know if any other changes are required.

@handle_frontend_test(
fn_tree="paddle.nn.functional.common.dropout2d",
d_type_and_x=helpers.dtype_and_values(
available_dtypes=helpers.get_dtypes("float"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should be ideally testing for all valid dtypes, and not only a subset.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it

@DragosStoican
Copy link
Contributor

When testing the function, we should ideally test for all valid dtypes, not only a subset. Can you use the key "valid" when generating dtypes and making sure the test is still passing? I added a comment on that line to help you understand what I'm referring to :)

@DragosStoican
Copy link
Contributor

Thank you for your contribution!

@DragosStoican DragosStoican merged commit acfd0ab into ivy-llc:master Jun 28, 2023
122 of 138 checks passed
@HaiderSultanArc HaiderSultanArc deleted the dropout2d branch June 28, 2023 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Paddle Frontend Developing the Paddle Frontend, checklist triggered by commenting add_frontend_checklist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dropout2d
3 participants