Skip to content

Commit

Permalink
fix unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
pangyoki committed Oct 27, 2021
1 parent 55cab10 commit f4ce3d1
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@


class TestCPUVersion(unittest.TestCase):
if not paddle.is_compiled_with_cuda():
self.assertEqual(paddle.version.cuda(), 'False')
self.assertEqual(paddle.version.cudnn(), 'False')
def test_cuda_cudnn_version_in_cpu_package(self):
if not paddle.is_compiled_with_cuda():
self.assertEqual(paddle.version.cuda(), 'False')
self.assertEqual(paddle.version.cudnn(), 'False')


if __name__ == '__main__':
Expand Down

0 comments on commit f4ce3d1

Please sign in to comment.