From nobody Fri Dec 30 04:59:20 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NjtMr4x4Gz2lCwb; Fri, 30 Dec 2022 04:59:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NjtMr4Jfxz3FLH; Fri, 30 Dec 2022 04:59:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672376360; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ykADqC54JRc/Nz4Axd2VLPikK5spN2qM1LnKZBPUEnE=; b=yj/lE/w0LCWF8fJX9NmZydBXMqHZU0NKpsgGe4lr7IpJ9b627M3/oBUY3Ad+Y7zHd/8DGQ GjgkLhx19fsO02CzF1FxpjTgTWjWKKC7JHHyN7e/6jFB1O3LbcUTK4FcODmhEcDsHvPuDo Si4No4B6aLaN3h6npCfumb1vGrw0PcbsccePq+VstSEXcMYAPpyu7pSkQKzUE26XYwpcYE CG2VtNrXrsRZIoKRABGDhLZ8v7ZU7uoU0/3I/cLDfF/W2ItuI4yrcWAXgsnnDoULa0ibkZ J22cZKUqXigAwAry7RNrjr2RLbg2zawpgxqyZHhQRkdABGrSDbGYJWEXBv0c7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672376360; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ykADqC54JRc/Nz4Axd2VLPikK5spN2qM1LnKZBPUEnE=; b=eLW0QY9AxghEnaTUXWJQpMAd+qqkwkBH28KY7Vddd9TaiyrtsrFJIPAKMRwpou5y1/V9eb sXTqKee1JrfMmk8AVn5FDIEZJNG/iGZDGJW6SiHeFSe7iV/cZquufFPcEiTC4vbxo7H9WJ HGmu0GRzog1pmcQJO+g3JMBmwpuiEt5U9qZS1MTQMwCEncrhI9c/9gb/4G4TsHCNdM/jNU 0zvMY1raHqD0rgznufi55TM1a2EBLFsueHYA8RTHSvybgncm9wtIp3Bj7fkbhtUmGPqNcV eDwS7Yt6oi3GZtTBfTiXtvmTaE8fQatqSgJMBaXukYXEriS0uxYPQCccswOhpA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672376360; a=rsa-sha256; cv=none; b=bDx3rInMEKdoLjp6SktlEbwip6pxe8qPw3vHTCR/ktPnOg2MxAp2wOpI4blA/9CjYGadzM VZuxdFwjxrImofgY2wkm8LdRcl4d3mMKmSqdcJ+7htwmDT1M1Ond//MrS+uTxHaVtDCY/1 sAmL+SWgpw3j/UFLyEUqEsX7tNV7QtX7W8ZctfDw9OUAw8RmTP4d8Ji8CLa2W0zliSfHLU 2GKkeM/nQoxL8SjEiW2CXMADLsPmyslWNwG7U3v/+1kM1AcCLyxaab6m9CCT2NkWQ9AZR5 Pyj8ig4bTXNWqg5/qjXimjFMEHvHWdX5QU/+pLcymVvgstVJf4od/onRl3rTZA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NjtMr33kqzwVq; Fri, 30 Dec 2022 04:59:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BU4xKWt036656; Fri, 30 Dec 2022 04:59:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BU4xKWg036655; Fri, 30 Dec 2022 04:59:20 GMT (envelope-from git) Date: Fri, 30 Dec 2022 04:59:20 GMT Message-Id: <202212300459.2BU4xKWg036655@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 56f9bb542a8e - main - misc/onnx: New port: Open Neural Network eXchange List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 56f9bb542a8e765f7b573b7095de76f1c09211e6 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=56f9bb542a8e765f7b573b7095de76f1c09211e6 commit 56f9bb542a8e765f7b573b7095de76f1c09211e6 Author: Yuri Victorovich AuthorDate: 2022-12-30 04:05:54 +0000 Commit: Yuri Victorovich CommitDate: 2022-12-30 04:59:17 +0000 misc/onnx: New port: Open Neural Network eXchange --- misc/Makefile | 1 + misc/onnx/Makefile | 31 +++++++++++++++++++ misc/onnx/distinfo | 3 ++ misc/onnx/pkg-descr | 12 ++++++++ misc/onnx/pkg-plist | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 136 insertions(+) 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 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