Skip to content

Commit

Permalink
Fix build failures on older Python versions.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 621624554
  • Loading branch information
cpgaffney1 authored and Orbax Authors committed Apr 3, 2024
1 parent a5f72d9 commit 5a42887
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions checkpoint/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.5.9] - 2024-04-02

### Fixed
- Support for Python 3.9

## [0.5.8] - 2024-04-02

## Added
Expand Down
2 changes: 1 addition & 1 deletion checkpoint/orbax/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@

# A new PyPI release will be pushed everytime `__version__` is increased.
# Also modify version and date in CHANGELOG.
__version__ = '0.5.8'
__version__ = '0.5.9'
2 changes: 1 addition & 1 deletion checkpoint/orbax/checkpoint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@

# A new PyPI release will be pushed everytime `__version__` is increased.
# Also modify version and date in CHANGELOG.
__version__ = '0.5.8'
__version__ = '0.5.9'
2 changes: 1 addition & 1 deletion checkpoint/orbax/checkpoint/multihost/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def post_jit(x):
return jax.tree.map(post_jit, out_tree)


def broadcast_one_to_all(in_tree, is_source: bool | None = None):
def broadcast_one_to_all(in_tree, is_source: Optional[bool] = None):
"""Broadcast data from a source host to all other hosts."""
return broadcast_one_to_some(in_tree, is_source=is_source)

Expand Down

0 comments on commit 5a42887

Please sign in to comment.