Skip to content

Commit

Permalink
fixed typo in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kzl authored Jun 11, 2021
1 parent 046702e commit c9e6ac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gym/decision_transformer/models/decision_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def forward(self, states, actions, rewards, returns_to_go, timesteps, attention_
x = transformer_outputs['last_hidden_state']

# reshape x so that the second dimension corresponds to the original
# returns (0), actions (1), or states (2); i.e. x[:,1,t] is the token for a_t
# returns (0), states (1), or actions (2); i.e. x[:,1,t] is the token for s_t
x = x.reshape(batch_size, seq_length, 3, self.hidden_size).permute(0, 2, 1, 3)

# get predictions
Expand Down

0 comments on commit c9e6ac0

Please sign in to comment.