hzwangjl opened a new issue #7529: URL: https://github.com/apache/tvm/issues/7529
I have relay.build_module.build the model to fp16, but during cpp deploy, need to convert image data to fp16. I tried the following method, but it didn't work. Is there any efficient method in TVM? Thank you~ ``` DLTensor *fp32_tensor; DLTensor *fp16_tensor; TVMArrayAlloc(shape, ndim, KDLFloat, 32, lanes, KDLCPU, 0, &fp32_tensor); TVMArrayAlloc(shape, ndim, KDLFloat, 16, lanes, KDLGPU, 0, &fp32_tensor); memcpy(fp32_tensor->data, data_cpu, size); TVMArrayCopyFromTo(fp32_tensor, fp16_tensor); ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
