Replies: 1 comment
-
Theoretically it can support. Buffer is implemented on top of Batch, and Batch can naively support torch.Tensor. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
Does tianshou support GPU-accelerated environments (such as Issac Gym )?
By support, I mean whether the GPU-accelerated environment can interact with the neural network model all on GPU, without converting the states/ action back and forth between devices.
I have been using other RL libraries but I found that at least 30% of the time was used for moving the data across CPU/GPU. I read from the docs that the
ReplayBuffer
stores the state asnumpy.ndarray
ordict
. Is it possible for it to store tensors on GPU? It would be great if tianshou can deal with the overhead or if there are some workarounds.Beta Was this translation helpful? Give feedback.
All reactions