Commit 6bcb9118 authored by rocking's avatar rocking
Browse files

Add comment to avoid hipcc crash

parent 7267c0b3
...@@ -28,6 +28,9 @@ struct Activation_Mul_Clamp ...@@ -28,6 +28,9 @@ struct Activation_Mul_Clamp
{ {
// CAUSION - We might type_convert to int8 in threadwise copy // CAUSION - We might type_convert to int8 in threadwise copy
// eg. GridwiseGemmDlMultipleD_km_kn_mn // eg. GridwiseGemmDlMultipleD_km_kn_mn
// replace line 34-37 with line 32 to avoid crash
// y = x;
float y_fp32 = ck::type_convert<float>(x); float y_fp32 = ck::type_convert<float>(x);
activationOp_(y_fp32, y_fp32); activationOp_(y_fp32, y_fp32);
y_fp32 = math::clamp(requantScale_ * y_fp32, -128.f, 127.f); y_fp32 = math::clamp(requantScale_ * y_fp32, -128.f, 127.f);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment