mindspore.ops.BesselK1 ====================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/master/docs/api/api_python/ops/mindspore.ops.BesselK1.rst :alt: 查看源文件 .. py:class:: mindspore.ops.BesselK1 逐元素计算第二类一阶修正Bessel函数值。 计算公式定义如下: .. math:: \begin{array}{ll} \\ K_{1}(x)=\lim_{\nu \to 1} \left(\frac{\pi}{2}\right) \frac{I_{-\nu}(x)- I_{\nu}(x)}{\sin (\nu \pi)} = \int_{0}^{\infty} e^{-x \cosh t} \cosh (t) d t \end{array} 其中 :math:`I_{1}` 是第一类一阶修正Bessel函数。 .. warning:: 这是一个实验性API,后续可能修改或删除。 输入: - **x** (Tensor) - 输入Tensor。数据类型应为float16、float32或float64。 输出: Tensor,shape和数据类型与 `x` 相同。 异常: - **TypeError** - `x` 不是float16、float32或float64数据类型的Tensor。