delete Ops.EMPTY and Tensor._metaop (#9715)

* delete Ops.EMPTY and Tensor._metaop [pr]

* test_creation

* arg=

* abstractions2
This commit is contained in:
qazal
2025-04-03 12:29:02 +08:00
committed by GitHub
parent 5c7b549eab
commit f2bd65ccfc
3 changed files with 13 additions and 23 deletions

View File

@@ -80,8 +80,8 @@ from tinygrad.engine.realize import run_schedule
from tinygrad.engine.schedule import create_schedule_with_vars
# allocate some values + load in values
a = UOp.metaop(Ops.EMPTY, (1,), dtypes.int32, DEVICE)
b = UOp.metaop(Ops.EMPTY, (1,), dtypes.int32, DEVICE)
a = UOp.new_buffer(DEVICE, 1, dtypes.int32)
b = UOp.new_buffer(DEVICE, 1, dtypes.int32)
a.buffer.allocate().copyin(memoryview(bytearray(struct.pack("I", 2))))
b.buffer.allocate().copyin(memoryview(bytearray(struct.pack("I", 3))))