You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/home/patrickli/working/DiGressGuidance/src/diffusion/noise_schedule.py", line 79, in get_alpha_bar
return self.alphas_bar[t_int.long()]
RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)
Solution:
replace
return self.alphas_bar[t_int.long()]
with
return self.alphas_bar.to(t_int.device)[t_int.long()]
The text was updated successfully, but these errors were encountered:
Error message:
File "/home/patrickli/working/DiGressGuidance/src/diffusion/noise_schedule.py", line 79, in get_alpha_bar
return self.alphas_bar[t_int.long()]
RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)
Solution:
replace
return self.alphas_bar[t_int.long()]
with
return self.alphas_bar.to(t_int.device)[t_int.long()]
The text was updated successfully, but these errors were encountered: