From e3663d26b04885a6d65dcb9197025b03f978478a Mon Sep 17 00:00:00 2001 From: zhouzj <41366441+zzjjay@users.noreply.github.com> Date: Mon, 9 Aug 2021 11:42:19 +0800 Subject: [PATCH] To avoid out of memory, the batch size is down to 128. (#865) --- demo/dygraph/quant/train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/dygraph/quant/train.py b/demo/dygraph/quant/train.py index a9853653..e46f9a05 100644 --- a/demo/dygraph/quant/train.py +++ b/demo/dygraph/quant/train.py @@ -44,7 +44,7 @@ _logger = get_logger(__name__, level=logging.INFO) parser = argparse.ArgumentParser(description=__doc__) add_arg = functools.partial(add_arguments, argparser=parser) # yapf: disable -add_arg('batch_size', int, 256, "Single Card Minibatch size.") +add_arg('batch_size', int, 128, "Single Card Minibatch size.") add_arg('use_gpu', bool, True, "Whether to use GPU or not.") add_arg('model', str, "mobilenet_v3", "The target model.") add_arg('pretrained_model', str, "MobileNetV3_large_x1_0_ssld_pretrained", "Whether to use pretrained model.") -- GitLab