Commit b01c349
fix gpu device bug in split_table_batched_embeddings_benchmark (#590)
Summary:
Pull Request resolved: #590
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: 0fcfae496f44092bdd5c29f8966e26ef7852110f1 parent a98ad84 commit b01c349
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments