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

Add 6 new APIs (to pooling and image) and document many missing APIs. #9

Merged
merged 3 commits into from
Aug 25, 2020

Conversation

david-berthelot
Copy link
Contributor

No description provided.

…ntries. Added new APIs: space_to_batch2d, space_to_channel2d, batch_to_space2d, channel_to_space2d, normalize_to_uint8, normalize_to_unit_float (with docs and tests).
objax/functional/core/ops.py Outdated Show resolved Hide resolved
objax/functional/core/ops.py Outdated Show resolved Hide resolved
output tensor of shape (N // (size[0] * size[1]), C, H * size[0], W * size[1]).
"""
size = to_tuple(size, 2)
s = x.shape
Copy link
Member

Choose a reason for hiding this comment

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

maybe add assert len(x.shape) == 4 to prevent users accidentally calling it for wrong number of dimentions

also add same assert in other functions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm unsure about introduction of asserts everywhere. This is outside of the scope of this change, we should discuss it separately.

docs/source/objax/functional.rst Outdated Show resolved Hide resolved
docs/source/objax/functional.rst Outdated Show resolved Hide resolved
…ntries. Added new APIs: space_to_batch2d, space_to_channel2d, batch_to_space2d, channel_to_space2d, normalize_to_uint8, normalize_to_unit_float (with docs and tests).
@aterzis-google aterzis-google merged commit eb598aa into master Aug 25, 2020
@david-berthelot david-berthelot deleted the features branch August 25, 2020 23:47
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.

3 participants