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.
2 parents 2d66f38 + cc7f898 commit 269da81Copy full SHA for 269da81
1 file changed
problems/gelu/def.py
@@ -26,7 +26,7 @@ def reference_solution(self, input_matrix: torch.Tensor) -> torch.Tensor:
26
Result of GELU activation
27
"""
28
with torch.no_grad(), torch.autocast("cuda", enabled=False, dtype=input_matrix.dtype):
29
- return torch.nn.functional.gelu(input_matrix)
+ return torch.nn.functional.gelu(input_matrix, approximate="tanh")
30
31
def generate_test_cases(self, dtype: torch.dtype) -> List[Dict[str, Any]]:
32
0 commit comments