From a22606ca0c6e4c79b357dc07290698541d505276 Mon Sep 17 00:00:00 2001 From: qijun Date: Tue, 5 Sep 2017 19:36:04 +0800 Subject: [PATCH] fix bug --- python/paddle/v2/framework/tests/op_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/v2/framework/tests/op_test.py b/python/paddle/v2/framework/tests/op_test.py index 9b2f10fdf95..3f8e1236ff7 100644 --- a/python/paddle/v2/framework/tests/op_test.py +++ b/python/paddle/v2/framework/tests/op_test.py @@ -256,7 +256,7 @@ class OpTest(unittest.TestCase): ] places = [core.CPUPlace()] - if core.is_compile_gpu() and op.support_gpu(): + if core.is_compile_gpu() and self.op.support_gpu(): places.append(core.GPUPlace(0)) for place in places: -- GitLab