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

Multi-gpu compatibility: torch-summary for 'cuda:1' and so on #93

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

adithyavis
Copy link

Models in GPU devices other than 'cuda:0' can be summarized after this edit.

An edit was made in the way the kwarg 'device' accepted values. Instead of only accepting string values, the current edit allows for torch.device objects and (legacy) integer values to be accepted.
summary(model, (1,28,28),device="cuda:2"
summary(model, (1,28,28),device=torch.device("cuda")

@daniel347x
Copy link

Alas, it looks like this is a dead GitHub project. This PR has been in for close to a year and half, but no cigar.

Therefore this can't be used during production runs which require control over the GPU on which the code runs.

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.

2 participants