From 00e822d2a0bbcecf3deff2e79fd84afb6d867d45 Mon Sep 17 00:00:00 2001 From: dengkaipeng Date: Sun, 10 Mar 2019 12:04:32 +0800 Subject: [PATCH] fix test_detection. test=develop --- python/paddle/fluid/tests/test_detection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/tests/test_detection.py b/python/paddle/fluid/tests/test_detection.py index b8743debe2..b863eb8d72 100644 --- a/python/paddle/fluid/tests/test_detection.py +++ b/python/paddle/fluid/tests/test_detection.py @@ -484,7 +484,7 @@ class TestYoloDetection(unittest.TestCase): program = Program() with program_guard(program): x = layers.data(name='x', shape=[30, 7, 7], dtype='float32') - img_size = layers.data(name='x', shape=[2], dtype='int32') + img_size = layers.data(name='img_size', shape=[2], dtype='int32') boxes, scores = layers.yolo_box(x, img_size, [10, 13, 30, 13], 10, 0.01, 32) self.assertIsNotNone(boxes) -- GitLab