bugfix for stable diffusion

This commit is contained in:
George Hotz 2023-05-29 00:03:09 +00:00
parent 59f9bcd4a4
commit 46327f7420
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -26,3 +26,4 @@ datasets/imagenet/
datasets/squad/
datasets/img_align_celeba*
datasets/open-images-v6-mlperf
datasets/kits/

View File

@ -71,7 +71,7 @@ def create_lazybuffer(device:str, shape:Union[ShapeTracker, Tuple[int, ...]], op
st = shape if isinstance(shape, ShapeTracker) else ShapeTracker(tuple(shape))
# fromcpu aren't cached
if optype == LoadOps and op.op == LoadOps.FROMCPU: return LazyBuffer(device, st, optype, op, dtype)
if optype == LoadOps and op.op in [LoadOps.FROMCPU, LoadOps.EMPTY]: return LazyBuffer(device, st, optype, op, dtype)
#print("create_lazybuffer", device, shape, optype, op, dtype)