Skip to content

Commit cd33057

Browse files
author
yi.wu
committed
add num_passes
1 parent 8370c5a commit cd33057

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

benchmark/fluid/models/mnist.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ def get_model(args):
7575
shapes=[[-1, 1, 28, 28], (-1, 1)],
7676
lod_levels=[0, 0],
7777
dtypes=["float32", "int64"],
78-
thread_num=args.gpus)
78+
thread_num=args.gpus,
79+
pass_num=args.pass_num)
7980
data_file = fluid.layers.double_buffer(
8081
fluid.layers.batch(
8182
data_file, batch_size=args.batch_size))

benchmark/fluid/models/resnet.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ def get_model(args):
157157
shapes=[[-1] + dshape, (-1, 1)],
158158
lod_levels=[0, 0],
159159
dtypes=["float32", "int64"],
160-
thread_num=args.gpus)
160+
thread_num=args.gpus,
161+
pass_num=args.pass_num)
161162
data_file = fluid.layers.double_buffer(
162163
fluid.layers.batch(
163164
data_file, batch_size=args.batch_size))

benchmark/fluid/models/vgg.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ def get_model(args):
7575
shapes=[[-1] + data_shape, (-1, 1)],
7676
lod_levels=[0, 0],
7777
dtypes=["float32", "int64"],
78-
thread_num=args.gpus)
78+
thread_num=args.gpus,
79+
pass_num=args.pass_num)
7980
data_file = fluid.layers.double_buffer(
8081
fluid.layers.batch(
8182
data_file, batch_size=args.batch_size))

0 commit comments

Comments
 (0)