Updated some stuff
This commit is contained in:
parent
da649ccca8
commit
3fb147afff
3 changed files with 1 additions and 2 deletions
|
@ -1,4 +1,3 @@
|
|||
import os
|
||||
import numpy as np
|
||||
import torch as T
|
||||
|
||||
|
@ -40,7 +39,7 @@ class Agent:
|
|||
print('.. done ...')
|
||||
|
||||
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)
|
||||
value = self.critic(state)
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue