From 2c0abba0c388a051db2e2aad1268e14c1fc9ce90 Mon Sep 17 00:00:00 2001 From: dengkaipeng Date: Tue, 12 Mar 2019 19:25:30 +0800 Subject: [PATCH] fix test_detection. test=develop --- python/paddle/fluid/layers/detection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/layers/detection.py b/python/paddle/fluid/layers/detection.py index 8225b7067..9183bfd43 100644 --- a/python/paddle/fluid/layers/detection.py +++ b/python/paddle/fluid/layers/detection.py @@ -575,7 +575,7 @@ def yolov3_loss(x, raise TypeError("Input gtbox of yolov3_loss must be Variable") if not isinstance(gtlabel, Variable): raise TypeError("Input gtlabel of yolov3_loss must be Variable") - if gtsocre is not None and not isinstance(gtscore, Variable): + if gtscore is not None and not isinstance(gtscore, Variable): raise TypeError("Input gtscore of yolov3_loss must be Variable") if not isinstance(anchors, list) and not isinstance(anchors, tuple): raise TypeError("Attr anchors of yolov3_loss must be list or tuple") -- GitLab