mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
swap src[2] and src[3] in load [run_process_replay] (#5821)
* swap src[2] and src[3] in load [run_process_replay] * cleanups + bugfix * fix ptx
This commit is contained in:
parent
17a2f74412
commit
693990a346
8 changed files with 30 additions and 30 deletions
|
|
@ -18,7 +18,7 @@ def _load(m, i):
|
|||
return m[i]
|
||||
|
||||
def load(inp, j=0):
|
||||
if len(inp) == 4: return [_load(m, x+j) if gate else default for m,x,gate,default in zip(*inp)]
|
||||
if len(inp) == 4: return [_load(m, x+j) if gate else default for m,x,default,gate in zip(*inp)]
|
||||
return [_load(m, x+j) for m,x in zip(inp[0], inp[1])]
|
||||
|
||||
def _store(m, i, v):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue