replaced all tf function to torch
This commit is contained in:
@@ -62,7 +62,7 @@ class Dreamer(nn.Module):
|
||||
greedy=lambda: self._task_behavior,
|
||||
random=lambda: expl.Random(config),
|
||||
plan2explore=lambda: expl.Plan2Explore(config, self._wm, reward),
|
||||
)[config.expl_behavior]()
|
||||
)[config.expl_behavior]().to(self._config.device)
|
||||
|
||||
def __call__(self, obs, reset, state=None, reward=None, training=True):
|
||||
step = self._step
|
||||
|
||||
Reference in New Issue
Block a user