TensorPlay
API symbolsnn
Copy
View MarkdownDownload .md

tensorplay.nn.functional.margin_ranking_loss

tensorplay.nn.functional.margin_ranking_loss(input1: TensorBase, input2: TensorBase, target: TensorBase, margin: float = 0, size_average=None, reduce=None, reduction: str = 'mean') TensorBase[source]

Compute the margin ranking loss.

See MarginRankingLoss for details.

Ask DeepWiki