mirror of
https://github.com/ml-explore/mlx.git
synced 2025-07-19 23:51:14 +08:00
Use compiled function in Sigmoid module (#1116)
This commit is contained in:
parent
60cb11764e
commit
5be5daa6ef
@ -315,7 +315,7 @@ class GLU(Module):
|
|||||||
return glu(x=x, axis=self.axis)
|
return glu(x=x, axis=self.axis)
|
||||||
|
|
||||||
|
|
||||||
@_make_activation_module(mx.sigmoid)
|
@_make_activation_module(sigmoid)
|
||||||
class Sigmoid(Module):
|
class Sigmoid(Module):
|
||||||
r"""Applies the sigmoid function, element-wise.
|
r"""Applies the sigmoid function, element-wise.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user