SHA256
1
0
forked from pool/python-onnx

Accepting request 1141766 from home:mslacken:ml

- update to 1.15.0
  * New Operators (ai.onnx):
    + ImageDecoder a new ImageDecoder operator to be used in preprocessing
      models
    + RegexFullMatch a new operator for regex matching that is commonly used in
      feature preprocessing
    + StringConcat takes two string tensors as input and returns the elementwise
      concatenation of the strings in each tensor
    + StringSplit takes a string tensor as input and splits each element based
      on a delimiter attribute and a maxsplit attribute
    + AffineGrid Generates a 2D or 3D flow field (sampling grid), given a batch
      of affine matrices theta
    + Gelu applies gaussian error linear unit function or its approximation to
      input
  * Operator Updates (ai.onnx):
    + ConstantOfShape extends supported data types
    + GridSample extends to ND data
    + ReduceMax adds support for boolean
    + ReduceMin adds support for boolean
    + IsNan adds support of float8 types
    + IsInf adds support of float8 types
    + DFT promote axis as input
  * New functionality:
    + Enable empty list of values as attribute 
    + Update diff bakend node tests for auto update doc 
    + Enable pylint checks with Ruff and remove pylint from lintrunner 
    + Getting onnx to treat inf/-inf as float literals. 
    + Create the onnxtxt serialization format 
    + Support JSON as a serialization target 
    + Support for parsing and printing empty list value as attribute

OBS-URL: https://build.opensuse.org/request/show/1141766
OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/python-onnx?expand=0&rev=41
This commit is contained in:
2024-01-31 09:24:25 +00:00
committed by Git OBS Bridge
parent ed62183b23
commit aace919ce9
4 changed files with 65 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-onnx
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,14 +19,17 @@
%{?sle15_python_module_pythons}
# Tumbleweed does not have a python36-numpy anymore: NEP 29 dropped Python 3.6 for NumPy 1.20
Name: python-onnx
Version: 1.14.1
Version: 1.15.0
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 Pillow}
BuildRequires: %{python_module devel >= 3.8}
BuildRequires: %{python_module fb-re2}
BuildRequires: %{python_module nbval}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module parameterized}
BuildRequires: %{python_module protobuf}
@@ -98,7 +101,7 @@ sed -i "s|^#!\s*%{_bindir}/env python|#!%{_bindir}/python3|" tools/protoc-gen-my
# build inside python_expand shuffled build dir also used by the cmake macro instead of upstream's custom dirname
sed -i "/^CMAKE_BUILD_DIR = / s/TOP_DIR, '.setuptools-cmake-build'/TOP_DIR, 'build'/" setup.py
# do not require extra pytest modules
sed -i -e '/addopts/d' setup.cfg
#sed -i -e '/addopts/d' setup.cfg
# do not pull in pytest-runner as it is deprecated
sed -i -e '/pytest-runner/d' setup.py