fix test due to api change

emailweixu-patch-1
Xi Chen 7 years ago
parent 8360ff0b32
commit 925b44464a

@ -58,7 +58,7 @@ class TestMultiheadAttention(unittest.TestCase):
"""Run the test program.
"""
places = [core.CPUPlace()]
if core.is_compile_gpu():
if core.is_compiled_with_cuda():
places.append(core.CUDAPlace(0))
for place in places:

Loading…
Cancel
Save