mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
skip bf16 test if not supported by device (#14070)
This commit is contained in:
parent
3f61a96d79
commit
16b652302e
1 changed files with 1 additions and 0 deletions
|
|
@ -309,6 +309,7 @@ class TestDiskTensor(unittest.TestCase):
|
|||
assert ret.tolist() == [2827, 3341, 3855, 4369]
|
||||
|
||||
@unittest.skipIf(OSX or Device.DEFAULT == "CL", "new LLVM has an issue on OSX, CL=1 gives the wrong output")
|
||||
@unittest.skipUnless(is_dtype_supported(dtypes.bfloat16), "bfloat16 not supported")
|
||||
def test_bf16_disk_write_read(self):
|
||||
t = Tensor([10000, -1, -1000, -10000, 20], dtype=dtypes.float32)
|
||||
t.to(f"disk:{temp('dt_bf16_disk_write_read_f32')}").realize()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue