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

9 lines
489 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.Renorm
=====================
.. py:class:: mindspore.ops.Renorm(p, dim, maxnorm)
沿维度 `dim` 重新规范输入 `input_x` 的子Tensor并且每个子Tensor的p范数不超过给定的最大范数 `maxnorm` 。如果子Tensor的p范数小于 `maxnorm` 则当前子Tensor不需要修改否则该子Tensor需要修改为对应位置的原值除以该子Tensor的p范数然后再乘上 `maxnorm`
更多参考详见 :func:`mindspore.ops.renorm`