mirror of https://github.com/commaai/tinygrad.git
bugfix for stable diffusion
This commit is contained in:
parent
59f9bcd4a4
commit
46327f7420
|
@ -26,3 +26,4 @@ datasets/imagenet/
|
|||
datasets/squad/
|
||||
datasets/img_align_celeba*
|
||||
datasets/open-images-v6-mlperf
|
||||
datasets/kits/
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue