未验证 提交 16fec90f 编写于 作者: B Bai Yifan 提交者: GitHub

fix quant/distill demo dataloader (#565)

上级 51578a2b
......@@ -123,15 +123,15 @@ def compress(args):
batch_size=args.batch_size,
return_list=False,
shuffle=True,
use_shared_memory=False,
num_workers=1)
use_shared_memory=True,
num_workers=4)
valid_loader = paddle.io.DataLoader(
val_dataset,
places=place,
feed_list=[image, label],
drop_last=False,
return_list=False,
use_shared_memory=False,
use_shared_memory=True,
batch_size=args.batch_size,
shuffle=False)
# model definition
......
......@@ -159,9 +159,9 @@ def compress(args):
drop_last=True,
return_list=False,
batch_size=args.batch_size,
use_shared_memory=False,
use_shared_memory=True,
shuffle=True,
num_workers=1)
num_workers=4)
valid_loader = paddle.io.DataLoader(
val_dataset,
......@@ -170,7 +170,7 @@ def compress(args):
drop_last=False,
return_list=False,
batch_size=args.batch_size,
use_shared_memory=False,
use_shared_memory=True,
shuffle=False)
if args.analysis:
......
......@@ -169,9 +169,9 @@ def compress(args):
drop_last=True,
batch_size=args.batch_size,
return_list=False,
use_shared_memory=False,
use_shared_memory=True,
shuffle=True,
num_workers=1)
num_workers=4)
valid_loader = paddle.io.DataLoader(
val_dataset,
places=place,
......@@ -179,7 +179,7 @@ def compress(args):
drop_last=False,
return_list=False,
batch_size=args.batch_size,
use_shared_memory=False,
use_shared_memory=True,
shuffle=False)
def test(epoch, program):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册