From d7e549f56844e10982778fd4fa893cdac00e5acf Mon Sep 17 00:00:00 2001 From: Kaipeng Deng Date: Thu, 9 Apr 2020 10:57:46 +0800 Subject: [PATCH] fix yolov3_loss gt_score check in dygraph. test=develop (#23634) --- 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 e0725242b7b..63bac68e747 100644 --- a/python/paddle/fluid/layers/detection.py +++ b/python/paddle/fluid/layers/detection.py @@ -993,7 +993,7 @@ def yolov3_loss(x, "GTBox": gt_box, "GTLabel": gt_label, } - if gt_score: + if gt_score is not None: inputs["GTScore"] = gt_score attrs = { -- GitLab