Files
StarPilot/tinygrad_repo/test/device/python/test_uops.py
T
2026-10-20 03:55:45 +00:00

12 lines
412 B
Python

import unittest
from tinygrad import Device, dtypes
from tinygrad.uop.ops import Ops
from test.runtime.test_uops import TestUOps
class TestFloatUOps(TestUOps):
@unittest.skipUnless(Device.DEFAULT == "PYTHON", "only python supports MULACC")
def test_mulacc(self):
self._test_top_fxn(Ops.MULACC, lambda a,b,c: a*b+c, (dtypes.float, dtypes.float, dtypes.float))
if __name__ == "__main__": unittest.main()