From c5e2072eb64ce8b34953e1c4860c9bd08e280294 Mon Sep 17 00:00:00 2001 From: wooway777 Date: Mon, 15 Jun 2026 11:11:49 +0800 Subject: [PATCH] issue/1282 - fix relu6 compilation on TG150 --- src/infiniop/ops/relu6/cuda/kernel.cuh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/infiniop/ops/relu6/cuda/kernel.cuh b/src/infiniop/ops/relu6/cuda/kernel.cuh index 4072be2af..32676e304 100644 --- a/src/infiniop/ops/relu6/cuda/kernel.cuh +++ b/src/infiniop/ops/relu6/cuda/kernel.cuh @@ -21,7 +21,7 @@ struct Relu6Op { } else if constexpr (std::is_same_v) { return fminf(fmaxf(x, 0.0f), 6.0f); } else if constexpr (std::is_same_v) { - return std::min(std::max(x, 0.0), 6.0); + return fmin(fmax(x, 0.0), 6.0); } else { float xf = static_cast(x); float result = fminf(fmaxf(xf, 0.0f), 6.0f);