Skip to content

Conversation

dimart
Copy link
Contributor

@dimart dimart commented Sep 5, 2019

At the moment, one can't use make_grid if images in the input tensor (of size B x C x H x W) are RGBA.
This PR checks the number of channels, C, before creating the grid tensor.

Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@fmassa fmassa merged commit cabca39 into pytorch:master Sep 10, 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