Skip to content

Commit

Permalink
update type suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
beverlylytle committed Nov 26, 2024
1 parent f8554db commit 42d2d52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thunder/torch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1802,7 +1802,7 @@ def gelu(a: TensorProxy, /, *, approximate: str = "none") -> TensorLike:


@torchsymbol(torch.nn.functional.leaky_relu, is_method=False)
def leaky_relu(a: TensorProxy, /, negative_slope=0.01, inplace: bool = False) -> TensorLike:
def leaky_relu(a: TensorProxy, /, negative_slope: float = 0.01, inplace: bool = False) -> TensorLike:
out = where(a > 0, a, a * negative_slope)
if inplace:
return prims.copy_(out, a)
Expand Down

0 comments on commit 42d2d52

Please sign in to comment.