We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
action = T.tanh(actions)*T.tensor(self.max_action).to(self.device) log_probs = probabilities.log_prob(actions) log_probs -= T.log(1-action.pow(2) + self.reparam_noise) --> produces negative outputs inside the log, which in turn produces nan log_probs = log_probs.sum(1, keepdim=True)
How can I fix this issue? Are the following modifications correct?
action = T.tanh(actions)*T.tensor(self.max_action).to(self.device) log_probs = probabilities.log_prob(actions) log_probs -= T.log(1-T.tanh(actions).pow(2) + self.reparam_noise) log_probs = log_probs.sum(1, keepdim=True)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
action = T.tanh(actions)*T.tensor(self.max_action).to(self.device)
log_probs = probabilities.log_prob(actions)
log_probs -= T.log(1-action.pow(2) + self.reparam_noise) --> produces negative outputs inside the log, which in turn produces nan
log_probs = log_probs.sum(1, keepdim=True)
How can I fix this issue? Are the following modifications correct?
action = T.tanh(actions)*T.tensor(self.max_action).to(self.device)
log_probs = probabilities.log_prob(actions)
log_probs -= T.log(1-T.tanh(actions).pow(2) + self.reparam_noise)
log_probs = log_probs.sum(1, keepdim=True)
The text was updated successfully, but these errors were encountered: