Skip to content

Commit

Permalink
unified torch calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Konstantinidis authored and Fabian Konstantinidis committed Feb 2, 2024
1 parent 7fb8ddc commit 90f0bf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/behavior_generation_lecture_python/mdp/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, sizes: List[int], actions: List):
torch.manual_seed(1337)
self.net = multi_layer_perceptron(sizes=sizes)
self.actions = actions
self._actions_tensor = torch.as_tensor(actions, dtype=torch.float32).view(
self._actions_tensor = torch.tensor(actions, dtype=torch.long).view(
len(actions), -1
)

Expand Down

0 comments on commit 90f0bf0

Please sign in to comment.