randn slow

This commit is contained in:
George Hotz
2023-06-04 08:52:13 -07:00
parent e9c1ae3825
commit 3e0b37f050

View File

@@ -37,7 +37,7 @@ Try a matmul. See how, despite the style, it is fused into one kernel with the p
```sh
DEBUG=3 OPTLOCAL=1 python3 -c "from tinygrad.tensor import Tensor;
N = 1024; a, b = Tensor.randn(N, N), Tensor.randn(N, N);
N = 1024; a, b = Tensor.rand(N, N), Tensor.rand(N, N);
c = (a.reshape(N, 1, N) * b.permute(1,0).reshape(1, N, N)).sum(axis=2);
print((c.numpy() - (a.numpy() @ b.numpy())).mean())"
```