diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2022-12-29 20:05:54 -0800 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2022-12-29 20:59:17 -0800 |
commit | 56f9bb542a8e765f7b573b7095de76f1c09211e6 (patch) | |
tree | 1ce035909908d0896d47a1a5daf77a23fd7fadba | |
parent | net/unix2tcp: Update to 0.8.3 (diff) |
misc/onnx: New port: Open Neural Network eXchange
-rw-r--r-- | misc/Makefile | 1 | ||||
-rw-r--r-- | misc/onnx/Makefile | 31 | ||||
-rw-r--r-- | misc/onnx/distinfo | 3 | ||||
-rw-r--r-- | misc/onnx/pkg-descr | 12 | ||||
-rw-r--r-- | misc/onnx/pkg-plist | 89 |
5 files changed, 136 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile index 75f6fac4128c..3fce38632444 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -267,6 +267,7 @@ SUBDIR += nut SUBDIR += ompl SUBDIR += ondir + SUBDIR += onnx SUBDIR += opencyc SUBDIR += openhab SUBDIR += openhab-addons diff --git a/misc/onnx/Makefile b/misc/onnx/Makefile new file mode 100644 index 000000000000..b08dfbc228b2 --- /dev/null +++ b/misc/onnx/Makefile @@ -0,0 +1,31 @@ +PORTNAME= onnx +DISTVERSIONPREFIX= v +DISTVERSION= 1.13.0 +CATEGORIES= misc # machine-learning + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Open Neural Network eXchange +WWW= https://onnx.ai/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +#BUILD_DEPENDS= bash:shells/bash +LIB_DEPENDS= libprotobuf.so:devel/protobuf + +USES= cmake:testing python:build + +USE_GITHUB= yes + +CMAKE_ON= BUILD_SHARED_LIBS +CMAKE_OFF= BUILD_ONNX_PYTHON +CMAKE_TESTING_ON= ONNX_BUILD_TESTS +CMAKE_TESTING_TARGET= + +post-install: + @${FIND} ${STAGEDIR}${PREFIX}/include -type d -empty -delete + +post-test: + cd ${BUILD_WRKSRC} && ./onnx_gtests + +.include <bsd.port.mk> diff --git a/misc/onnx/distinfo b/misc/onnx/distinfo new file mode 100644 index 000000000000..933fe5c272bd --- /dev/null +++ b/misc/onnx/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1672366239 +SHA256 (onnx-onnx-v1.13.0_GH0.tar.gz) = 66eb61fc0ff4b6189816eb8e4da52e1e6775a1c29f372cbd08b694aa5b4ca978 +SIZE (onnx-onnx-v1.13.0_GH0.tar.gz) = 10779860 diff --git a/misc/onnx/pkg-descr b/misc/onnx/pkg-descr new file mode 100644 index 000000000000..8533e8961b25 --- /dev/null +++ b/misc/onnx/pkg-descr @@ -0,0 +1,12 @@ +Open Neural Network Exchange (ONNX) is an open ecosystem that empowers AI +developers to choose the right tools as their project evolves. ONNX provides an +open source format for AI models, both deep learning and traditional ML. It +defines an extensible computation graph model, as well as definitions of +built-in operators and standard data types. Currently we focus on the +capabilities needed for inferencing (scoring). + +ONNX is widely supported and can be found in many frameworks, tools, and +hardware. Enabling interoperability between different frameworks and +streamlining the path from research to production helps increase the speed of +innovation in the AI community. We invite the community to join us and further +evolve ONNX. diff --git a/misc/onnx/pkg-plist b/misc/onnx/pkg-plist new file mode 100644 index 000000000000..bf6070543c35 --- /dev/null +++ b/misc/onnx/pkg-plist @@ -0,0 +1,89 @@ +include/onnx/checker.h +include/onnx/common/array_ref.h +include/onnx/common/assertions.h +include/onnx/common/common.h +include/onnx/common/constants.h +include/onnx/common/file_utils.h +include/onnx/common/graph_node_list.h +include/onnx/common/interned_strings.h +include/onnx/common/ir.h +include/onnx/common/ir_pb_converter.h +include/onnx/common/model_helpers.h +include/onnx/common/path.h +include/onnx/common/platform_helpers.h +include/onnx/common/status.h +include/onnx/common/stl_backports.h +include/onnx/common/tensor.h +include/onnx/common/version.h +include/onnx/defs/attr_proto_util.h +include/onnx/defs/data_propagators.h +include/onnx/defs/data_type_utils.h +include/onnx/defs/function.h +include/onnx/defs/math/utils.h +include/onnx/defs/operator_sets.h +include/onnx/defs/operator_sets_ml.h +include/onnx/defs/operator_sets_preview.h +include/onnx/defs/operator_sets_training.h +include/onnx/defs/parser.h +include/onnx/defs/printer.h +include/onnx/defs/reduction/utils.h +include/onnx/defs/schema.h +include/onnx/defs/shape_inference.h +include/onnx/defs/tensor/utils.h +include/onnx/defs/tensor_proto_util.h +include/onnx/defs/tensor_util.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 +include/onnx/onnx_pb.h +include/onnx/proto_utils.h +include/onnx/py_utils.h +include/onnx/shape_inference/implementation.h +include/onnx/string_utils.h +include/onnx/version_converter/BaseConverter.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 +include/onnx/version_converter/adapters/batch_normalization_13_14.h +include/onnx/version_converter/adapters/broadcast_backward_compatibility.h +include/onnx/version_converter/adapters/broadcast_forward_compatibility.h +include/onnx/version_converter/adapters/cast_9_8.h +include/onnx/version_converter/adapters/clip_10_11.h +include/onnx/version_converter/adapters/compatible.h +include/onnx/version_converter/adapters/dropout_11_12.h +include/onnx/version_converter/adapters/extend_supported_types.h +include/onnx/version_converter/adapters/gemm_6_7.h +include/onnx/version_converter/adapters/gemm_7_6.h +include/onnx/version_converter/adapters/maxpool_8_7.h +include/onnx/version_converter/adapters/no_previous_version.h +include/onnx/version_converter/adapters/pad_10_11.h +include/onnx/version_converter/adapters/remove_consumed_inputs.h +include/onnx/version_converter/adapters/reshape_4_5.h +include/onnx/version_converter/adapters/reshape_5_4.h +include/onnx/version_converter/adapters/resize_10_11.h +include/onnx/version_converter/adapters/scan_8_9.h +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/split_12_13.h +include/onnx/version_converter/adapters/split_13_12.h +include/onnx/version_converter/adapters/split_17_18.h +include/onnx/version_converter/adapters/sum_8_7.h +include/onnx/version_converter/adapters/topk_9_10.h +include/onnx/version_converter/adapters/transformers.h +include/onnx/version_converter/adapters/type_restriction.h +include/onnx/version_converter/adapters/upsample_6_7.h +include/onnx/version_converter/adapters/upsample_8_9.h +include/onnx/version_converter/adapters/upsample_9_10.h +include/onnx/version_converter/adapters/upsample_9_8.h +include/onnx/version_converter/convert.h +include/onnx/version_converter/helper.h +lib/cmake/ONNX/ONNXConfig.cmake +lib/cmake/ONNX/ONNXConfigVersion.cmake +lib/cmake/ONNX/ONNXTargets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/ONNX/ONNXTargets.cmake +lib/libonnx.so +lib/libonnx_proto.so |