Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
typhoonzero committed Feb 1, 2018
1 parent 978396e commit 52df85f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions benchmark/cluster/vgg16/vgg16_fluid.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ def str2bool(v):
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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 52df85f

Please sign in to comment.