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

fix: mode #23325

Closed
wants to merge 10 commits into from
Closed

fix: mode #23325

wants to merge 10 commits into from

Conversation

eniola-ajala
Copy link

@eniola-ajala eniola-ajala commented Sep 9, 2023

Close #23325

Related Issue

Close #23325

Checklist

  • Did you add a function?
  • Did you add the tests?
  • Did you follow the steps we provided?

Socials:

@github-actions
Copy link
Contributor

github-actions bot commented Sep 9, 2023

Thanks for contributing to Ivy! 😊👏
Here are some of the important points from our Contributing Guidelines 📝:
1. Feel free to ignore the run_tests (1), run_tests (2), … jobs, and only look at the display_test_results job. 👀 It contains the following two sections:
- Combined Test Results: This shows the results of all the ivy tests that ran on the PR. ✔️
- New Failures Introduced: This lists the tests that are passing on main, but fail on the PR Fork. Please try to make sure that there are no such tests. 💪
2. The lint / Check formatting / check-formatting tests check for the formatting of your code. 📜 If it fails, please check the exact error message in the logs and fix the same. ⚠️🔧
3. Finally, the test-docstrings / run-docstring-tests check for the changes made in docstrings of the functions. This may be skipped, as well. 📚
Happy coding! 🎉👨‍💻

@eniola-ajala
Copy link
Author

Please review

@eniola-ajala eniola-ajala mentioned this pull request Sep 9, 2023
@eniola-ajala eniola-ajala changed the title Create mode mode Sep 9, 2023
@ivy-leaves ivy-leaves added the Paddle Frontend Developing the Paddle Frontend, checklist triggered by commenting add_frontend_checklist label Sep 11, 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 🤗

@eniola-ajala
Copy link
Author

close #23325

@eniola-ajala eniola-ajala mentioned this pull request Sep 11, 2023
3 tasks
@umairjavaid
Copy link
Contributor

Can you kindly link the issue and the paddle doc link for the function that you are trying to implement. I can not find it


#crrop
# Load an image (you'll need to have an image file)
image_path = "input_image.jpg" # Replace with your image file path
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove this code. This is not relevant.

Copy link
Author

Choose a reason for hiding this comment

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

I have been trying to link the issue and the paddle doc bit i haven't been able to.
Can you guide me through it, please?

Copy link
Author

Choose a reason for hiding this comment

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

Sure, I will remove the codes

Copy link
Contributor

Choose a reason for hiding this comment

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

You have to implement the frontend as explained here https://unify.ai/docs/ivy/overview/contributing/open_tasks.html#frontend-apis

mode Outdated
@@ -0,0 +1,31 @@
import paddle
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not how you how implement a function. Can you kindly share the todo list

Copy link
Contributor

@umairjavaid umairjavaid left a comment

Choose a reason for hiding this comment

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

You have to implement paddle.mode(x, axis=- 1, keepdim=False, name=None) function in the paddle frontend. Which will call the ivy.mode function. But before that you have to make sure the ivy.mode function is implemented in the ivy api. Likewise, you have to also make sure the mode function is implemented in all of the backends. If it is not, you can work on implementing that. Check https://unify.ai/docs/ivy/overview/contributing/open_tasks.html#ivy-experimental-api

@eniola-ajala
Copy link
Author

I have been unable to link the issue to the development, can you help me with it?

@@ -87,6 +87,14 @@ def sort(x, /, *, axis=-1, descending=False, name=None):
def topk(x, k, axis=None, largest=True, sorted=True, name=None):
return ivy.top_k(x, k, axis=axis, largest=largest, sorted=sorted)

#mode
@with_supported_dtypes(
Copy link
Contributor

Choose a reason for hiding this comment

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

You also have to implement its test function

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

PR Compliance Checks

Thank you for your Pull Request! We have run several checks on this pull request in order to make sure it's suitable for merging into this project. The results are listed in the following section.

Protected Branch

In order to be considered for merging, the pull request changes must not be implemented on the "main" branch. This is described in our Contributing Guide. We are closing this pull request and we would suggest that you implement your changes as described in our Contributing Guide and open a new pull request.

@eniola-ajala eniola-ajala mentioned this pull request Sep 26, 2023
3 tasks
@eniola-ajala eniola-ajala changed the title mode fix: mode Sep 26, 2023
@umairjavaid umairjavaid removed their assignment Oct 16, 2023
@MahmoudAshraf97
Copy link
Contributor

Hello, are you still working on this?

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.

5 participants