Skip to content

Commit

Permalink
made rnn input float 32
Browse files Browse the repository at this point in the history
  • Loading branch information
majoma7 committed Aug 14, 2024
1 parent e7509da commit 1209501
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ddopnew/RL_approximators.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,6 @@ def forward(self, state, action):
rnn_input = state
mlp_input = action

a = self.model(rnn_input, mlp_input)
a = self.model(rnn_input.float(), mlp_input.float())

return a
2 changes: 1 addition & 1 deletion nbs/60_approximators/21_critic_networks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@
" rnn_input = state\n",
" mlp_input = action\n",
"\n",
" a = self.model(rnn_input, mlp_input)\n",
" a = self.model(rnn_input.float(), mlp_input.float())\n",
"\n",
" return a"
]
Expand Down

0 comments on commit 1209501

Please sign in to comment.