diff options
Diffstat (limited to 'misc/onnx')
| -rw-r--r-- | misc/onnx/Makefile | 10 | ||||
| -rw-r--r-- | misc/onnx/distinfo | 6 | ||||
| -rw-r--r-- | misc/onnx/files/patch-CMakeLists.txt | 28 | ||||
| -rw-r--r-- | misc/onnx/pkg-plist | 5 |
4 files changed, 41 insertions, 8 deletions
diff --git a/misc/onnx/Makefile b/misc/onnx/Makefile index 3054dd2df6d4..3087145e8f7d 100644 --- a/misc/onnx/Makefile +++ b/misc/onnx/Makefile @@ -1,7 +1,7 @@ PORTNAME= onnx DISTVERSIONPREFIX= v -DISTVERSION= 1.17.0 -PORTREVISION= 3 +DISTVERSION= 1.19.1 +PORTREVISION= 1 CATEGORIES= misc # machine-learning MAINTAINER= yuri@FreeBSD.org @@ -21,7 +21,7 @@ USES= cmake:testing compiler:c++17-lang python:build USE_GITHUB= yes CMAKE_ON= BUILD_SHARED_LIBS -CMAKE_OFF= BUILD_ONNX_PYTHON +CMAKE_OFF= ONNX_BUILD_PYTHON CMAKE_TESTING_ON= ONNX_BUILD_TESTS CMAKE_TESTING_TARGET= @@ -33,6 +33,8 @@ post-install: post-test: cd ${BUILD_WRKSRC} && ./onnx_gtests -# tests as of 1.17.0: 84 tests from 11 test suites ran. (160 ms total) +# tests as of 1.19.1: (NOTE: tests require static build, so the CMAKE_ON=BUILD_SHARED_LIBS needs to be commented out) +# [==========] 95 tests from 13 test suites ran. (18 ms total) +# [ PASSED ] 95 tests. .include <bsd.port.mk> diff --git a/misc/onnx/distinfo b/misc/onnx/distinfo index 7c21babd92f3..c01424153974 100644 --- a/misc/onnx/distinfo +++ b/misc/onnx/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1737081628 -SHA256 (onnx-onnx-v1.17.0_GH0.tar.gz) = 8d5e983c36037003615e5a02d36b18fc286541bf52de1a78f6cf9f32005a820e -SIZE (onnx-onnx-v1.17.0_GH0.tar.gz) = 12475304 +TIMESTAMP = 1762762407 +SHA256 (onnx-onnx-v1.19.1_GH0.tar.gz) = ce9d2569a61d64e8a3d05b92194f60ffb7c868dbb754a71f5b4d992273a9413d +SIZE (onnx-onnx-v1.19.1_GH0.tar.gz) = 13162220 diff --git a/misc/onnx/files/patch-CMakeLists.txt b/misc/onnx/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..f1e4a2c51f35 --- /dev/null +++ b/misc/onnx/files/patch-CMakeLists.txt @@ -0,0 +1,28 @@ +-- remove visibility settings to fix run-time of PyTorch with ONNX +-- 'import torch' fails otherwise with undefined symbols from ONNX +-- https://github.com/pytorch/pytorch/issues/167525 + +--- CMakeLists.txt.orig 2025-11-11 00:00:00 UTC ++++ CMakeLists.txt +@@ -419,8 +419,8 @@ foreach(_proto_src ${ONNX_PROTO_SRCS}) + endforeach() + + # Hide all symbols we don't need +-set_target_properties(onnx_proto PROPERTIES CXX_VISIBILITY_PRESET hidden) +-set_target_properties(onnx_proto PROPERTIES VISIBILITY_INLINES_HIDDEN 1) ++#set_target_properties(onnx_proto PROPERTIES CXX_VISIBILITY_PRESET hidden) ++#set_target_properties(onnx_proto PROPERTIES VISIBILITY_INLINES_HIDDEN 1) + + set(LINKED_PROTOBUF_TARGET protobuf::libprotobuf) + if(ONNX_USE_LITE_PROTO) +@@ -459,8 +459,8 @@ if(CMAKE_SYSTEM_NAME STREQUAL "AIX") + else() + add_library(onnx ${ONNX_SRCS}) + endif() +-set_target_properties(onnx PROPERTIES CXX_VISIBILITY_PRESET hidden) +-set_target_properties(onnx PROPERTIES VISIBILITY_INLINES_HIDDEN ON) ++#set_target_properties(onnx PROPERTIES CXX_VISIBILITY_PRESET hidden) ++#set_target_properties(onnx PROPERTIES VISIBILITY_INLINES_HIDDEN ON) + + target_link_libraries(onnx PUBLIC onnx_proto) + add_onnx_global_defines(onnx) diff --git a/misc/onnx/pkg-plist b/misc/onnx/pkg-plist index d0569c202351..c7bb902ba208 100644 --- a/misc/onnx/pkg-plist +++ b/misc/onnx/pkg-plist @@ -23,6 +23,7 @@ include/onnx/defs/data_type_utils.h include/onnx/defs/function.h include/onnx/defs/generator/utils.h include/onnx/defs/math/utils.h +include/onnx/defs/nn/utils.h include/onnx/defs/operator_sets.h include/onnx/defs/operator_sets_ml.h include/onnx/defs/operator_sets_preview.h @@ -31,6 +32,7 @@ include/onnx/defs/parser.h include/onnx/defs/printer.h include/onnx/defs/reduction/utils.h include/onnx/defs/schema.h +include/onnx/defs/sequence/utils.h include/onnx/defs/shape_inference.h include/onnx/defs/tensor/utils.h include/onnx/defs/tensor_proto_util.h @@ -38,7 +40,6 @@ include/onnx/defs/tensor_util.h include/onnx/defs/traditionalml/utils.h include/onnx/inliner/inliner.h include/onnx/onnx-data.pb.h -include/onnx/onnx-data_pb.h include/onnx/onnx-ml.pb.h include/onnx/onnx-operators-ml.pb.h include/onnx/onnx-operators_pb.h @@ -49,6 +50,7 @@ include/onnx/shape_inference/attribute_binder.h include/onnx/shape_inference/implementation.h include/onnx/string_utils.h include/onnx/version_converter/BaseConverter.h +include/onnx/version_converter/adapters/Attention_24_23.h include/onnx/version_converter/adapters/adapter.h include/onnx/version_converter/adapters/axes_attribute_to_input.h include/onnx/version_converter/adapters/axes_input_to_attribute.h @@ -79,6 +81,7 @@ include/onnx/version_converter/adapters/scan_9_8.h include/onnx/version_converter/adapters/scatter_10_11.h include/onnx/version_converter/adapters/slice_9_10.h include/onnx/version_converter/adapters/softmax_12_13.h +include/onnx/version_converter/adapters/softmax_13_12.h include/onnx/version_converter/adapters/split_12_13.h include/onnx/version_converter/adapters/split_13_12.h include/onnx/version_converter/adapters/split_17_18.h |
