asin_cn.rst 788 字节
Newer Older
H
Hao Wang 已提交
1 2 3 4 5 6 7 8 9 10 11 12
.. _cn_api_fluid_layers_asin:

asin
-------------------------------

.. py:function:: paddle.fluid.layers.asin(x, name=None)

arcsine激活函数。

.. math::
    out = sin^{-1}(x)

X
xiaoting 已提交
13

H
Hao Wang 已提交
14
参数:
X
xiaoting 已提交
15 16 17 18
    - **x(Variable)** - asin的输入Tensor,数据类型为 float32 或 float64
    - **name** (str|None) – 具体用法请参见 :ref:`cn_api_guide_Name` ,一般无需设置,默认值为None。

返回:  `asin` 的输出Tensor,数据类型与 `x` 相同。
H
Hao Wang 已提交
19

X
xiaoting 已提交
20
返回类型: Variable
H
Hao Wang 已提交
21 22 23 24 25 26

**代码示例**:

.. code-block:: python

        import paddle.fluid as fluid
X
xiaoting 已提交
27 28
        data = fluid.layers.data(name="input", shape=[4])
        # if data is [-0.8183,  0.4912, -0.6444,  0.0371]
H
Hao Wang 已提交
29
        result = fluid.layers.asin(data)
X
xiaoting 已提交
30
        # result is [-0.9585,  0.5135, -0.7003,  0.0372]
H
Hao Wang 已提交
31 32 33