Convert experience.dataset to torch.utils.data.Dataset #1108
-
Hi, are there any ways to convert I'm using
It shows Since I need to save this dataset for analysis, the first step is converting dataset to PyTorch's dataset. However, I didn't find a way to do so. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You don't need to convert it since Do you want to save the stream dataset or the replay buffer? if you want the former, I would suggest to avoid serialization and instead create a new benchmark with the same arguments by setting a fixed seed. |
Beta Was this translation helpful? Give feedback.
You don't need to convert it since
AvalancheSubset
implements the same methods of pytorch datasets. However, keep in mind that it's not optimized to be serialized (this is something that we are working on).Do you want to save the stream dataset or the replay buffer? if you want the former, I would suggest to avoid serialization and instead create a new benchmark with the same arguments by setting a fixed seed.