version: sunnypilot v2026.002.000 (staging) date: 2026-07-21T07:44:02 master commit: 2c334ede443d7391d27575af8c854a095ba702a8
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()
|