Commit 3ca1c4d9 authored by Xusong Wang's avatar Xusong Wang
Browse files

Fix PRELU underflow/overflow issue.

The quant8 results should be clamped by 0 and 255 before static casting
to uint8_t.

Bug: 134800353
Test: NeuralNetworksTest_static_fuzzing
Change-Id: I1bc8f386782c67158edd3da2f663fee5746dda48
parent 024c11aa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment