Spaces:
Running
Running
Update ldm/models/diffusion/ddim.py
Browse files
ldm/models/diffusion/ddim.py
CHANGED
@@ -16,7 +16,7 @@ class DDIMSampler(object):
|
|
16 |
self.schedule = schedule
|
17 |
|
18 |
def register_buffer(self, name, attr):
|
19 |
-
if type(attr) == torch.Tensor:
|
20 |
# if attr.device != torch.device("cuda"):
|
21 |
# attr = attr.to(torch.device("cuda"))
|
22 |
setattr(self, name, attr)
|
|
|
16 |
self.schedule = schedule
|
17 |
|
18 |
def register_buffer(self, name, attr):
|
19 |
+
# if type(attr) == torch.Tensor:
|
20 |
# if attr.device != torch.device("cuda"):
|
21 |
# attr = attr.to(torch.device("cuda"))
|
22 |
setattr(self, name, attr)
|