8 lines
1.1 KiB
Plaintext
8 lines
1.1 KiB
Plaintext
[2025-10-11 22:08:47,695][__main__][INFO] - Training for 50000 timesteps with NormalQNetwork and NormalReplayBuffer
|
|
[2025-10-11 22:08:48,005][py.warnings][WARNING] - d:\Documents\Nextcloud\Documents\Project WUSTL\Academic\2025_Fall\CSE5100\Homeworks\hw2\hw2\agent.py:55: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.detach().clone() or sourceTensor.detach().clone().requires_grad_(True), rather than torch.tensor(sourceTensor).
|
|
max_tensor = torch.max(self.target_net(torch.tensor(next_state).to(self.device)).cpu(), dim=1)
|
|
|
|
[2025-10-11 22:08:48,032][py.warnings][WARNING] - d:\Documents\Nextcloud\Documents\Project WUSTL\Academic\2025_Fall\CSE5100\Homeworks\hw2\hw2\agent.py:56: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.detach().clone() or sourceTensor.detach().clone().requires_grad_(True), rather than torch.tensor(sourceTensor).
|
|
tensor_arr = np.where(done, torch.tensor(reward).to(self.device), torch.tensor(reward).to(self.device) + max_tensor * torch.tensor(self.gamma).to(self.device))
|
|
|