blob: 6a1858cdc9d99fbdc41df2cfeec8fb43d1913385 [file] [log] [blame]
``mx.symbol.hard_sigmoid``
====================================================
Description
----------------------
Computes hard sigmoid of x element-wise.
.. math::
y = max(0, min(1, alpha * x + beta))
Usage
----------
.. code:: r
mx.symbol.hard_sigmoid(...)
Arguments
------------------
+----------------------------------------+------------------------------------------------------------+
| Argument | Description |
+========================================+============================================================+
| ``data`` | NDArray-or-Symbol. |
| | |
| | The input array. |
+----------------------------------------+------------------------------------------------------------+
| ``alpha`` | float, optional, default=0.200000003. |
| | |
| | Slope of hard sigmoid |
+----------------------------------------+------------------------------------------------------------+
| ``beta`` | float, optional, default=0.5. |
| | |
| | Bias of hard sigmoid. |
+----------------------------------------+------------------------------------------------------------+
| ``name`` | string, optional. |
| | |
| | Name of the resulting symbol. |
+----------------------------------------+------------------------------------------------------------+
Value
----------
``out`` The result mx.symbol
Link to Source Code: http://github.com/apache/incubator-mxnet/blob/1.6.0/src/operator/tensor/elemwise_unary_op_basic.cc#L161