def step(self, observation, argmax_sampling=False):
policy_params, q = self(observation)<EOL>actions = self.action_head.sample(policy_params, argmax_sampling=argmax_sampling)<EOL>logprobs = self.action_head.logprob(actions, policy_params)<EOL>return {<EOL>'<STR_LIT>': actions,<EOL>'<STR_LIT:q>': q,<EOL>'<STR_LIT>': policy_params,<EOL>'<STR_LIT>': logprobs<EOL>}<EOL>
Select actions based on model's output