Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 049c1b9

Browse files
jeffdailyfacebook-github-bot
authored andcommittedAug 6, 2020
pin numpy version to 1.18.5 (pytorch#42670)
Summary: Using numpy 1.19.x instead of 1.18.x breaks certain unit tests. Fixes pytorch#42561. Likely also fixes pytorch#42583. CC ezyang xw285cornell sunway513 Pull Request resolved: pytorch#42670 Reviewed By: ezyang Differential Revision: D22978369 Pulled By: malfet fbshipit-source-id: ce1f35c7ba620c2b9dd10613f39354cebee8b87d
1 parent bcab2d6 commit 049c1b9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎.circleci/docker/common/install_conda.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ if [ -n "$ANACONDA_PYTHON_VERSION" ]; then
6767
if [ "$ANACONDA_PYTHON_VERSION" = "3.8" ]; then
6868
# DO NOT install typing if installing python-3.8, since its part of python-3.8 core packages
6969
# Install llvm-8 as it is required to compile llvmlite-0.30.0 from source
70-
conda_install numpy pyyaml mkl mkl-include setuptools cffi future six llvmdev=8.0.0
70+
conda_install numpy=1.18.5 pyyaml mkl mkl-include setuptools cffi future six llvmdev=8.0.0
7171
else
72-
conda_install numpy pyyaml mkl mkl-include setuptools cffi typing future six
72+
conda_install numpy=1.18.5 pyyaml mkl mkl-include setuptools cffi typing future six
7373
fi
7474
if [[ "$CUDA_VERSION" == 9.2* ]]; then
7575
conda_install magma-cuda92 -c pytorch

‎docker/caffe2/jenkins/common/install_python.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ pip install --no-cache-dir \
154154
future \
155155
hypothesis \
156156
jupyter \
157-
numpy \
157+
numpy==1.18.5 \
158158
protobuf \
159159
pytest \
160160
pyyaml \

0 commit comments

Comments
 (0)