We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 189481e commit eea659cCopy full SHA for eea659c
torch/_inductor/codegen/triton.py
@@ -1102,14 +1102,14 @@ def relu(x):
1102
@staticmethod
1103
def minimum(a, b):
1104
if torch.version.hip:
1105
- return f"tl.minimum({a}, {b})"
+ return f"tl.minimum({a}, {b}, tl.PropagateNan.ALL)"
1106
else:
1107
return f"triton_helpers.minimum({a}, {b})"
1108
1109
1110
def maximum(a, b):
1111
1112
- return f"tl.maximum({a}, {b})"
+ return f"tl.maximum({a}, {b}, tl.PropagateNan.ALL)"
1113
1114
return f"triton_helpers.maximum({a}, {b})"
1115
0 commit comments