Libtorch C++ convert a Tensor to cv:Mat (single channel - C++ ...
discuss.pytorch.org › t › libtorch-c-convert-aJun 12, 2019 · Hi, big masters and huge Gods, I wanna ask a question hope anyone open this link can give me a help which is convert a Tensor to cv::Mat. I have a Tensor outputs from my model and it’s [1, 19, 32, 43] shape, which is, batch_size, 19 instances, and 32x43 is the featuremap size. I have it’s type: CPUFloatType.