mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-26 02:33:21 +08:00
Remove useless pass (#364)
Co-authored-by: Chunyang Wen <chunyang_wen@apple.com>
This commit is contained in:
parent
d752f8e142
commit
16856a0160
@ -169,7 +169,6 @@ class Sigmoid(Module):
|
|||||||
.. math::
|
.. math::
|
||||||
\text{Sigmoid}(x) = \sigma(x) = \frac{1}{1 + \exp(-x)}
|
\text{Sigmoid}(x) = \sigma(x) = \frac{1}{1 + \exp(-x)}
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
def step(x: mx.array, threshold: float = 0.0):
|
def step(x: mx.array, threshold: float = 0.0):
|
||||||
@ -251,7 +250,6 @@ class Mish(Module):
|
|||||||
\text{Mish}(x) = x * \text{Tanh}(\text{Softplus}(x))
|
\text{Mish}(x) = x * \text{Tanh}(\text{Softplus}(x))
|
||||||
|
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
@_make_activation_module(relu)
|
@_make_activation_module(relu)
|
||||||
@ -261,7 +259,6 @@ class ReLU(Module):
|
|||||||
|
|
||||||
See :func:`relu`, for the functional equivalent.
|
See :func:`relu`, for the functional equivalent.
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class LeakyReLU(Module):
|
class LeakyReLU(Module):
|
||||||
@ -305,7 +302,6 @@ class ReLU6(Module):
|
|||||||
|
|
||||||
See :func:`relu6`, for the functional equivalent.
|
See :func:`relu6`, for the functional equivalent.
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
@_make_activation_module(softmax)
|
@_make_activation_module(softmax)
|
||||||
@ -314,7 +310,6 @@ class Softmax(Module):
|
|||||||
|
|
||||||
See :func:`softmax`, for the functional equivalent.
|
See :func:`softmax`, for the functional equivalent.
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
@_make_activation_module(softplus)
|
@_make_activation_module(softplus)
|
||||||
@ -323,7 +318,6 @@ class Softplus(Module):
|
|||||||
|
|
||||||
See :func:`softplus`, for the functional equivalent.
|
See :func:`softplus`, for the functional equivalent.
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
@_make_activation_module(softsign)
|
@_make_activation_module(softsign)
|
||||||
@ -332,7 +326,6 @@ class Softsign(Module):
|
|||||||
|
|
||||||
See :func:`softsign`, for the functional equivalent.
|
See :func:`softsign`, for the functional equivalent.
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class CELU(Module):
|
class CELU(Module):
|
||||||
@ -360,7 +353,6 @@ class SiLU(Module):
|
|||||||
|
|
||||||
See :func:`silu`, for the functional equivalent.
|
See :func:`silu`, for the functional equivalent.
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
@_make_activation_module(log_softmax)
|
@_make_activation_module(log_softmax)
|
||||||
@ -369,7 +361,6 @@ class LogSoftmax(Module):
|
|||||||
|
|
||||||
See :func:`log_softmax`, for the functional equivalent.
|
See :func:`log_softmax`, for the functional equivalent.
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
@_make_activation_module(log_sigmoid)
|
@_make_activation_module(log_sigmoid)
|
||||||
@ -378,7 +369,6 @@ class LogSigmoid(Module):
|
|||||||
|
|
||||||
See :func:`log_sigmoid`, for the functional equivalent.
|
See :func:`log_sigmoid`, for the functional equivalent.
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class PReLU(Module):
|
class PReLU(Module):
|
||||||
@ -456,7 +446,6 @@ class Tanh(Module):
|
|||||||
|
|
||||||
See :func:`tanh`, for the functional equivalent.
|
See :func:`tanh`, for the functional equivalent.
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
@_make_activation_module(hardswish)
|
@_make_activation_module(hardswish)
|
||||||
@ -465,7 +454,6 @@ class Hardswish(Module):
|
|||||||
|
|
||||||
See :func:`hardswish`, for the functional equivalent.
|
See :func:`hardswish`, for the functional equivalent.
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class Step(Module):
|
class Step(Module):
|
||||||
@ -498,4 +486,3 @@ class SELU(Module):
|
|||||||
|
|
||||||
See :func:`selu`, for the functional equivalent.
|
See :func:`selu`, for the functional equivalent.
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
Loading…
Reference in New Issue
Block a user