(self, uop:UOp)
| 165 | def __init__(self, device:str): self.device, self.blob, self.patches = device, b'', [] |
| 166 | |
| 167 | def get_dev_addr(self, uop:UOp) -> UOp: |
| 168 | return UOp(Ops.GETADDR, dtypes.uint64, src=(uop,)) if unwrap_after(uop).op in (Ops.BUFFER, Ops.BUFFER_VIEW, Ops.BINARY) else uop |
| 169 | |
| 170 | def append(self, *data, dtype=dtypes.uint32): |
| 171 | for d in data: |