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

9 lines
313 B
ReStructuredText
Raw Normal View History

2022-11-15 16:28:15 +08:00
mindspore.ops.TriuIndices
==========================
2022-11-24 18:23:29 +08:00
.. py:class:: mindspore.ops.TriuIndices(row, col, offset=0, dtype=mstype.int32)
2022-11-15 16:28:15 +08:00
2023-02-04 15:45:17 +08:00
计算 `row` * `col` 行列矩阵的上三角元素的索引,并将它们作为一个 2xN 的Tensor返回。
2022-11-15 16:28:15 +08:00
2023-02-04 15:45:17 +08:00
更多参考详见 :func:`mindspore.ops.triu_indices`