Closed hansely closed 1 year ago
VX_TYPE_FLOAT32 is an enum def which is the 4 bytes. The vx_float16 is typedef to half. This will return 2
VX_TYPE_FLOAT32 is an enum def which is the 4 bytes. The vx_float16 is typedef to half. This will return 2
Yes, will modify the code accordingly to match the expected behavior
@hansely - you need to use vx_int8, vx_float32, & vx_float64
@hansely - changing the issue name to reflect the PR fix. you might need to pull in PR #1199 into your PR to find vx_float16 definition in https://github.com/GPUOpen-ProfessionalCompute-Libraries/MIVisionX/blob/5d836de20ca998bd7203c4ffa196e82c0f752d17/amd_openvx/openvx/include/vx_ext_amd.h#L505
Using vx_enum type to get the size of data type always returns 4 regardless of the actual data type. e.g.
The above code lines all return 4.
This cause unexpected behavior especially when calculating the tensor memory size. e.g.