DeepRule icon indicating copy to clipboard operation
DeepRule copied to clipboard

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});

Open calendar3450 opened this issue 2 years ago • 2 comments

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

calendar3450 avatar Apr 25 '22 10:04 calendar3450

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));

MakowToms avatar May 12 '22 05:05 MakowToms

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!!

calendar3450 avatar May 19 '22 11:05 calendar3450