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

follow up on fix nightly test #14134

Merged
merged 2 commits into from
Feb 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/tutorials/gluon/gluon_from_experiment_to_deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
```
Expand Down