def step(self, observations, state, argmax_sampling=False):
action_pd_params, value_output, new_state = self(observations, state)<EOL>actions = self.action_head.sample(action_pd_params, argmax_sampling=argmax_sampling)<EOL>logprobs = self.action_head.logprob(actions, action_pd_params)<EOL>return {<EOL>'<STR_LIT>': actions,<EOL>'<STR_LIT>': value_output,<EOL>'<STR_LIT>': logprobs,<EOL>'<STR_LIT:state>': new_state<EOL>}<EOL>
Select actions based on model's output