Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[PyTocrhv1:第三章问题收集] #75

Open
ZhikangNiu opened this issue Dec 7, 2023 · 1 comment
Open

[PyTocrhv1:第三章问题收集] #75

ZhikangNiu opened this issue Dec 7, 2023 · 1 comment

Comments

@ZhikangNiu
Copy link
Collaborator

No description provided.

@Shimmer756
Copy link

1732105284349
在3.3的最下面部分

import matplotlib.pyplot as plt
images, labels = next(iter(val_loader))
print(images.shape)
plt.imshow(images[0].transpose(1,2,0))
plt.show()

这里的transpose应该改为permute(1,2,0),因为transpose不支持三个维度的交换,您看是这样吗

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants