Skip to content

Commit

Permalink
Upgrade to ray 2.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestum committed Jan 10, 2024
1 parent f5b2c12 commit 1b4460c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

IS_NOT_WINDOWS = os.name != "nt"

PARALLEL_REQUIRE = ["ray[debug,tune]~=2.0.0"]
PARALLEL_REQUIRE = ["ray[debug,tune]~=2.9.0"]
ATARI_REQUIRE = [
"seals[atari]~=0.2.1",
]
Expand Down
3 changes: 1 addition & 2 deletions src/imitation/scripts/parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,12 @@ def _ray_tune_sacred_wrapper(
`ex.run`) and `reporter`. The function returns the run result.
"""

def inner(config: Mapping[str, Any], reporter) -> Mapping[str, Any]:
def inner(config: Mapping[str, Any]) -> Mapping[str, Any]:
"""Trainable function with the correct signature for `ray.tune`.
Args:
config: Keyword arguments for `ex.run()`, where `ex` is the
`sacred.Experiment` instance associated with `sacred_ex_name`.
reporter: Callback to report progress to Ray.
Returns:
Result from `ray.Run` object.
Expand Down

0 comments on commit 1b4460c

Please sign in to comment.