Skip to content

Commit

Permalink
Merge pull request #23 from kornia/feat/support-np-old-torchs
Browse files Browse the repository at this point in the history
feat: ensure support to numpy on old torchs
  • Loading branch information
johnnv1 authored Jun 20, 2024
2 parents 55aeb22 + 9a14b63 commit 768e751
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/actions/env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ runs:
uv pip install --system torch==${{ inputs.pytorch-version }} ${{ inputs.extra-deps }} --find-links https://download.pytorch.org/whl/torch_stable.html
fi
- if: ${{ contains(fromJson('["1.9.1", "1.10.2", "1.11.0", "1.12.1", "1.13.1", "2.0.1", "2.1.2", "2.2.2"]'), inputs.pytorch-version) }}
name: Install numpy for old torchs
shell: bash
run: uv pip install --system "numpy<2.0.0"

- if: ${{ contains(fromJson('["1.9.1"]'), inputs.pytorch-version) }}
name: Install accelerate for old torchs
shell: bash
Expand Down

0 comments on commit 768e751

Please sign in to comment.