Skip to content

Fix inconsistent output in zoom_multi #1115

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

Merged
merged 1 commit into from
Feb 1, 2021

Conversation

dalonsoa
Copy link
Contributor

Checklist

  • I've tested that my changes are compatible with the latest version of Tensorflow.
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary.

Motivation and Context

Preprocessing tools of the type *_multi (eg. elastic_transform_multi, swirl_multi, etc) accept a numpy array as input and return a numpy array as output. On the contrary, zoom_multi accepts an array as input but returns a list of arrays, which seems inconsistent with the other functions in addition to disagree with the docstrings, which says that the return value is a numpy array.

Description

I just use np.asarray to transform the list to an array, as it is done in the other *_multi functions.

@Laicheng0830 Laicheng0830 self-requested a review February 1, 2021 00:56
@Laicheng0830 Laicheng0830 merged commit a9f77e4 into tensorlayer:master Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants