mindspore/docs/api/api_python/ops/mindspore.ops.MultilabelMar...

10 lines
429 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.MultilabelMarginLoss
==================================
.. py:class:: mindspore.ops.MultilabelMarginLoss(reduction='mean')
创建一个损失函数,用于最小化多分类任务的基于边际的损失。
它以一个2D mini-batch Tensor :math:`x` 作为输入以包含目标类索引的2D Tensor :math:`y` 作为输出。
更多细节请参考 :func:`mindspore.ops.multilabel_margin_loss`