Skip to content

Commit aa6c8ab

Browse files
authored
🧑‍💻 Update .readthedocs.yml to Install CPU Version only (#979)
- Update `.readthedocs.yml` to Install CPU Version only for speed up readthedocs build
1 parent ce25587 commit aa6c8ab

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.readthedocs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ build:
1111
tools:
1212
python: "3.12"
1313
apt_packages:
14-
- openslide-tools
1514
- libopenjp2-7-dev
1615
- libopenjp2-tools
1716

@@ -22,5 +21,7 @@ sphinx:
2221
# Optionally set the version of Python and requirements required to build your docs
2322
python:
2423
install:
25-
- requirements: requirements/requirements.txt
24+
# Install PyTorch CPU version first
25+
- requirements: requirements/requirements_cpu.txt
2626
- requirements: docs/requirements.txt
27+
- requirements: requirements/requirements.txt

requirements/requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# torch installation
2-
--extra-index-url https://download.pytorch.org/whl/cu126; sys_platform != "darwin"
31
aiohttp>=3.8.1
42
albumentations>=1.3.0
53
bokeh>=3.1.1, <3.6.0

requirements/requirements_cpu.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--index-url https://download.pytorch.org/whl/cpu
2+
torch
3+
torchvision

0 commit comments

Comments
 (0)