mirror of
https://jihulab.com/mr-one/openpilot.git
synced 2026-10-29 05:53:44 +08:00
f8e13417f2
date: 2026-08-15T14:20:10 master commit: d48cfa730bf21593b684efeaf3fd8940695e1dea
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()
|