forked from pool/python-onnx
Compare commits
10 Commits
Author | SHA256 | Date | |
---|---|---|---|
9107099925 | |||
f0f9299cc2 | |||
a96397eb19 | |||
c3176b24bb | |||
8c5c5b2974 | |||
aa00068823 | |||
282c53f503 | |||
71028906ad | |||
469bb4847a | |||
09107b6297 |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:0ce153e26ce2c00afca01c331a447d86fbf21b166b640551fe04258b4acfc6a4
|
|
||||||
size 12428161
|
|
3
onnx-1.17.0.tar.gz
Normal file
3
onnx-1.17.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:8d5e983c36037003615e5a02d36b18fc286541bf52de1a78f6cf9f32005a820e
|
||||||
|
size 12475304
|
@@ -1,3 +1,45 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Oct 31 23:25:27 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Do not build against the compatibility protobuf21, since the build
|
||||||
|
against the recent protobuf 28.3 and python-protobuf 5.28.3 works
|
||||||
|
just fine
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 16 08:41:19 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||||
|
|
||||||
|
- Fix numpy version 'Requires'
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 14 08:29:14 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||||
|
|
||||||
|
- Update to 1.17.0:
|
||||||
|
* Key Updates
|
||||||
|
- ai.onnx Opset 22
|
||||||
|
Update to support bfloat16:
|
||||||
|
- Python Changes
|
||||||
|
Support for numpy >= 2.0
|
||||||
|
* Bug fixes and infrastructure improvements
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 25 06:49:15 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||||
|
|
||||||
|
- update to 1.16.2:
|
||||||
|
* Mitigate tarball directory traversal risks #6164
|
||||||
|
* Refactor safe extract method #6222
|
||||||
|
* Add check on dimensions in Gemm opset 6 #6217
|
||||||
|
* Update broken URLs #6255
|
||||||
|
- skipped 1.16.1:
|
||||||
|
* Prevent crash on import after GCC 8 builds #6048
|
||||||
|
* Add missing shape inference check for DequantizeLinear #6080
|
||||||
|
* Fix input names for quantize/dequantize ONNX backend tests #6122
|
||||||
|
* fix a skipped shape infer code #6049
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 25 06:48:43 UTC 2024 - Caroline Sena <caroline.sena@suse.com>
|
||||||
|
|
||||||
|
- Changes needed to fix build errors on Leap 15.6 and Tumbleweed
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Jun 22 09:33:24 UTC 2024 - Sarah Kriesch <sarah.kriesch@opensuse.org>
|
Sat Jun 22 09:33:24 UTC 2024 - Sarah Kriesch <sarah.kriesch@opensuse.org>
|
||||||
|
|
||||||
|
@@ -15,14 +15,15 @@
|
|||||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
|
||||||
# python-nbval needed for test isn't available python39
|
# python-nbval needed for test isn't available python39
|
||||||
%define skip_python39 1
|
%define skip_python39 1
|
||||||
|
|
||||||
|
|
||||||
# Tumbleweed does not have a python36-numpy anymore: NEP 29 dropped Python 3.6 for NumPy 1.20
|
# Tumbleweed does not have a python36-numpy anymore: NEP 29 dropped Python 3.6 for NumPy 1.20
|
||||||
|
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-onnx
|
Name: python-onnx
|
||||||
Version: 1.16.0
|
Version: 1.17.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Open Neural Network eXchange
|
Summary: Open Neural Network eXchange
|
||||||
License: MIT
|
License: MIT
|
||||||
@@ -30,6 +31,7 @@ URL: https://onnx.ai/
|
|||||||
Source0: https://github.com/onnx/onnx/archive/v%{version}.tar.gz#/onnx-%{version}.tar.gz
|
Source0: https://github.com/onnx/onnx/archive/v%{version}.tar.gz#/onnx-%{version}.tar.gz
|
||||||
Source1: %{name}-rpmlintrc
|
Source1: %{name}-rpmlintrc
|
||||||
BuildRequires: %{python_module Pillow}
|
BuildRequires: %{python_module Pillow}
|
||||||
|
BuildRequires: %{python_module dataclasses if %python-base < 3.7}
|
||||||
BuildRequires: %{python_module devel >= 3.8}
|
BuildRequires: %{python_module devel >= 3.8}
|
||||||
BuildRequires: %{python_module fb-re2}
|
BuildRequires: %{python_module fb-re2}
|
||||||
BuildRequires: %{python_module nbval}
|
BuildRequires: %{python_module nbval}
|
||||||
@@ -41,18 +43,27 @@ BuildRequires: %{python_module pybind11}
|
|||||||
BuildRequires: %{python_module pytest-xdist}
|
BuildRequires: %{python_module pytest-xdist}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake >= 3.5
|
||||||
|
BuildRequires: eigen3-devel
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: protobuf21-devel
|
%else
|
||||||
|
BuildRequires: gcc11
|
||||||
|
BuildRequires: gcc11-c++
|
||||||
|
%endif
|
||||||
|
BuildRequires: libstdc++-devel
|
||||||
|
BuildRequires: protobuf-devel
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: libonnx == %version
|
Requires: libonnx == %version
|
||||||
Requires: libonnx_proto == %version
|
Requires: libonnx_proto == %version
|
||||||
|
Requires: libstdc++-devel
|
||||||
Requires: python-numpy
|
Requires: python-numpy
|
||||||
Requires: python-protobuf
|
Requires: python-protobuf
|
||||||
|
Requires: python-pybind11
|
||||||
Requires: python-typing_extensions >= 3.6.2.1
|
Requires: python-typing_extensions >= 3.6.2.1
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun): update-alternatives
|
||||||
Provides: python-onnx-devel = %{version}-%{release}
|
Provides: python-onnx-devel = %{version}-%{release}
|
||||||
Obsoletes: python-onnx-devel < %{version}-%{release}
|
Obsoletes: python-onnx-devel < %{version}-%{release}
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
@@ -109,13 +120,21 @@ sed -i "/^CMAKE_BUILD_DIR = / s/TOP_DIR, '.setuptools-cmake-build'/TOP_DIR, 'bui
|
|||||||
sed -i -e '/pytest-runner/d' setup.py
|
sed -i -e '/pytest-runner/d' setup.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
|
%if 0%{?suse_version} <= 1500
|
||||||
|
export CC=%{_bindir}/gcc-11
|
||||||
|
export CXX=%{_bindir}/g++-11
|
||||||
|
%endif
|
||||||
|
|
||||||
%{python_expand # Generate the build system using the distro macro, configuring everything to taste for every python flavor.
|
%{python_expand # Generate the build system using the distro macro, configuring everything to taste for every python flavor.
|
||||||
|
|
||||||
%cmake -DONNX_USE_PROTOBUF_SHARED_LIBS:BOOL=ON \
|
%cmake -DONNX_USE_PROTOBUF_SHARED_LIBS:BOOL=ON \
|
||||||
-DONNX_WERROR:BOOL=OFF
|
-DONNX_WERROR:BOOL=OFF
|
||||||
# the macro stays in build/
|
# the macro stays in build/
|
||||||
cd ..
|
cd ..
|
||||||
}
|
}
|
||||||
# let setup.py do the cmake build call (for every flavor)
|
# let setup.py do the cmake build call (for every flavor)
|
||||||
|
|
||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@@ -140,7 +159,7 @@ done
|
|||||||
export LD_LIBRARY_PATH="%{buildroot}%{_libdir}"
|
export LD_LIBRARY_PATH="%{buildroot}%{_libdir}"
|
||||||
# copy tests into clean subdir and test the installed lib in sitearch
|
# copy tests into clean subdir and test the installed lib in sitearch
|
||||||
mkdir cleantestdir
|
mkdir cleantestdir
|
||||||
cp -r onnx/test onnx/examples cleantestdir/
|
cp -r onnx/test examples cleantestdir/
|
||||||
pushd cleantestdir
|
pushd cleantestdir
|
||||||
# skip online tests
|
# skip online tests
|
||||||
donttest=" test_bvlc_alexnet_cpu \
|
donttest=" test_bvlc_alexnet_cpu \
|
||||||
|
Reference in New Issue
Block a user