未验证 提交 cb54c432 编写于 作者: L littletomatodonkey 提交者: GitHub

add feature calc log (#864)

上级 cbcda03a
......@@ -476,6 +476,10 @@ class Trainer(object):
has_unique_id = False
for idx, batch in enumerate(dataloader(
)): # load is very time-consuming
if idx % self.config["Global"]["print_batch_step"] == 0:
logger.info(
f"{name} feature calculation process: [{idx}/{len(dataloader)}]"
)
batch = [paddle.to_tensor(x) for x in batch]
batch[1] = batch[1].reshape([-1, 1]).astype("int64")
if len(batch) == 3:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册