Skip to content

[prototype] Reshape input before equalize #6775

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 2 commits into from
Oct 14, 2022

Conversation

datumbox
Copy link
Contributor

related to #6772

The input image also requires reshape to avoid errors such as:

RuntimeError: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead.

We should consider on a follow up PR to update all view() to reshape() calls.

Copy link
Collaborator

@pmeier pmeier left a comment

Choose a reason for hiding this comment

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

Thanks!

We should consider on a follow up PR to update all view() to reshape() calls.

+1. Will do.

Copy link
Collaborator

@vfdev-5 vfdev-5 left a comment

Choose a reason for hiding this comment

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

Stamp ✉️

@datumbox datumbox merged commit e2fa1f9 into pytorch:main Oct 14, 2022
@datumbox datumbox deleted the prototype/equalize_reshape branch October 14, 2022 16:38
facebook-github-bot pushed a commit that referenced this pull request Oct 17, 2022
Reviewed By: NicolasHug

Differential Revision: D40427474

fbshipit-source-id: cf180464c6859db68bd214730394c99fb78f591d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants