diff --git a/torch/_inductor/codegen/triton.py b/torch/_inductor/codegen/triton.py index b125efd6bdbfe..58cc7cedd1fb1 100644 --- a/torch/_inductor/codegen/triton.py +++ b/torch/_inductor/codegen/triton.py @@ -1250,7 +1250,7 @@ def tan(x): @staticmethod @maybe_upcast_float32() def tanh(x): - return f"libdevice.tanh({x})" + return f"libdevice.fast_tanhf({x})" @staticmethod @maybe_upcast_float32()