Skip to content

Conversation

@fcy540
Copy link

@fcy540 fcy540 commented Dec 22, 2024

When using GPU acceleration, we need to modify SVIPerceptPipeline(batch_size=32) in the example.py to SVIPerceptPipeline(batch_size=32, device="cuda"). Also, in the model.py, change results[:, cat_i] = torch.sum(kscores * kweights, dim=1) to results[:, cat_i] = torch.sum(kscores * kweights, dim=1).cpu().

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