-
Notifications
You must be signed in to change notification settings - Fork 118
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 bug + Add Tests + Enhance docstrings (shape_equal) #751
Conversation
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.
Thanks for the PR!
Hi @fchollet :) Which Python function docstring standard does the Keras team use? Please recommend a python library for docstring. Black is not working with docstring as far as u know. I can not find any information This ? Thank you |
You can copy/paste code snippets into a black formatting tool, there are webpages that can do it. |
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.
LGTM, thank you!
Bug Fix:
In
shape_equal
function, usingaxis=1
resulted in theerror: TypeError: 'int' object is not iterable.
but
axis=[1]
worked correctly.After hours of trying :) the issue has been resolved, and now an integer, list, or tuple of integers work as expected and documented.
Improved Docstrings:
The documentation for the shape_equal function has been enhanced. It now provides a more in-depth description and includes illustrative examples.
Additional Tests:
A new set of tests has been added to ensure the proper functionality of the
shape_equal
function.Why do we need tests for the
shape_equal
function? Because there are 7 other functions depend on it:Please share your feedback, thank you for the guidance, I am learning so much :)