mirror of
https://gitlvb.teallvbs.xyz/IQ.Lvbs/IQ.Pilot.git
synced 2026-07-21 17:42:06 +08:00
10 lines
220 B
Python
10 lines
220 B
Python
import unittest
|
|
from tinygrad import Device
|
|
|
|
class TestDeviceCount(unittest.TestCase):
|
|
def test_count(self):
|
|
self.assertGreaterEqual(Device[Device.DEFAULT].count(), 1)
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|