From 11b285da183ec79783191c0aae277d0cbfb2dd22 Mon Sep 17 00:00:00 2001 From: odow Date: Sat, 19 Oct 2024 18:37:01 +1300 Subject: [PATCH] Upate --- .github/workflows/ci.yml | 3 --- .github/workflows/documentation.yml | 6 ++++-- docs/make.jl | 7 ++----- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 79c84e0..95fc321 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,9 +36,6 @@ jobs: run: | pip3 install torch --index-url https://download.pytorch.org/whl/cpu pip3 install numpy - python3 -c 'import torch' - which python - which python3 # Install Julia - uses: julia-actions/setup-julia@v2 with: diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index d056480..6052a76 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -15,7 +15,8 @@ jobs: env: GKSwstype: nul DATADEPS_ALWAYS_ACCEPT: true - JULIA_CONDAPKG_BACKEND: Null + JULIA_CONDAPKG_BACKEND: "Null" + JULIA_PYTHONCALL_EXE: "python3" steps: - uses: actions/checkout@v4 # Install pytorch @@ -25,7 +26,8 @@ jobs: python-version: '3.10' - name: Install pytorch run: | - pip3 install torch --index-url https://download.pytorch.org/whl/cpu + pip3 install torch --index-url https://download.pytorch.org/whl/cpu + pip3 install numpy # Install Julia - uses: julia-actions/setup-julia@latest with: diff --git a/docs/make.jl b/docs/make.jl index bd6f4ca..b4309f5 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -37,9 +37,6 @@ function _literate_directory(dir) rm(filename) end for filename in _file_list(dir, dir, ".jl") - if endswith(filename, "pytorch.jl") - continue # Skip for now - end # `include` the file to test it before `#src` lines are removed. It is # in a testset to isolate local variables between files. Test.@testset "$(filename)" begin @@ -80,14 +77,14 @@ Documenter.makedocs(; "manual/Flux.md", "manual/GLM.md", "manual/Lux.md", - # "manual/PyTorch.md", + "manual/PyTorch.md", ], "Tutorials" => [ "tutorials/student_enrollment.md", "tutorials/decision_trees.md", "tutorials/mnist.md", "tutorials/mnist_lux.md", - # "tutorials/pytorch.md", + "tutorials/pytorch.md", "tutorials/gaussian.md", ], "Developers" => ["developers/design_principles.md"],