move GlobalCounter to helpers (#4002)

break circular import between ops and buffer
This commit is contained in:
chenyu
2024-03-30 00:30:30 -04:00
committed by GitHub
parent 9eef44521b
commit c71627fee6
19 changed files with 40 additions and 66 deletions

View File

@@ -1,8 +1,7 @@
#!/usr/bin/env python
import unittest
import numpy as np
from tinygrad.tensor import Tensor
from tinygrad import dtypes, TinyJit, GlobalCounters, Variable
from tinygrad import dtypes, Tensor, TinyJit, GlobalCounters, Variable
N = 200 # has to be bigger than the cache to fail