i1
- paddle. i1 ( x: Tensor, name: str | None = None, *, out: Tensor | None = None ) Tensor [source]
-
The function is used to calculate modified bessel function of order 1.
- Parameters
-
x (Tensor) – The input tensor, it’s data type should be float32, float64, uint8, int8, int16, int32, int64.
name (str|None, optional) – For details, please refer to api_guide_Name. Generally, no setting is required. Default: None.
- Keyword Arguments
-
out (Tensor) – (integer types are autocasted into float32).
- Returns
-
The value of modified bessel function of order 1.
- Return type
-
Tensor
Examples
>>> import paddle >>> x = paddle.to_tensor([0, 1, 2, 3, 4], dtype="float32") >>> print(paddle.i1(x)) Tensor(shape=[5], dtype=float32, place=Place(cpu), stop_gradient=True, [0. , 0.56515908, 1.59063685, 3.95337057, 9.75946712])
