Skip to content

Commit

Permalink
Make sure tests can run locally when GITHUB_ACTIONS env variable is m…
Browse files Browse the repository at this point in the history
…issing2
  • Loading branch information
IgorTatarnikov committed May 23, 2024
1 parent e98e0af commit d4b7ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/core/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def set_device_arm_macos_ci():
https://discuss.pytorch.org/t/mps-back-end-out-of-memory-on-github-action/189773/5
"""
if (
os.environ["GITHUB_ACTIONS"] == "true"
os.getenv("GITHUB_ACTIONS") == "true"
and torch.backends.mps.is_available()
):
keras.src.backend.common.global_state.set_global_attribute(
Expand Down

0 comments on commit d4b7ecd

Please sign in to comment.