Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

docs目录中的有关save_image的代码组合的错误 #833

Merged
merged 1 commit into from
Jul 20, 2022

Conversation

ZoruaSama
Copy link
Contributor

Create A Good Pull Request

在torchvision.utils.save_image.md文件中的make_grid函数中:
原来使用size返回的是张量的单元数量,是一个shape为[1]的int64的张量,不是图像的通道数。因此这个代码无法正确运行。
应该将里面的size(0)改为shape[0],size(1)改为shape[1]。

下面的文字请保留在PR说明的最后面,并在提完PR后,根据实际情况勾选确认以下情况

Please check the follow step before merging this pull request

  • [x ] Python code style verification
  • [x ] Review all the code diff by yourself
  • All models(TensorFLow/Caffe/ONNX/PyTorch) testing passed
  • Details about your pull request, releated issues

If this PR add new model support, please update model_zoo.md and add model to out test model zoos(@wjj19950828)

  • New Model Supported
  • No New Model Supported

@CLAassistant
Copy link

CLAassistant commented Jul 19, 2022

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@jiangjiajun jiangjiajun left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution!

@jiangjiajun jiangjiajun merged commit 07e1fa2 into PaddlePaddle:develop Jul 20, 2022
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.

None yet

3 participants