Fix test_examples

这个提交包含在:
Alexander Soare
2024-04-16 14:07:16 +01:00
父节点 9c2f10bd04
当前提交 43a614c173
共有 2 个文件被更改,包括 4 次插入 和 2 次删除

查看文件

@ -53,7 +53,8 @@ step = 0
done = False
while not done:
for batch in dataloader:
batch = {k: v.to(device, non_blocking=True) for k, v in batch.items()}
for k in batch:
batch[k] = batch[k].to(device, non_blocking=True)
info = policy(batch)
if step % log_freq == 0:
num_samples = (step + 1) * cfg.batch_size