mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
addrspace special/range (#16647)
* addrspace special/range * just include indexing * define var is alu * bring old ignore indexing back * mults to fix * fixes * ALU * fixes
This commit is contained in:
parent
1e08c0a07c
commit
aef85ddc4d
8 changed files with 26 additions and 18 deletions
|
|
@ -248,7 +248,7 @@ class TestTorchBackend(unittest.TestCase):
|
|||
samples = torch.randint(0, X_train.shape[0], (32,))
|
||||
X,Y = X_train[samples], Y_train[samples]
|
||||
X.cpu(), Y.cpu()
|
||||
self.assertLessEqual(GlobalCounters.global_ops, 20_000_000)
|
||||
self.assertLessEqual(GlobalCounters.global_ops, 25_000_000)
|
||||
|
||||
def _test_diagonal(self, *shape):
|
||||
a = torch.randn(*shape, dtype=torch.float32, device=device)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue