Created
April 12, 2021 20:32
-
-
Save jamesr66a/f6dc8f88033bffc4c9c46de3120ac377 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
c = torch.nn.Conv2d(5, 5, 3).to(memory_format=torch.channels_last) | |
x = torch.randn(5, 5, 224, 224).to(memory_format=torch.channels_last) | |
print(c(x).is_contiguous(memory_format=torch.channels_last)) | |
""" | |
False | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment