Skip to content

Commit

Permalink
Pin the NumPy version with v1.23.5 in some images (#2070)
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Iwai <[email protected]>

Signed-off-by: Yuki Iwai <[email protected]>
  • Loading branch information
tenzen-y authored Dec 24, 2022
1 parent db72ce1 commit 1dd7251
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion cmd/suggestion/skopt/v1beta1/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
grpcio==1.41.1
cloudpickle==0.5.6
numpy>=1.20.0
# This is a workaround to avoid the following error.
# AttributeError: module 'numpy' has no attribute 'int'
# See more: https://github.com/numpy/numpy/pull/22607
numpy==1.23.5
scikit-learn>=0.24.0
scipy>=1.5.4
forestci==0.3
Expand Down
2 changes: 1 addition & 1 deletion examples/v1beta1/trial-images/mxnet-mnist/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN apt-get -y update \
RUN if [ "${TARGETARCH}" = "arm64" ]; then \
/opt/mxnet-mnist/install-arm-performance-libraries.sh; \
fi
RUN pip install mxnet==1.9.1
RUN pip install -r requirements.txt
RUN chgrp -R 0 /opt/mxnet-mnist \
&& chmod -R g+rwX /opt/mxnet-mnist

Expand Down
5 changes: 5 additions & 0 deletions examples/v1beta1/trial-images/mxnet-mnist/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mxnet==1.9.1
# This is a workaround to avoid the following error.
# AttributeError: module 'numpy' has no attribute 'bool'
# See more: https://github.com/numpy/numpy/pull/22607
numpy==1.23.5

0 comments on commit 1dd7251

Please sign in to comment.