mirror of https://github.com/commaai/tinygrad.git
get membufs with dedup [pr] (#7127)
This commit is contained in:
parent
be9a433a60
commit
2087abc999
|
@ -125,7 +125,7 @@ class Kernel:
|
|||
return ret
|
||||
|
||||
@property
|
||||
def membufs(self) -> List[UOp]: return list({x.src[0].key:x.src[0] for x in self.bufs if x.op in {UOps.LOAD, UOps.STORE}}.values())
|
||||
def membufs(self) -> List[UOp]: return dedup([x.src[0] for x in self.bufs if x.op in {UOps.LOAD, UOps.STORE}])
|
||||
|
||||
# TODO: these need more tests or it might silently be no-op
|
||||
def float4_axis(self, i:int): return [x-self.first_upcast for x in self.sts[i].unit_stride_axes() if x >= self.first_upcast and self.sts[i].shape[x]%4 == 0] # noqa: E501
|
||||
|
|
Loading…
Reference in New Issue