[BUG] torchrl.objectives.SACLoss
is broken when there is more than one qvalue_network
#2589
Open
3 tasks done
Labels
bug
Something isn't working
Describe the bug
The
torchrl.objectives.SACLoss
module is currently broken when the input type ofqvalue_network
is aList[TensorDictModule]
.Note also the discrepancy between the docstring type
TensorDictModule
and the constructor-argument union-typeTensorDictModule | List[TensorDictModule]
.The bug is there because the internal method
_set_in_keys
cannot extract thein_keys
of aList[TensorDictModule]
.NOTE: I do not know if this is the only extent for which the method breaks down when there are multiple qvalue_networks.
To Reproduce
This is the same example given in the docstring, but with two qvalue_networks
Checklist
The text was updated successfully, but these errors were encountered: