From 4b364adea34dd111d3b958a33d8f114370d0938d Mon Sep 17 00:00:00 2001 From: Yuki Iwai Date: Sat, 24 Dec 2022 02:56:57 +0900 Subject: [PATCH] Pin the numpy version with v1.23.5 in the mxnet-mnist image Signed-off-by: Yuki Iwai --- examples/v1beta1/trial-images/mxnet-mnist/Dockerfile | 2 +- examples/v1beta1/trial-images/mxnet-mnist/requirements.txt | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 examples/v1beta1/trial-images/mxnet-mnist/requirements.txt diff --git a/examples/v1beta1/trial-images/mxnet-mnist/Dockerfile b/examples/v1beta1/trial-images/mxnet-mnist/Dockerfile index d19c1aac175..23904edc6dd 100644 --- a/examples/v1beta1/trial-images/mxnet-mnist/Dockerfile +++ b/examples/v1beta1/trial-images/mxnet-mnist/Dockerfile @@ -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 diff --git a/examples/v1beta1/trial-images/mxnet-mnist/requirements.txt b/examples/v1beta1/trial-images/mxnet-mnist/requirements.txt new file mode 100644 index 00000000000..fb439db250f --- /dev/null +++ b/examples/v1beta1/trial-images/mxnet-mnist/requirements.txt @@ -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