rl
rl copied to clipboard
[Question] Item called in loss modules forces synchronization?
Aren't operations like this blocking? causing performance issues due to GPU synchronization? https://github.com/pytorch/rl/blob/5b3dd988ad7f0f91a2f61f77a8b3380eae3131fd/torchrl/objectives/ppo.py#L443
Good point we should check that!