2.4K Star 8.2K Fork 4.4K

GVPMindSpore / mindspore

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mindspore.nn.Softmax2d.rst 700 Bytes
一键复制 编辑 原始数据 按行查看 历史
俞涵 提交于 2023-09-05 17:22 . modify format

mindspore.nn.Softmax2d

.. py:class:: mindspore.nn.Softmax2d()

    应用于2D特征数据的Softmax函数。

    将 `Softmax` 应用于具有shape :math:`(C, H, W)` 的输入Tensor的每个位置 :math:`(c, h, w)` 。

    输入:
        - **x** (Tensor) - Tensor的shape :math:`(N, C_{in}, H_{in}, W_{in})` 或者 :math:`(C_{in}, H_{in}, W_{in})`。
          数据类型可以是float16或者float32。

    输出:
        Tensor,数据类型和shape与 `x` 相同,取值范围为[0, 1]。

    异常:
        - **TypeError** - `x` 的数据类型既不是float16也不是float32。
        - **ValueError** - 数据格式不是“NCHW”或者“CHW”。
Python
1
https://gitee.com/mindspore/mindspore.git
git@gitee.com:mindspore/mindspore.git
mindspore
mindspore
mindspore
r2.3

搜索帮助