asin

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

Arcsine Activation Operator.

$$out = sin^{-1}(x)$$

Parameters
  • x – Input of asin operator

  • name (str, optional) – The default value is None. Normally there is no need for user to set this property. For more information, please refer to Name .

Returns

Output of asin operator

Return type

Variable

Examples

import paddle.fluid as fluid
import numpy as np

inputs = fluid.data(name="x", shape = [None, 4], dtype='float32')
output = fluid.layers.asin(inputs)

exe = fluid.Executor(fluid.CPUPlace())
exe.run(fluid.default_startup_program())

#input.shape=1X4, batch_size=1
img = np.array([[1.0, 2.0, 3.0, 4.0]]).astype(np.float32)
res = exe.run(fluid.default_main_program(), feed={'x':img}, fetch_list=[output])
print(res)