-
Notifications
You must be signed in to change notification settings - Fork 117
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 docstring ops/image/resize #509
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!
|
||
>>> x = np.random.random((2, 4, 4, 3)) # batch of 2 RGB images | ||
>>> y = keras_core.ops.image.resize(x, (2, 2)) | ||
>>> y.shape |
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.
Print shape (same below)
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.
That depends on the backend, if it is TensorFlow it'll output TensorShape
etc. Guess it is best to remove y.shape
then?
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.
Is it OK to put symbolic outputs here, like: (2, 2, 2, 3)
etc?
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.
Yes, it should just be indicative.
Thank you for your comments @fchollet, should be good to go now 😎 Edit: Can you also check keras-team/keras#18442? |
Hi @fchollet, any update on this? Looks like I can't re-run the checks 😢 |
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, thanks!
* Image resize docstring added * Unindent examples * Remove tf tensor reference * Update the resize docstring * Add default arg
PR adds the docstring for
keras_core.ops.image.resize