agents
agents copied to clipboard
tf_agents.replay_buffers memory allocation
I've noticed that replay_buffers pre-allocates memory according to its max_length. In RL, max_length is usually set to a large number (1 million) which could result in unwanted situations where replay buffer takes up the memory too much. I think it would be worth it to mention it on the documentation. https://www.tensorflow.org/agents/api_docs/python/tf_agents/replay_buffers/replay_buffer/ReplayBuffer