Skip to content

Commit

Permalink
Fix code to populate defaults for boolean flags from environment vari…
Browse files Browse the repository at this point in the history
…ables.

PiperOrigin-RevId: 608574620
  • Loading branch information
hawkinsp authored and jax authors committed Feb 20, 2024
1 parent c69a5da commit 2165611
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jax/_src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ def define_bool_state(
"""
if not isinstance(default, bool):
raise TypeError(f"Default value must be of type bool, got {default}")
default = bool_env(name.upper(), default)
name = name.lower()
if upgrade:
help += ' ' + UPGRADE_BOOL_HELP
Expand Down

0 comments on commit 2165611

Please sign in to comment.