
* Vegetarian Filet o Fish model * fix.. atc.. * test cluster_speed_limit * fix.. cluster_speed_limit.. 2 * fix.. clusterspeedlimit3 * cruise speed to roadlimit speed * fix.. * fix.. eng * deltaUp/Down for lanechange * fix.. atc desire... * fix.. * ff * ff * fix.. * fix.. eng * fix engsound * Update desire_helper.py * fix.. connect... * fix curve_min speed * Revert "fix curve_min speed" This reverts commit fcc9c2eb14eb3504abef3e420db93e8882e56f37. * Reapply "fix curve_min speed" This reverts commit 2d2bba476c58a7b4e13bac3c3ad0e4694c95515d. * fix.. auto speed up.. roadlimit * fix.. atc auto lanechange... * Update desire_helper.py * Update cruise.py * debug atc... * fix.. waze alert offset.. * fix.. * test atc.. * fix.. * fix.. atc * atc test.. * fix.. atc * fix.. atc2 * fix.. atc3 * KerryGold Model. latsmooth_sec = 0.0 * lat smooth seconds 0.13 * fix comment * fix.. auto cruise, and speed unit * change lanemode switching. * erase mazda lkas button.
15 lines
428 B
Python
15 lines
428 B
Python
import unittest
|
|
from tinygrad.helpers import GlobalCounters
|
|
from tinygrad.nn.datasets import mnist
|
|
|
|
class TestDataset(unittest.TestCase):
|
|
def test_dataset_is_realized(self):
|
|
X_train, _, _, _ = mnist()
|
|
X_train[0].contiguous().realize()
|
|
start = GlobalCounters.kernel_count
|
|
X_train[0].contiguous().realize()
|
|
self.assertEqual(GlobalCounters.kernel_count-start, 1)
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|