Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression test (pytest) stucks issues found #46

Open
hanyong97 opened this issue Apr 18, 2022 · 0 comments
Open

Regression test (pytest) stucks issues found #46

hanyong97 opened this issue Apr 18, 2022 · 0 comments

Comments

@hanyong97
Copy link

hanyong97 commented Apr 18, 2022

I just ran "python3 -m pytest" in nngen/tests directory.
Found out that follow test cases make the regression test stucks:
"/nngen/tests/onnx_matrix_conv2d/test_onnx_matrix_conv2d_sigmoid_int8_3x3_stride1.py"
"/nngen/tests/onnx_matrix_conv2d/test_onnx_matrix_conv2d_sigmoid_int16_3x3_stride1.py"
"/nngen/tests/onnx_matrix_conv2d/test_onnx_matrix_conv2d_sigmoid_int32_3x3_stride1.py"

From my finding from "/nngen/nngen/quantizer/conv2d.py" found out that the 'rate' always bigger than 'allowed_rate' and stucks in infinity while loop (never execute line: 174) as the increment of 'rshift_out' do not reduce the overflow issues.
image

As the increament of 'rshift_out', the 'rate' and 'num_overflow' increase as shown:
image

Please suggest any fixes to solve this issues.

Thanks
'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant