Skip to content

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 (apache#14926)
  • Loading branch information
larroy authored and haohuw committed Jun 23, 2019
1 parent c327464 commit 0f11f99
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 0f11f99

Please sign in to comment.