Skip to content
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

Ensure everything is on gpu and other stuff #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

owu-1
Copy link
Contributor

@owu-1 owu-1 commented Nov 27, 2024

torch.tensor(list(range(mod_index_length))) was on the cpu and breaks cuda graph.

Removed putting timesteps and guidance in torch.tensor to avoid warnings.
Removed .repeat(img.shape[0], 1, 1) which doesn't seem to do anything.
Replaced .repeat(1, mod_index_length, 1) with .expand(1, mod_index_length, 32) because apparently expand does the same thing without copying memory.

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