This is an automated email from the ASF dual-hosted git repository.

mshr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new 70aa379790 [Docker][CI] Reintroduce NNEF to CI images  (#17955)
70aa379790 is described below

commit 70aa379790a6b5785ae0c2ef26257313455931e0
Author: Ágoston Czobor <[email protected]>
AuthorDate: Tue May 13 07:05:06 2025 +0200

    [Docker][CI] Reintroduce NNEF to CI images  (#17955)
    
    Add NNEF package to CI images
---
 docker/Dockerfile.ci_cpu              |  4 ++++
 docker/Dockerfile.ci_gpu              |  3 +++
 docker/install/ubuntu_install_nnef.sh | 24 ++++++++++++++++++++++++
 docker/python/ci-constraints.txt      |  1 +
 4 files changed, 32 insertions(+)

diff --git a/docker/Dockerfile.ci_cpu b/docker/Dockerfile.ci_cpu
index 7a95ebff8e..91ebf87460 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 332cb9b4e0..1295c679d7 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 0000000000..c7bc59bddf
--- /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 d28e815997..70795265c6 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"

Reply via email to