This is an automated email from the ASF dual-hosted git repository. skm pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push: new c704f1f follow up on fix nightly test (#14134) c704f1f is described below commit c704f1f5831fa0a26fb98e8b2208c99797229c8d Author: Lai Wei <roywei...@gmail.com> AuthorDate: Wed Feb 13 09:54:22 2019 -0800 follow up on fix nightly test (#14134) * fix nightly * trigger ci --- docs/tutorials/gluon/gluon_from_experiment_to_deployment.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorials/gluon/gluon_from_experiment_to_deployment.md b/docs/tutorials/gluon/gluon_from_experiment_to_deployment.md index 36c7a2e..a3a6aab 100644 --- a/docs/tutorials/gluon/gluon_from_experiment_to_deployment.md +++ b/docs/tutorials/gluon/gluon_from_experiment_to_deployment.md @@ -52,7 +52,6 @@ Now let's first import necessary packages: import math import os import time -from multiprocessing import cpu_count from mxnet import autograd from mxnet import gluon, init @@ -77,7 +76,8 @@ lr_factor = 0.75 lr_epochs = [10, 20, 30] num_gpus = mx.context.num_gpus() -num_workers = cpu_count() +# you can replace num_workers with the number of cores on you device +num_workers = 8 ctx = [mx.gpu(i) for i in range(num_gpus)] if num_gpus > 0 else [mx.cpu()] batch_size = per_device_batch_size * max(num_gpus, 1) ```