File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed
examples/v1beta1/trial-images Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ ADD examples/v1beta1/trial-images/enas-cnn-cifar10 ${TARGET_DIR}
8
8
9
9
WORKDIR ${TARGET_DIR}
10
10
11
- RUN if [ "${TARGETARCH}" = "aarch64 " ]; then \
11
+ RUN if [ "${TARGETARCH}" = "arm64 " ]; then \
12
12
apt-get -y update && \
13
13
apt-get -y install gfortran libpcre3 libpcre3-dev && \
14
14
apt-get clean && \
Original file line number Diff line number Diff line change 1
- FROM tensorflow/tensorflow:2.9.1-gpu
1
+ # tensorflow-gpu=2.9.1, cuda=11.7.1
2
+ # Ref: https://docs.nvidia.com/deeplearning/frameworks/tensorflow-release-notes/rel_22-08.html#rel_22-08
3
+ FROM nvcr.io/nvidia/tensorflow:22.08-tf2-py3
2
4
3
5
ENV TARGET_DIR /opt/enas-cnn-cifar10
4
6
ENV PYTHONPATH ${TARGET_DIR}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ ADD examples/v1beta1/trial-images/tf-mnist-with-summaries /opt/tf-mnist-with-sum
6
6
7
7
WORKDIR /opt/tf-mnist-with-summaries
8
8
9
- RUN if [ "${TARGETARCH}" = "aarch64 " ]; then \
9
+ RUN if [ "${TARGETARCH}" = "arm64 " ]; then \
10
10
apt-get -y update && \
11
11
apt-get -y install gfortran libpcre3 libpcre3-dev && \
12
12
apt-get clean && \
Original file line number Diff line number Diff line change @@ -120,9 +120,6 @@ echo -e "\nBuilding training container images..."
120
120
if [ ! " $ARCH " = " amd64" ]; then
121
121
echo -e " \nSome training container images are supported only amd64."
122
122
else
123
- echo -e " \nBuilding Keras CIFAR-10 CNN training container example for ENAS with GPU support...\n"
124
- docker buildx build --platform linux/amd64 -t " ${REGISTRY} /enas-cnn-cifar10-gpu:${TAG} " -f examples/${VERSION} /trial-images/enas-cnn-cifar10/Dockerfile.gpu .
125
-
126
123
echo -e " \nBuilding PyTorch CIFAR-10 CNN training container example for DARTS with CPU support...\n"
127
124
docker buildx build --platform linux/amd64 -t " ${REGISTRY} /darts-cnn-cifar10-cpu:${TAG} " -f examples/${VERSION} /trial-images/darts-cnn-cifar10/Dockerfile.cpu .
128
125
@@ -148,4 +145,7 @@ docker buildx build --platform "linux/$ARCH" -t "${REGISTRY}/tf-mnist-with-summa
148
145
echo -e " \nBuilding Keras CIFAR-10 CNN training container example for ENAS with CPU support...\n"
149
146
docker buildx build --platform " linux/$ARCH " -t " ${REGISTRY} /enas-cnn-cifar10-cpu:${TAG} " -f examples/${VERSION} /trial-images/enas-cnn-cifar10/Dockerfile.cpu .
150
147
148
+ echo -e " \nBuilding Keras CIFAR-10 CNN training container example for ENAS with GPU support...\n"
149
+ docker buildx build --platform " linux/$ARCH " -t " ${REGISTRY} /enas-cnn-cifar10-gpu:${TAG} " -f examples/${VERSION} /trial-images/enas-cnn-cifar10/Dockerfile.gpu .
150
+
151
151
echo -e " \nAll Katib images with ${TAG} tag have been built successfully!\n"
You can’t perform that action at this time.
0 commit comments