From 52df85f4db27b0f4e9adeb6ffc7ca398473c4ba0 Mon Sep 17 00:00:00 2001 From: typhoonzero Date: Thu, 1 Feb 2018 20:35:41 +0800 Subject: [PATCH] fix style --- benchmark/cluster/vgg16/vgg16_fluid.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/benchmark/cluster/vgg16/vgg16_fluid.py b/benchmark/cluster/vgg16/vgg16_fluid.py index e89b96e4a..499e06ec4 100644 --- a/benchmark/cluster/vgg16/vgg16_fluid.py +++ b/benchmark/cluster/vgg16/vgg16_fluid.py @@ -50,11 +50,7 @@ parser.add_argument( default='CPU', choices=['CPU', 'GPU'], help="The device type.") -parser.add_argument( - '--device_id', - type=int, - default=0, - help="The device id.") +parser.add_argument('--device_id', type=int, default=0, help="The device id.") parser.add_argument( '--data_format', type=str, @@ -140,7 +136,8 @@ def main(): optimize_ops, params_grads = optimizer.minimize(avg_cost) # Initialize executor - place = core.CPUPlace() if args.device == 'CPU' else core.CUDAPlace(args.device_id) + place = core.CPUPlace() if args.device == 'CPU' else core.CUDAPlace( + args.device_id) exe = fluid.Executor(place) # test -- GitLab