Skip to content

Commit 0de0959

Browse files
authored
Clean up requirements.txt for PyTorch
Downloading PyTorch does not require adding all combination of wheel files in the requirements.txt Simply adding a find-link https://download.pytorch.org/whl/torch_stable.html there is sufficient. Numpy should be removed since it is already a dependency of torch library and is never used in classify source code.
1 parent 23c6812 commit 0de0959

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

articles/azure-functions/machine-learning-pytorch.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -163,14 +163,9 @@ To modify the `classify` function to classify an image based on its contents, yo
163163
```txt
164164
azure-functions
165165
requests
166-
numpy==1.15.4
167-
https://download.pytorch.org/whl/cpu/torch-1.4.0%2Bcpu-cp36-cp36m-win_amd64.whl; sys_platform == 'win32' and python_version == '3.6'
168-
https://download.pytorch.org/whl/cpu/torch-1.4.0%2Bcpu-cp36-cp36m-linux_x86_64.whl; sys_platform == 'linux' and python_version == '3.6'
169-
https://download.pytorch.org/whl/cpu/torch-1.4.0%2Bcpu-cp37-cp37m-win_amd64.whl; sys_platform == 'win32' and python_version == '3.7'
170-
https://download.pytorch.org/whl/cpu/torch-1.4.0%2Bcpu-cp37-cp37m-linux_x86_64.whl; sys_platform == 'linux' and python_version == '3.7'
171-
https://download.pytorch.org/whl/cpu/torch-1.4.0%2Bcpu-cp38-cp38-win_amd64.whl; sys_platform == 'win32' and python_version == '3.8'
172-
https://download.pytorch.org/whl/cpu/torch-1.4.0%2Bcpu-cp38-cp38-linux_x86_64.whl; sys_platform == 'linux' and python_version == '3.8'
173-
torchvision==0.5.0
166+
-f https://download.pytorch.org/whl/torch_stable.html
167+
torch==1.5.0+cpu
168+
torchvision==0.6.0+cpu
174169
```
175170
176171
1. Save *requirements.txt*, then run the following command from the *start* folder to install the dependencies.

0 commit comments

Comments
 (0)