KhronosGroup / OpenVX-cts

OpenVX Conformance Test Suite
Apache License 2.0
9 stars 6 forks source link

CTS TensorConvertDepth failed on ARM platform #23

Open RobertCall opened 4 years ago

RobertCall commented 4 years ago

test_conformance/test_tensor_op.c:1869, 2078 vx_uint8 ref = wrap ? (vx_uint8)tmp : CLAMP(tmp, 0, UINT8_MAX); // CLAMP not really needed Incorrect behavior of casting tmp(floor) to vx_uint8 on ARM platform. I changed code like this vx_uint8 ref = wrap ? (vx_uint8)(vx_int8)tmp : CLAMP(tmp, 0, UINT8_MAX); // CLAMP not really needed and tests passed. Failed tests: TensorOp.vxuTensorConvertDepth/10/DEPTH_CONVERT_WRAP_Q78_TO_U8_FULL TensorOp.vxuTensorConvertDepth/16/DEPTH_CONVERT_WRAP_S8_TO_U8_FULL TensorOp.vxTensorConvertDepth/10/DEPTH_CONVERT_WRAP_Q78_TO_U8_FULL TensorOp.vxTensorConvertDepth/16/DEPTH_CONVERT_WRAP_S8_TO_U8_FULL