mridulk commited on
Commit
76d1464
·
verified ·
1 Parent(s): 3c124d6

Update ldm/models/diffusion/ddim.py

Browse files
Files changed (1) hide show
  1. ldm/models/diffusion/ddim.py +1 -1
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)