Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Commit

Permalink
fix assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyu2172 committed Dec 19, 2018
1 parent c34832d commit b276218
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ def main():
dataset, label_names, model = get_dataset_and_model(
args.dataset, args.model, args.pretrained_model,
(args.input_size, args.input_size))
assert (len(dataset) % comm.size == 0, \
"The size of the dataset should be a multiple "\
"of the number of GPUs")
assert len(dataset) % comm.size == 0, \
"The size of the dataset should be a multiple "\
"of the number of GPUs"

chainer.cuda.get_device_from_id(device).use()
model.to_gpu()
Expand Down

0 comments on commit b276218

Please sign in to comment.