From 5593d19c57a08663425bb16dc23ef04171f5ae14 Mon Sep 17 00:00:00 2001 From: wanyiming Date: Thu, 29 Oct 2020 20:04:54 +0800 Subject: [PATCH] add output --- mindspore/nn/loss/loss.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mindspore/nn/loss/loss.py b/mindspore/nn/loss/loss.py index 4f02e4ab4b..1c834bf172 100644 --- a/mindspore/nn/loss/loss.py +++ b/mindspore/nn/loss/loss.py @@ -487,6 +487,7 @@ class BCELoss(_Loss): >>> inputs = Tensor(np.array([[0.1, 0.2, 0.3], [0.5, 0.7, 0.9]]), mindspore.float32) >>> labels = Tensor(np.array([[0, 1, 0], [0, 0, 1]]), mindspore.float32) >>> loss(inputs, labels) + 1.8952923 """ def __init__(self, weight=None, reduction='none'):