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

Implemented and tested Rot90 for Paddle frontends #17708

Merged
merged 21 commits into from
Jul 4, 2023

Conversation

XinyuanWang283
Copy link
Contributor

Close#16746

@XinyuanWang283
Copy link
Contributor Author

Close #16746

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

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 🤗

@XinyuanWang283
Copy link
Contributor Author

Hi! @DragosStoican Could you please help me check about my code?

init_tree="paddle.to_tensor",
method_name="rot90",
dtype_m_k_axes=_get_dtype_values_k_axes_for_rot90(
available_dtypes=helpers.get_dtypes("numeric"),
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.

The numeric has included float, integer, bool types that are all supported by Rot90. you can check https://docs.python.org/3/library/stdtypes.html#numeric-types-int-float-complex. Please free free to ask me any questions. Thank you!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@DragosStoican DragosStoican Jun 29, 2023

Choose a reason for hiding this comment

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

Hi @XinyuanWang283 we would prefer to use the argument "valid" in the helpers.get_dtypes function. When using the "valid" argument the tests are created according to the supported dtypes you've defined with the decorator
@with_supported_dtypes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you very much for your guidance. @DragosStoican Sorry, I made a mistake. I have fixed it. Could you help me review it again. Thanks!

@DragosStoican DragosStoican linked an issue Jul 4, 2023 that may be closed by this pull request
@DragosStoican
Copy link
Contributor

Thank you very much for your contribution and cooperation @XinyuanWang283. I'm happy to get this merged now!

@DragosStoican DragosStoican merged commit 4568a18 into ivy-llc:master Jul 4, 2023
25 of 28 checks passed
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.

rot90
4 participants