Skip to content
New issue

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

[RLlib] SimpleQ PyTorch Multi GPU fix #26109

Merged
merged 11 commits into from
Jun 28, 2022
4 changes: 1 addition & 3 deletions rllib/algorithms/simple_q/simple_q_torch_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,7 @@ def _compute_q_values(
self, model: ModelV2, obs_batch: TensorType, is_training=None
) -> TensorType:
_is_training = is_training if is_training is not None else False
input_dict = self._lazy_tensor_dict(
SampleBatch(obs=obs_batch, _is_training=_is_training)
)
input_dict = SampleBatch(obs=obs_batch, _is_training=_is_training)
# Make sure, everything is PyTorch tensors.
model_out, _ = model(input_dict, [], None)
return model_out