mindspore/docs/api/api_python/ops/mindspore.ops.func_kron.rst

24 lines
757 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.ops.kron
==================
.. py:function:: mindspore.ops.kron(input, other)
计算 `input``other` 的Kronecker积。
如果 `input` 的shape为 :math:`(r0, r1, ... , rN)` `other` 的shape为 :math:`(s0, s1, ... , sN)` 则计算结果的shape为 :math:`(r0 * s0, r1 * s1, ... , rN * sN)`
.. math::
(input ⊗ y)_{k_{0},k_{1},...k_{n}} =
input_{i_{0},i_{1},...i_{n}} * other_{j_{0},j_{1},...j_{n}},
其中,对于所有的 0 ≤ `t``n`,都有 :math:`k_{t} = i_{t} * b_{t} + j_{t}`
.. note::
支持实数和复数类型的输入。
参数:
- **input** (Tensor) - 输入tensor。
- **other** (Tensor) - 输入tensor。
返回:
Tensor