Closed IgorTatarnikov closed 1 month ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 85.83%. Comparing base (
2cf2020
) to head (39c4210
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@IgorTatarnikov is this ready for review?
Yes! Forgot to mark is as ready.
Before submitting a pull request (PR), please read the contributing guide.
Please fill out as much of this template as you can, but if you have any problems or questions, just leave a comment and we will help out :)
Description
What is this PR
Why is this PR needed? Currently, the macos-latest does not have access to a GPU, however,
torch.backends.mps.is_available()
returns true leading to issues when keras tries to allocate a tensor on the GPU. This leads to errors during testing.What does this PR do? Forces
keras
andtorch
to use CPU when running on the macos-latest runner (identified byGITHUB_ACTIONS
env variable andtorch.backends.mps.is_available()
.How has this PR been tested?
Tested locally and on CI.
Is this a breaking change?
No
Does this PR require an update to the documentation?
No
Checklist: