google-deepmind / reverb

Reverb is an efficient and easy-to-use data storage and transport system designed for machine learning research
Apache License 2.0
704 stars 92 forks source link

What is the best way to write trajectories from multiple running actors into reverb ? #19

Closed jrabary closed 3 years ago

jrabary commented 4 years ago

We're looking for an example of code on how to write full trajectories from multiples actors into reverb. The setting is:

alaterre commented 4 years ago

If you create one adder per actor, then I think reverb knows internally that the transitions come from different adders (and so trajectories) and manage that seamlessly. To be verified/confirmed

acassirer commented 3 years ago

Hey,

Sorry for the extremely late response on this issue!

The original response is indeed correct. As long as each actor uses their own writer then it is safe for them to all write to the same Table concurrently. When sampling the trajectories can be thought of the "atomic unit" so there is no need for the sampler to be aware of the number of actors on the other side of the system.