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

error: could not convert ‘at::CUDA(((c10::ScalarType)c10::kFloat))’ from ‘at::DeprecatedTypeProperties’ to ‘c10::IntArrayRef’ {aka ‘c10::ArrayRef<long int>’} 44 | auto max_val = at::zeros(torch::CUDA(at::kFloat), {batch, channel, width}); #18

Open
calendar3450 opened this issue Apr 25, 2022 · 2 comments

Comments

@calendar3450
Copy link

HI I read your paper and interesting about your chartOCR. But I have a error.
error: could not convert ‘at::CUDA(((c10::ScalarType)c10::kFloat))’ from ‘at::DeprecatedTypeProperties’ to ‘c10::IntArrayRef’ {aka ‘c10::ArrayRef’}
44 | auto max_val = at::zeros(torch::CUDA(at::kFloat), {batch, channel, width});
I read read me and git clone CornerNet but I dont know about this error I install cuda and install all package

@MakowToms
Copy link

In all the places you have to change order of at::zeros arguments. For example, change at::zeros(torch::CUDA(at::kFloat), {batch, channel, width}); into at::zeros({batch, channel, width}, torch::CUDA(at::kFloat));

@calendar3450
Copy link
Author

In all the places you have to change order of at::zeros arguments. For example, change at::zeros(torch::CUDA(at::kFloat), {batch, channel, width}); into at::zeros({batch, channel, width}, torch::CUDA(at::kFloat));

Thx!! You save my life!!

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

No branches or pull requests

2 participants