Skip to content

Commit

Permalink
fixes a type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdsharpe committed Jul 25, 2024
1 parent 0e802de commit cee8623
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion aerosandbox/numpy/surrogate_model_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,10 @@ def sigmoid(
return s_normalized


def swish(x, beta=1):
def swish(
x: Union[float, _np.ndarray],
beta: float = 1.0,
):
"""
A smooth approximation of the ReLU function, applied elementwise to an array `x`.
Expand Down

0 comments on commit cee8623

Please sign in to comment.