mindspore.ops.csr_softmax
=================================

.. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.3.1/resource/_static/logo_source.svg
    :target: https://gitee.com/mindspore/mindspore/blob/r2.3.1/docs/api/api_python/ops/mindspore.ops.func_csr_softmax.rst
    :alt: 查看源文件


.. py:function:: mindspore.ops.csr_softmax(logits: CSRTensor, dtype: mstype)

    计算 CSRTensorMatrix 的 softmax 。

    参数:
        - **logits** (CSRTensor) - 输入稀疏的 CSRTensor。
        - **dtype** (dtype) - 输入的数据类型。

    返回:
        - **CSRTensor** (CSRTensor) - 一个 csr_tensor 包含

          - **indptr** - 指示每行中非零值的起始点和结束点。
          - **indices** - 输入中所有非零值的列位置。
          - **values** - 稠密张量的非零值。
          - **shape** - csr_tensor的shape。