Skip to content

Commit

Permalink
No need to ignore type for torch.__version__ as of PyTorch 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiromu Hota authored and lukehsiao committed Jul 30, 2020
1 parent 1d6771b commit 5909011
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ jobs:
sudo rm -rf /etc/ImageMagick-6/policy.xml
sudo apt-get install -q -y poppler-utils
pip install --upgrade pip setuptools
# Install PyTorch for Linux with no CUDA support
pip install torch==1.5.0+cpu torchvision==0.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Print Version Info
run: |
neofetch
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ARG FONDUER_VERSION=

# Install python packages
RUN pip install \
torch==1.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html \
torch==1.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html \
# https://github.com/HazyResearch/fonduer/issues/390
"tensorboard<2.0.0,>=1.14.0" "scikit-learn<0.22.0,>=0.20.2" \
fonduer${FONDUER_VERSION:+==${FONDUER_VERSION}}
2 changes: 1 addition & 1 deletion src/fonduer/packaging/fonduer_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def _get_default_conda_env() -> Optional[Dict[str, Any]]:

return _mlflow_conda_env(
additional_conda_deps=[
"pytorch={}".format(torch.__version__), # type: ignore
"pytorch={}".format(torch.__version__),
"psycopg2",
"pip",
],
Expand Down

0 comments on commit 5909011

Please sign in to comment.