DeepRule
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});
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
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));
In all the places you have to change order of
at::zeros
arguments. For example, changeat::zeros(torch::CUDA(at::kFloat), {batch, channel, width});
intoat::zeros({batch, channel, width}, torch::CUDA(at::kFloat));
Thx!! You save my life!!