未验证 提交 b9ccf0e6 编写于 作者: L liuruyan 提交者: GitHub

adjust unittest. (#52847)

上级 5a864270
......@@ -127,7 +127,7 @@ class TestSupportedTypeInfo(unittest.TestCase):
res = paddle.amp.is_float16_supported('cpu')
self.assertEqual(res, False)
res = paddle.amp.is_bfloat16_supported('cpu')
self.assertEqual(res, True)
self.assertEqual(res, core.supports_bfloat16())
def test_gpu_fp16_supported(self):
res = paddle.amp.is_float16_supported()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册