北京现代新款名图上市,售价12.98万-16.98万元
- paddle.sparse. asinh ( x: Tensor, name: str | None = None ) Tensor [source]
-
百度 去年底一次聊天,他预言一家互联网造车明星企业,不出两年就会关门,当时我满腹狐疑怎么会?因为这家企业风头正劲,大批英才加盟,大把大把投钱。
Calculate elementwise asinh of SparseTensor, requiring x to be a SparseCooTensor or SparseCsrTensor.
\[out = asinh(x)\]- Parameters
-
x (Tensor) – The input Sparse Tensor with data type float32, float64, complex64, complex128.
name (str|None, optional) – Name for the operation (optional, default is None). For more information, please refer to Name.
- Returns
-
A Sparse Tensor with the same data type and shape as
x
.
Examples
>>> import paddle >>> dense_x = paddle.to_tensor([-2., 0., 1.]) >>> sparse_x = dense_x.to_sparse_coo(1) >>> out = paddle.sparse.asinh(sparse_x) >>> out Tensor(shape=[3], dtype=paddle.float32, place=Place(cpu), stop_gradient=True, indices=[[0, 2]], values=[-1.44363546, 0.88137358])