Skip to content

Commit

Permalink
add default value for leaky relu alpha (apache#7259)
Browse files Browse the repository at this point in the history
  • Loading branch information
xutianming authored and masahi committed Jan 14, 2021
1 parent 39895bf commit 5810588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/relay/op/nn/nn.py
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,7 @@ def relu(data):
return _make.relu(data)


def leaky_relu(data, alpha):
def leaky_relu(data, alpha=0.01):
"""This operator takes data as input and does Leaky version
of a Rectified Linear Unit.
Expand Down

0 comments on commit 5810588

Please sign in to comment.