Merge "Fix PRELU underflow/overflow issue."
diff --git a/nn/common/operations/PRelu.cpp b/nn/common/operations/PRelu.cpp
index 0bf4ce6..68d1e5b 100644
--- a/nn/common/operations/PRelu.cpp
+++ b/nn/common/operations/PRelu.cpp
@@ -86,6 +86,7 @@
                                  tflite::MultiplyByQuantizedMultiplier(
                                          input * alpha, output_multiplier_neg, output_shift_neg);
                 }
+                output_val = std::max(0, std::min(255, output_val));
                 return static_cast<uint8_t>(output_val);
             },
             aData, aShape, bData, bShape, outputData, outputShape);