Skip to content

Minor fix in ddpm.py #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 16, 2024
Merged

Minor fix in ddpm.py #1

merged 1 commit into from
May 16, 2024

Conversation

silky1708
Copy link
Owner

first move self.logvar to self.device, and then index (line 1030, ddpm.py)

the current ordering gives the following error:

RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)

first move `self.logvar` to `self.device`, and then index on line 1030
@silky1708 silky1708 merged commit db0fb7f into main May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant