mindspore/docs/api/api_python/nn/mindspore.nn.Dropout3d.rst

14 lines
664 B
ReStructuredText
Raw 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.nn.Dropout3d
======================
.. py:class:: mindspore.nn.Dropout3d(p=0.5)
在训练期间,以服从伯努利分布的概率 `p` 随机将输入Tensor的某些通道归零对于形状为 `NCDHW``5D` Tensor其通道特征图指的是后三维 `DHW` 形状的三维特征图)。
例如,在批处理输入中 :math:`i\_th` 批, :math:`j\_th` 通道的 `input[i, j]` `3D` Tensor 是一个待处理数据。
每个通道将会独立依据伯努利分布概率 `p` 来确定是否被清零。
`Dropout3d` 可以提高通道特征映射之间的独立性。
更多参考详见 :func:`mindspore.ops.dropout3d`