Updated some stuff

This commit is contained in:
Vasilis Valatsos 2023-11-20 01:51:54 +01:00
parent da649ccca8
commit 3fb147afff
3 changed files with 1 additions and 2 deletions

View file

@ -1,4 +1,3 @@
import os
import numpy as np import numpy as np
import torch as T import torch as T
@ -40,7 +39,7 @@ class Agent:
print('.. done ...') print('.. done ...')
def choose_action(self, observation): def choose_action(self, observation):
state = T.tensor([observation], dtype=T.float).to(self.actor.device) state = T.tensor(observation, dtype=T.float).to(self.actor.device)
dist = self.actor(state) dist = self.actor(state)
value = self.critic(state) value = self.critic(state)

Binary file not shown.

Binary file not shown.