mindspore2022/docs/api/api_python/nn/mindspore.nn.rearrange_inpu...

17 lines
455 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.nn.rearrange_inputs
==============================
.. py:function:: mindspore.nn.rearrange_inputs(func)
此装饰器用于根据类的 `indexes` 属性对输入重新排列。
此装饰器目前用于 :class:`mindspore.nn.Metric` 类的 `update` 方法。
**参数:**
- **func** (Callable) - 要装饰的候选函数,其输入将被重新排列。
**返回:**
Callable用于在函数之间调换输入。