Skip to content

Conversation

@gsethi523
Copy link
Contributor

Summary: Bug in get_device() function, where on a gpu machine (torch.cuda.is_available() == True) it returns torch.cuda.current_device instead of torch.cuda.current_device(). Therefore the return value for get_device() ends up being a function rather than a torch.device, causing the benchmark to crash at the first instance of device placement based on get_device().

Reviewed By: bilgeacun, jianyuh

Differential Revision: D27606621

Summary: Bug in get_device() function, where on a gpu machine (torch.cuda.is_available() == True) it returns torch.cuda.current_device instead of torch.cuda.current_device(). Therefore the return value for get_device() ends up being a function rather than a torch.device, causing the benchmark to crash at the first instance of device placement based on get_device().

Reviewed By: bilgeacun, jianyuh

Differential Revision: D27606621

fbshipit-source-id: 46445d77118990686fff4becca221d89279d6d6d
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D27606621

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in b01c349.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants