fix train.py, stats, eval.py (training is running)

这个提交包含在:
Cadene
2024-04-05 09:31:39 +00:00
父节点 c93ce35d8c
当前提交 5af00d0c1e
共有 11 个文件被更改,包括 76 次插入 和 72 次删除

查看文件

@ -59,11 +59,7 @@ def test_factory(env_name, dataset_id):
# )
# dataset = make_dataset(cfg)
# # Get all of the data.
# all_data = TensorDictReplayBuffer(
# storage=buffer._storage,
# batch_size=len(buffer),
# sampler=SamplerWithoutReplacement(),
# ).sample().float()
# all_data = dataset.data_dict
# # Note: we set the batch size to be smaller than the whole dataset to make sure we are testing batched
# # computation of the statistics. While doing this, we also make sure it works when we don't divide the
# # dataset into even batches.