diff --git a/docker/Dockerfile.ci_cpu b/docker/Dockerfile.ci_cpu index 7a95ebff8e5c..91ebf8746079 100644 --- a/docker/Dockerfile.ci_cpu +++ b/docker/Dockerfile.ci_cpu @@ -106,6 +106,10 @@ RUN bash /install/ubuntu_install_libxsmm.sh COPY install/ubuntu_install_onnx.sh /install/ubuntu_install_onnx.sh RUN bash /install/ubuntu_install_onnx.sh +# NNEF +COPY install/ubuntu_install_nnef.sh /install/ubuntu_install_nnef.sh +RUN bash /install/ubuntu_install_nnef.sh + # AArch64 Architecture Envelope Model (AEM) COPY install/ubuntu_install_aprofile_aem.sh /install RUN bash /install/ubuntu_install_aprofile_aem.sh diff --git a/docker/Dockerfile.ci_gpu b/docker/Dockerfile.ci_gpu index 332cb9b4e034..1295c679d778 100644 --- a/docker/Dockerfile.ci_gpu +++ b/docker/Dockerfile.ci_gpu @@ -100,6 +100,9 @@ RUN bash /install/ubuntu_install_tflite.sh COPY install/ubuntu_install_dgl.sh /install/ubuntu_install_dgl.sh RUN bash /install/ubuntu_install_dgl.sh +COPY install/ubuntu_install_nnef.sh /install/ubuntu_install_nnef.sh +RUN bash /install/ubuntu_install_nnef.sh + ENV NVIDIA_DRIVER_CAPABILITIES compute,graphics,utility COPY install/ubuntu_install_vulkan.sh /install/ubuntu_install_vulkan.sh RUN bash /install/ubuntu_install_vulkan.sh diff --git a/docker/install/ubuntu_install_nnef.sh b/docker/install/ubuntu_install_nnef.sh new file mode 100755 index 000000000000..c7bc59bddffb --- /dev/null +++ b/docker/install/ubuntu_install_nnef.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -e +set -u +set -o pipefail + +pip3 install \ + nnef==1.0.8 diff --git a/docker/python/ci-constraints.txt b/docker/python/ci-constraints.txt index d28e81599775..70795265c6c8 100644 --- a/docker/python/ci-constraints.txt +++ b/docker/python/ci-constraints.txt @@ -28,3 +28,4 @@ tensorflow-gpu = "==2.7.2" tflite = "==2.4.0" torch = "==1.11.0" torchvision = "==0.12.0+cpu" +nnef = "==1.0.8"