Skip to content

Conversation

@kevinbchen
Copy link
Contributor

Summary:
When converting pixel_shuffle to reshape + transpose, the transpose should be:

[-1, upscale_factor, upscale_factor, output_channel, dims[2], dims[3]]
=>
[-1, dims[2], upscale_factor, dims[3], upscale_factor, output_channel]

We want to vary the spatial dimensions slower than the upscale dim, otherwise
we get tiling instead of upscaling.

Differential Revision: D14817912

Summary:
When converting pixel_shuffle to reshape + transpose, the transpose should be:

[-1, upscale_factor, upscale_factor, output_channel, dims[2], dims[3]]
=>
[-1, dims[2], upscale_factor, dims[3], upscale_factor, output_channel]

We want to vary the spatial dimensions slower than the upscale dim, otherwise
we get tiling instead of upscaling.

Differential Revision: D14817912

fbshipit-source-id: 112ddf50d8ce22db39542e9202214050fadc4e57
@houseroad
Copy link
Member

@houseroad houseroad self-requested a review April 9, 2019 04:58
@kevinbchen
Copy link
Contributor Author

Actual fix in #21486 (issue was in the previous reshape, not the transpose).

@kevinbchen kevinbchen closed this Jun 6, 2019
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