~enan/ros-rl

020d3bcea267707abd76dac973e8608602186271 — Enan Ajmain 1 year, 8 months ago 32a9663 master
td3: fix handling of data when using gpu device
1 files changed, 1 insertions(+), 1 deletions(-)

M src/td3.py
M src/td3.py => src/td3.py +1 -1
@@ 223,7 223,7 @@ class TD3Agent():
        else:
            actor_loss = torch.zeros(1)

        return actor_loss.data, critic_loss.data
        return actor_loss.data.detach().cpu().numpy(), critic_loss.data.detach().cpu().numpy()

    def train(self, num_frames: int, plotting_interval: int = 200):
        self.is_test = False