I convert the model and params to float16 format,
and set some parameters for float16 calculation.
int dtype_code = kDLFloat;
int dtype_bits = 16;
int dtype_lanes = 1;
int device_type = kDLOpenCL;
int device_id = 0;
then uses float2half and half2float for data conversion,
TVMArrayCopyFromBytes(x, data_x, total_inputsizeof(uint16_t));
TVMArrayCopyToBytes(y, data_y, total_outputsizeof(uint16_t));
float32 results are verified according to the example but the float16 results by above settings are wrong.
Could you have some guides?Thanks!