From 24fa1f4b8c377dc446857a59d88bf72b1c3a5a67 Mon Sep 17 00:00:00 2001 From: phlrain Date: Sat, 1 Dec 2018 18:39:13 +0800 Subject: [PATCH] fix test uni; test=develop --- python/paddle/fluid/tests/unittests/test_lstm_cudnn_op.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/test_lstm_cudnn_op.py b/python/paddle/fluid/tests/unittests/test_lstm_cudnn_op.py index e3de9f992b3..9c8e7beae27 100644 --- a/python/paddle/fluid/tests/unittests/test_lstm_cudnn_op.py +++ b/python/paddle/fluid/tests/unittests/test_lstm_cudnn_op.py @@ -171,10 +171,9 @@ class TestCUDNNLstmOp(OpTest): } def test_output_with_place(self): - if not self.testcuda(): - pass - place = core.CUDAPlace(0) - self.check_output_with_place(place, atol=1e-5) + if self.testcuda(): + place = core.CUDAPlace(0) + self.check_output_with_place(place, atol=1e-5) def testcuda(self): return core.is_compiled_with_cuda() -- GitLab