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

[ci/requirements] Upgrade torch to 2.0.1 #37128

Merged
merged 12 commits into from
Jul 7, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rllib
Signed-off-by: Kai Fricke <[email protected]>
  • Loading branch information
Kai Fricke committed Jul 6, 2023
commit 8873dfe0d56b743f024a07f6a4c200b05429488f
6 changes: 3 additions & 3 deletions rllib/core/learner/tests/test_learner.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ def test_end_to_end_update(self):
min_loss = min(loss, min_loss)
print(f"[iter = {iter_i}] Loss: {loss:.3f}, Min Loss: {min_loss:.3f}")
# The loss is initially around 0.69 (ln2). When it gets to around
# 0.57 the return of the policy gets to around 100.
if min_loss < 0.57:
# 0.58 the return of the policy gets to around 100.
if min_loss < 0.58:
break
self.assertLess(min_loss, 0.57)
self.assertLess(min_loss, 0.58)

def test_compute_gradients(self):
"""Tests the compute_gradients correctness.
Expand Down