We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7731f63 commit 30c0c6fCopy full SHA for 30c0c6f
diploma_thesis/agents/utils/rl/dqn.py
@@ -52,6 +52,7 @@ def compute_loss():
52
actions = self.__get_action_values__(model, batch.state, batch.action)
53
54
weight = torch.tensor(info['_weight']) if '_weight' in info.keys() else torch.ones_like(q_values)
55
+ weight = weight.to(actions.device)
56
57
print(weight, info)
58
0 commit comments