KhronosGroup / OpenVX-cts

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

The CTS vxConvolutionLayer reference code is incorrect. #4

Open kaihongxia opened 5 years ago

kaihongxia commented 5 years ago

From the doc of vx_khr_nn_1_2_1.pdf, The following equation is implemented: outputs[j,k,i]=saturate(round(∑l(∑m,n(inputs[j+m,k+n,l]×weights[m,n,l,i]))+biasses[j,k,i]))

But The reference code equation is implemented: outputs[j,k,i]=saturate(∑l(∑m,n(warp(inputs[j+m,k+n,l]×weights[m,n,l,i]))+biasses[j,k,i]))

Please help to check.

kaihongxia commented 5 years ago

https://github.com/KhronosGroup/OpenVX-cts/blob/openvx_1.2/test_conformance/test_tensor_nn.c line:171