forked from pool/python-onnx
Compare commits
28 Commits
Author | SHA256 | Date | |
---|---|---|---|
9107099925 | |||
f0f9299cc2 | |||
a96397eb19 | |||
c3176b24bb | |||
8c5c5b2974 | |||
aa00068823 | |||
282c53f503 | |||
71028906ad | |||
469bb4847a | |||
09107b6297 | |||
8a518edfe1 | |||
4d1fdcf83c | |||
471617373c | |||
7a8d03ba09 | |||
38c66b5143 | |||
0fe3d99d03 | |||
e049cdeec9 | |||
35693bbc47 | |||
8896765a34 | |||
9f505a305a | |||
dc5033f0d2 | |||
7df4cfda7c | |||
74c5c5c847 | |||
a2b14d34e9 | |||
b26c037702 | |||
b5f1bc1df8 | |||
145da28f0b | |||
88350da65b |
@@ -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>
|
||||
|
||||
|
@@ -15,14 +15,15 @@
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
|
||||
# python-nbval needed for test isn't available python39
|
||||
%define skip_python39 1
|
||||
|
||||
|
||||
# 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
|
||||
Version: 1.16.0
|
||||
Version: 1.17.0
|
||||
Release: 0
|
||||
Summary: Open Neural Network eXchange
|
||||
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
|
||||
Source1: %{name}-rpmlintrc
|
||||
BuildRequires: %{python_module Pillow}
|
||||
BuildRequires: %{python_module dataclasses if %python-base < 3.7}
|
||||
BuildRequires: %{python_module devel >= 3.8}
|
||||
BuildRequires: %{python_module fb-re2}
|
||||
BuildRequires: %{python_module nbval}
|
||||
@@ -41,18 +43,27 @@ BuildRequires: %{python_module pybind11}
|
||||
BuildRequires: %{python_module pytest-xdist}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: cmake
|
||||
BuildRequires: cmake >= 3.5
|
||||
BuildRequires: eigen3-devel
|
||||
BuildRequires: fdupes
|
||||
%if 0%{?suse_version} > 1500
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: protobuf21-devel
|
||||
%else
|
||||
BuildRequires: gcc11
|
||||
BuildRequires: gcc11-c++
|
||||
%endif
|
||||
BuildRequires: libstdc++-devel
|
||||
BuildRequires: protobuf-devel
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: libonnx == %version
|
||||
Requires: libonnx_proto == %version
|
||||
Requires: libstdc++-devel
|
||||
Requires: python-numpy
|
||||
Requires: python-protobuf
|
||||
Requires: python-pybind11
|
||||
Requires: python-typing_extensions >= 3.6.2.1
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Provides: python-onnx-devel = %{version}-%{release}
|
||||
Obsoletes: python-onnx-devel < %{version}-%{release}
|
||||
%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
|
||||
|
||||
%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.
|
||||
|
||||
%cmake -DONNX_USE_PROTOBUF_SHARED_LIBS:BOOL=ON \
|
||||
-DONNX_WERROR:BOOL=OFF
|
||||
# the macro stays in build/
|
||||
cd ..
|
||||
}
|
||||
# let setup.py do the cmake build call (for every flavor)
|
||||
|
||||
%python_build
|
||||
|
||||
%install
|
||||
@@ -140,7 +159,7 @@ done
|
||||
export LD_LIBRARY_PATH="%{buildroot}%{_libdir}"
|
||||
# copy tests into clean subdir and test the installed lib in sitearch
|
||||
mkdir cleantestdir
|
||||
cp -r onnx/test onnx/examples cleantestdir/
|
||||
cp -r onnx/test examples cleantestdir/
|
||||
pushd cleantestdir
|
||||
# skip online tests
|
||||
donttest=" test_bvlc_alexnet_cpu \
|
||||
|
Reference in New Issue
Block a user