Files
tinygrad/examples/test_f16.py
T
2024-12-05 14:14:23 +01:00

5 lines
139 B
Python

from tinygrad import Tensor, dtypes
if __name__ == "__main__":
a = Tensor([1.0,2.0,3.0], dtype=dtypes.half)
print((a*2.0).numpy())