Skip to content

Commit

Permalink
Remove torch version env var
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Nov 4, 2023
1 parent 849d5d5 commit e572aeb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
env:
MIX_ENV: test
XLA_FLAGS: --xla_force_host_platform_device_count=2
LIBTORCH_VERSION: ${{ matrix.torch_version }}
LIBTORCH_DIR: ${{ github.workspace }}/torchx/cache/libtorch-${{ matrix.torch_version }}
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -75,7 +74,6 @@ jobs:
env:
MIX_ENV: test
XLA_FLAGS: --xla_force_host_platform_device_count=2
LIBTORCH_VERSION: ${{ matrix.torch_version }}
LIBTORCH_DIR: ${{ github.workspace }}\torchx\cache\libtorch-${{ matrix.torch_version }}
steps:
- name: Configure Git
Expand Down
3 changes: 1 addition & 2 deletions torchx/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ defmodule Torchx.MixProject do

defp libtorch_config() do
target = System.get_env("LIBTORCH_TARGET", "cpu")
default_version = "2.1.0"
version = System.get_env("LIBTORCH_VERSION", default_version)
version = System.get_env("LIBTORCH_VERSION", "2.1.0")
env_dir = System.get_env("LIBTORCH_DIR")

%{
Expand Down

0 comments on commit e572aeb

Please sign in to comment.