Skip to content

Commit cd4d183

Browse files
authored
[SWDEV-539119] [rocm7.0_internal_testing] Add fast_tanh support (#2501)
Cherry picked from #2484
1 parent c4855fd commit cd4d183

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/_inductor/codegen/triton.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1250,7 +1250,7 @@ def tan(x):
12501250
@staticmethod
12511251
@maybe_upcast_float32()
12521252
def tanh(x):
1253-
return f"libdevice.tanh({x})"
1253+
return f"libdevice.fast_tanhf({x})"
12541254

12551255
@staticmethod
12561256
@maybe_upcast_float32()

0 commit comments

Comments
 (0)