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

Added serialize function to activations.py #23432

Merged
merged 4 commits into from
Sep 22, 2023
Merged

Added serialize function to activations.py #23432

merged 4 commits into from
Sep 22, 2023

Conversation

Nik-code
Copy link
Contributor

PR Description

Related Issue

Closes #1569

@github-actions
Copy link
Contributor

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! 🎉👨‍💻

@ivy-leaves ivy-leaves added the TensorFlow Frontend Developing the TensorFlow Frontend, checklist triggered by commenting add_frontend_checklist label Sep 11, 2023
@Nik-code
Copy link
Contributor Author

@paulaehab Hey, can you please review my PR. Thank you.

@paulaehab
Copy link
Contributor

Hello @Nik-code first of all thanks for contributing but could you please add test for the fucntion you will find more details in this link : (https://unify.ai/docs/ivy/overview/deep_dive/ivy_frontends_tests.html)

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.

Issue Reference

In order to be considered for merging, the pull request description must refer to a specific issue number. This is described in our contributing guide and our PR template.
This check is looking for a phrase similar to: "Fixes #XYZ" or "Resolves #XYZ" where XYZ is the issue number that this PR is meant to address.

Conventional Commit PR Title

In order to be considered for merging, the pull request title must match the specification in conventional commits. You can edit the title in order for this check to pass.
Most often, our PR titles are something like one of these:

  • docs: correct typo in README
  • feat: implement dark mode"
  • fix: correct remove button behavior

Linting Errors

  • Found type "null", must be one of "feat","fix","docs","style","refactor","perf","test","build","ci","chore","revert"
  • No subject found

Added tests for the serialize function
@Nik-code
Copy link
Contributor Author

Hey @paulaehab , I have added the relevant tests for the serialize function in the test_activation.py file. I've added them with compliance to the documentation you mentioned here, please review the new commit for the changes, thanks.

This was referenced Sep 20, 2023
@abdul-rehman18
Copy link

#25772

{"2.13.0 and below": ("float16", "float32", "float64")},
"tensorflow",
)
def serialize(func, custom_objects=None):
Copy link
Contributor

Choose a reason for hiding this comment

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

we need to adhere the Tensorflow frontend names for arguments it was in documentation (activation, use_legacy_format=False) you could have a look here (https://www.tensorflow.org/api_docs/python/tf/keras/activations/serialize )

@abdul-rehman18
Copy link

#25790

@paulaehab
kindly review it

@paulaehab
Copy link
Contributor

paulaehab commented Sep 21, 2023

Hey @Nik-code could you please follow the instruction of this page https://unify.ai/docs/ivy/overview/contributing/the_basics.html#todo-list-issues to add issue related to serialize function in #1569 and add the issue number in comment instead of ( Closes #1569)
Also change the comment I added in the code and I will merge it thanks for contributing 😄

@abdul-rehman18
Copy link

@paulaehab
I also made a pr

@paulaehab
Copy link
Contributor

#25790

@paulaehab kindly review it

Hello @abdul-rehman18 I am very sorry @Nik-code had already made the function and he just forget to add issue with function name , also it was my fault that I didn't get it I am sorry for that could you pick another function and again sorry for this mistake

@abdul-rehman18
Copy link

no problem sir @paulaehab
Thanks

@paulaehab
Copy link
Contributor

no problem sir @paulaehab Thanks
Thanks for your understanding and again sorry for this mistake if you make another PR feel free to ask review for me

@Nik-code
Copy link
Contributor Author

Hey @paulaehab , thank you for the suggestions. I'll make sure to make the requested changes soon and post the commit 😊

@Nik-code
Copy link
Contributor Author

Close #25851

@Nik-code
Copy link
Contributor Author

Hey @paulaehab I have made a new commit changing the function description according to the TensorFlow documentation, Also I have correctly created a sub-task which I mentioned above that is now referenced in #1569

@Nik-code Nik-code requested a review from paulaehab September 22, 2023 08:41
@paulaehab
Copy link
Contributor

Hey @Nik-code thanks for contributing look great for me 😄

@paulaehab paulaehab merged commit 2a3c94b into ivy-llc:main Sep 22, 2023
219 of 267 checks passed
iababio pushed a commit to iababio/ivy that referenced this pull request Sep 27, 2023
druvdub pushed a commit to druvdub/ivy that referenced this pull request Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TensorFlow Frontend Developing the TensorFlow Frontend, checklist triggered by commenting add_frontend_checklist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Activation functions for TensorFlow frontend
4 participants