SHA256
1
0
forked from pool/python-onnx

Accepting request 1117439 from home:ecsos:python

- Update to 1.14.1
  * Bug fixes
    - Fix shape data propagation function to handle missing optional parameters #5219
    - Fix a couple of shape inference issues #5223
    - Extend function type inference to handle missing optional parameters #5169
    - Fix check_tensor to work with large models on Windows #5227
    - Fix check_tensor to work with large models on UNIX #5286
- Changes from 1.14.0
  * Opset 19 is released
  * New operators
    - DeformConv added in #4783
  * Operator extensions
    - Equal - Support for string data type added in #4828
    - AveragePool - New attribute dilations #4790
    - Pad - Added new wrap to the mode attribute to support circular padding #4793
    - Resize - Added half_pixel_symmetric to the coordinate_transformation_mode attribute #4862
  * IR updates (bump to 9)
    - Support attributes with default values: #4911
    - Added 4 new 8-bit floating point data types: #4805
  * Backend tests
    - Replaced real models with light models in backend tests. #4861 #4960
  * Support Protobuf v21
    - Now ONNX supports Protobuf v21: #4956
  * Deprecation notice
    - Python 3.7 support will be deprecated due to EOL in next release: #5191
    - onnx-weekly package will be deprecated in TestPyPI. 
      Please use them from PyPI instead: #4930
    - Properties in FormalParameter will be deprecated in future release.
      Please use newer properties name: #5074
    - Variables from mapping.py will be deprecated and become private implementation details.
      Please use public functions to get corresponding types from helper.py instead: #4554
- Changes from 1.13.1
  * Bug fixes
    - Add missing f-string for DeprecatedWarningDict in mapping.py #4707
    - Fix types deprecated in numpy==1.24 #4721
    - Update URL for real models from ONNX Runtime #4865
    - Fix attribute substitution within subgraphs during function type/shape inference #4792
    - Handle variants of constant op in shape inference #4824
    - Fix parser bug in handling non-tensor types #4863
    - Fix function shape inference bug #4880
  * Announcement
    - Deprecate real model tests from onnx repo in next ONNX release #4885
    - Move onnx-weekly package from TestPyPI to PyPI and stop
      uploading onnx-weekly to TestPyPI after next ONNX release #4930
- Changes from 1.13.0
  * New operators
    - Col2Im added in #3948
    - BitwiseNot added in #4497
    - BitwiseAnd, BitwiseOr and BitwiseXor added in #4496
  * Operator extensions
    - Resize - New attributes: antialias, axes and keep_aspect_ratio_policy, allow for both scales and sizes to be provided when one of them is an empty constant #4126, #4388
    - Pad - New attribute axes #4190
    - OptionalHasElement - New input types handling #4326
    - OptionalHasElement and OptionalGetElement - Accept tensor and sequence types #4421
    - ScatterElement and ScatterND - Add max and min as supported reduction attributes #4411
    - Split - Add support for uneven tensor splitting and a new num_outputs attribute #4481
    - LpPool - New attributes: ceil_mode and dilations #4534
  * Function updates
    - CenterCropPad added in #4190
    - mish added in #4350
    - GroupNormalization added in #4621
  * Reference Python runtime
    - Reference Python runtime dependent on only Python and numpy has been added. #4483
  * Python 3.11 support
    - ONNX 1.13.0 supports Python 3.11. #4490
  * Apple Silicon support
    - Support for M1/M2 ARM processors has been added. #4642
  * More
    ONNX 1.13.0 also comes with numerous:
    - bugfixes
    - infrastructure improvements
    - CI improvements
    - documentation updates
    - security updates
    For full details see 
    https://github.com/onnx/onnx/wiki/Logistics-for-ONNX-Release-1.13.0
  * Deprecation notice
    - TENSOR_TYPE_TO_STORAGE_TENSOR_TYPE has been deprecated #4270
    - ONNXIFI: ONNX Interface for Framework Integration has been deprecated #4431
- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1117439
OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/python-onnx?expand=0&rev=39
This commit is contained in:
2023-10-12 12:47:05 +00:00
committed by Git OBS Bridge
parent c8c4a0e793
commit ed62183b23
4 changed files with 98 additions and 24 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-onnx
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,20 +16,19 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%{?sle15_python_module_pythons}
# Tumbleweed does not have a python36-numpy anymore: NEP 29 dropped Python 3.6 for NumPy 1.20
%define skip_python36 1
Name: python-onnx
Version: 1.12.0
Version: 1.14.1
Release: 0
Summary: Open Neural Network eXchange
License: MIT
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 devel}
BuildRequires: %{python_module devel >= 3.8}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module parameterized}
BuildRequires: %{python_module protobuf}
BuildRequires: %{python_module pybind11-devel}
BuildRequires: %{python_module pybind11}
@@ -43,7 +42,6 @@ BuildRequires: protobuf21-devel
BuildRequires: python-rpm-macros
Requires: libonnx == %version
Requires: libonnx_proto == %version
Requires: libonnxifi_dummy == %version
Requires: python-numpy
Requires: python-protobuf
Requires: python-typing_extensions >= 3.6.2.1
@@ -63,18 +61,10 @@ community of partners.
Summary: Header files of onnx
Requires: libonnx == %version
Requires: libonnx_proto == %version
Requires: libonnxifi_dummy == %version
%description -n onnx-devel
Header files of ONNX.
%package -n libonnxifi_dummy
Summary: Library for ONNX Interface for Framework Integration
%description -n libonnxifi_dummy
This package exists to create libonnx_proto, so you do no want
to install this package.
%package -n libonnx
Summary: Shared library for onnx
@@ -153,7 +143,8 @@ donttest=" test_bvlc_alexnet_cpu \
or test_vgg19_cpu \
or test_inception_v2_cpu \
or test_zfnet512_cpu \
or test_resnet50_cpu"
or test_resnet50_cpu \
or reference_evaluator_backend_test"
# do not run in parallel yet - https://github.com/onnx/onnx/issues/3946#issuecomment-1015634235
%pytest_arch -n 1 -k "not ($donttest)" -ra
popd
@@ -184,11 +175,6 @@ popd
%files -n onnx-backend-test
%{_includedir}/onnx/backend
%files -n libonnxifi_dummy
%{_libdir}/libonnxifi*.so
%{_libdir}/libonnxifi_loader.*
/usr/lib/libonnxifi.so
%files -n libonnx
%{_libdir}/libonnx.so