Skip to content

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
Contributor

@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
Contributor

@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