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 4d4a95f commit 7fb8ddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/behavior_generation_lecture_python/mdp/mdp.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def policy_gradient(

# call model to get next action
action = policy.get_action(
state=torch.as_tensor(state, dtype=torch.float32)
state=torch.tensor(state, dtype=torch.float32)
)

# execute action in the environment
Expand Down

0 comments on commit 7fb8ddc

Please sign in to comment.