You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
photo = cv::imread("test_image/2007_000039.jpg");
photo.convertTo(photo,CV_32FC3);
auto hostTensor = Tensor::create<float>({1,224,224,3},NULL,MNN::Tensor::TENSORFLOW);
auto data = hostTensor->host<float>();
memcpy(data,photo.data,hostTensor->size());
inputTensor->copyFromHostTensor(hostTensor);
inpurTensor是CAFFE格式的,类型也是float
hostTensor内容
copy后inputTensor的内容
The text was updated successfully, but these errors were encountered: