mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
assert buffer VIEW is void [pr] (#7715)
This commit is contained in:
parent
c37d142cf8
commit
313af6d23c
1 changed files with 1 additions and 1 deletions
|
|
@ -762,7 +762,7 @@ spec = PatternMatcher([
|
|||
(UPat(Ops.SPECIAL, src=()), lambda: True),
|
||||
|
||||
# TODO: confirm the args of both of these are shapetrackers
|
||||
(UPat(Ops.VIEW, src=()), lambda: True),
|
||||
(UPat(Ops.VIEW, dtypes.void, src=()), lambda: True),
|
||||
(UPat(Ops.VIEW, src=(UPat.var("src"),), name="x"), lambda x,src: src.op is not Ops.STORE and x.dtype == src.dtype),
|
||||
|
||||
(UPat(Ops.VALID, dtypes.bool, (UPat(Ops.VIEW),)), lambda: True),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue