Skip to content

Commit

Permalink
revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
isaaccorley committed Oct 27, 2021
1 parent 240d974 commit b140571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flax/linen/activation.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ def __call__(self, inputs: Array) -> Array:
"""
negative_slope = self.param(
'negative_slope',
lambda k: jnp.asarray(self.negative_slope_init)
lambda k: jnp.asarray(self.negative_slope_init, inputs.dtype)
)
return jnp.where(inputs >= 0, inputs, negative_slope * inputs)

0 comments on commit b140571

Please sign in to comment.