Skip to content

Commit

Permalink
Install torch in chapter 1.
Browse files Browse the repository at this point in the history
So if earlier chapters use it in later clubs, it's set to go.
  • Loading branch information
jonthegeek committed Oct 13, 2023
1 parent 721a415 commit 4dcfa30
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 19 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/deploy_bookdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,4 @@ on:

jobs:
bookdown:
runs-on: ubuntu-latest
env:
TORCH_INSTALL: 1
steps:
- uses: r4ds/r4dsactions/.github/workflows/render_pages.yml@main
uses: r4ds/r4dsactions/.github/workflows/render_pages.yml@main
15 changes: 1 addition & 14 deletions .github/workflows/pr_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,4 @@ on:

jobs:
pr_check:
runs-on: ubuntu-latest
env:
TORCH_INSTALL: 1
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
with:
r-version: '4.2.2'
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
cache-version: 1
- name: Render Book
run: Rscript -e 'bookdown::render_book("index.Rmd")'
uses: r4ds/r4dsactions/.github/workflows/render_check.yml@main
7 changes: 7 additions & 0 deletions 01_overview-getting-familiar-with-torch.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

- THESE ARE NICE TO HAVE BUT NOT ABSOLUTELY NECESSARY

## Setup {-}

```{r install-torch}
Sys.setenv(TORCH_INSTALL = 1)
library(torch)
```

## SLIDE 1 {-}

- ADD SLIDES AS SECTIONS (`##`).
Expand Down

0 comments on commit 4dcfa30

Please sign in to comment.