Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
use mx.context.num_gpus instead of mx.test_utils.list_gpus in MF reco…
Browse files Browse the repository at this point in the history
…mmender example
  • Loading branch information
larroy committed May 14, 2019
1 parent 13d6ee6 commit 6ed38ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/recommenders/demo1-MF.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
},
"outputs": [],
"source": [
"ctx = [mx.gpu(0)] if len(mx.test_utils.list_gpus()) > 0 else [mx.cpu()]\n",
"ctx = [mx.gpu(0)] if mx.context.num_gpus() > 0 else [mx.cpu()]\n",
"batch_size = 128"
]
},
Expand Down

0 comments on commit 6ed38ba

Please sign in to comment.