rename allocator methods to not conflict [pr] (#7788)

* rename allocator methods to not conflict [pr]

* forgot those

* transfer + offset
This commit is contained in:
George Hotz
2024-11-20 00:10:29 +08:00
committed by GitHub
parent d5f76462c8
commit d71fe7faa5
25 changed files with 85 additions and 81 deletions
+2 -2
View File
@@ -199,8 +199,8 @@ class PythonCompiler(Compiler):
class PythonAllocator(Allocator):
def _alloc(self, size, options): return memoryview(bytearray(size))
def copyin(self, dest, src:memoryview): dest[:] = src
def copyout(self, dest:memoryview, src): dest[:] = src
def _copyin(self, dest, src:memoryview): dest[:] = src
def _copyout(self, dest:memoryview, src): dest[:] = src
class PythonDevice(Compiled):
def __init__(self, device:str):