Skip to content

Commit

Permalink
third commit
Browse files Browse the repository at this point in the history
  • Loading branch information
RayaneKimo committed Mar 2, 2024
1 parent 37983ae commit a2fe4fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class ProjectAgent:
def __init__(self):
self.env = TimeLimit(env=HIVPatient(domain_randomization=False), max_episode_steps=200)
self.path = os.path.join(os.getcwd(),'best_agent.pth')
self.device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
self.device = torch.device('cpu')
self.Q = DQN(6, 4).to(self.device)
self.Q_target = deepcopy(self.Q)
self.criterion = torch.nn.MSELoss()
Expand Down

0 comments on commit a2fe4fb

Please sign in to comment.