Open RobertCall opened 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
vx_uint8 ref = wrap ? (vx_uint8)tmp : CLAMP(tmp, 0, UINT8_MAX); // CLAMP not really needed
vx_uint8
vx_uint8 ref = wrap ? (vx_uint8)(vx_int8)tmp : CLAMP(tmp, 0, UINT8_MAX); // CLAMP not really needed
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
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) tovx_uint8
on ARM platform. I changed code like thisvx_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