Skip to content

Commit f553144

Browse files
committed
change static mode to dygraph mode
1 parent 75503ef commit f553144

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/paddle/fluid/tests/unittests/test_gpu_package_with_no_gpu.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def test_warning(self):
2323
os.environ['CUDA_VISIBLE_DEVICES'] = ''
2424

2525
import paddle
26+
paddle.disable_static()
2627
if paddle.is_compiled_with_cuda():
2728
x = paddle.rand([3, 4])
2829
assert x.place.is_gpu_place(

0 commit comments

Comments
 (0)