From 74f8858dcd9b2ba314e8a24049ab200ce9befbc8 Mon Sep 17 00:00:00 2001 From: Andreas Fehlner Date: Thu, 30 Mar 2023 06:20:55 +0200 Subject: [PATCH] add copyright and licence information (#5031) * add copyright Signed-off-by: Andreas Fehlner * remove duplicated entry Signed-off-by: Andreas Fehlner * update license Signed-off-by: Andreas Fehlner * update Signed-off-by: Andreas Fehlner * remove duplicated COPYRIGHT Signed-off-by: Andreas Fehlner * update Signed-off-by: Andreas Fehlner * add more files to dep5 Signed-off-by: Andreas Fehlner --------- Signed-off-by: Andreas Fehlner --- .reuse/dep5 | 28 +++++++++++++++++++ docs/docsgen/Makefile | 4 +++ docs/docsgen/make.bat | 4 +++ docs/docsgen/source/conf.py | 4 +++ docs/docsgen/source/expect_onnxruntime.rst | 4 +++ docs/docsgen/source/index.rst | 3 ++ docs/docsgen/source/onnx_sphinx.py | 4 +++ docs/proposals/ArchiveFileFormatProposal.md | 4 +++ docs/proposals/FunctionsProposal.md | 4 +++ docs/proposals/NLPinONNXproposal.md | 4 +++ docs/proposals/ONNXIFIproposal.md | 4 +++ onnx/backend/sample/__init__.py | 2 ++ onnx/backend/sample/ops/__init__.py | 2 ++ onnx/backend/test/case/__init__.py | 2 ++ onnx/backend/test/case/base.py | 2 ++ .../ai_onnx_ml/array_feature_extractor.py | 2 ++ .../test/case/node/ai_onnx_ml/binarizer.py | 2 ++ onnx/backend/test/case/test_case.py | 2 ++ onnx/backend/test/case/utils.py | 2 ++ onnx/backend/test/loader/__init__.py | 2 ++ onnx/backend/test/report/__init__.py | 2 ++ onnx/backend/test/report/base.py | 2 ++ onnx/backend/test/report/coverage.py | 2 ++ onnx/common/array_ref.h | 2 ++ onnx/common/assertions.cc | 2 ++ onnx/common/assertions.h | 2 ++ onnx/common/common.h | 2 ++ onnx/common/file_utils.h | 2 ++ onnx/common/graph_node_list.h | 2 ++ onnx/common/interned_strings.cc | 2 ++ onnx/common/interned_strings.h | 2 ++ onnx/common/ir.h | 2 ++ onnx/common/ir_pb_converter.cc | 2 ++ onnx/common/ir_pb_converter.h | 2 ++ onnx/common/platform_helpers.h | 2 ++ onnx/common/status.cc | 2 ++ onnx/common/status.h | 2 ++ onnx/common/tensor.h | 2 ++ onnx/common/version.h | 2 ++ onnx/defs/attr_proto_util.cc | 2 ++ onnx/defs/attr_proto_util.h | 2 ++ onnx/defs/controlflow/defs.cc | 2 ++ onnx/defs/controlflow/old.cc | 2 ++ onnx/defs/data_propagators.h | 2 ++ onnx/defs/gen_doc.py | 2 ++ .../ops/aionnx_preview_training/__init__.py | 2 ++ .../ops/aionnx_preview_training/_op_list.py | 2 ++ .../_op_run_training.py | 2 ++ .../ops/aionnx_preview_training/op_adagrad.py | 2 ++ .../ops/aionnx_preview_training/op_adam.py | 2 ++ .../aionnx_preview_training/op_momentum.py | 2 ++ .../aionnxml/op_array_feature_extractor.py | 2 ++ onnx/reference/ops/aionnxml/op_binarizer.py | 2 ++ .../ops/aionnxml/op_dict_vectorizer.py | 2 ++ .../ops/aionnxml/op_feature_vectorizer.py | 2 ++ onnx/reference/ops/aionnxml/op_imputer.py | 2 ++ .../ops/aionnxml/op_label_encoder.py | 2 ++ .../ops/aionnxml/op_linear_classifier.py | 2 ++ .../ops/aionnxml/op_linear_regressor.py | 2 ++ onnx/reference/ops/aionnxml/op_normalizer.py | 2 ++ .../ops/aionnxml/op_one_hot_encoder.py | 2 ++ onnx/reference/ops/aionnxml/op_scaler.py | 2 ++ .../ops/aionnxml/op_svm_classifier.py | 2 ++ onnx/reference/ops/aionnxml/op_svm_helper.py | 2 ++ .../ops/aionnxml/op_svm_regressor.py | 2 ++ .../aionnxml/op_tree_ensemble_classifier.py | 2 ++ .../ops/aionnxml/op_tree_ensemble_helper.py | 2 ++ .../aionnxml/op_tree_ensemble_regressor.py | 2 ++ onnx/reference/ops/experimental/_op_list.py | 2 ++ onnx/test/cpp/common_path_test.cc | 2 ++ onnx/test/cpp/data_propagation_test.cc | 2 ++ onnx/test/cpp/function_context_test.cc | 2 ++ onnx/test/cpp/function_get_test.cc | 2 ++ onnx/test/cpp/function_verify_test.cc | 2 ++ onnx/test/cpp/op_reg_test.cc | 2 ++ onnx/test/cpp/parser_test.cc | 2 ++ onnx/test/cpp/schema_registration_test.cc | 2 ++ onnx/test/cpp/shape_inference_test.cc | 2 ++ onnx/test/cpp/test_main.cc | 2 ++ onnx/test/function_test.py | 2 ++ onnx/test/inference_function_test.py | 2 ++ onnx/tools/net_drawer.py | 2 ++ onnx/tools/replace_constants.py | 2 ++ onnx/tools/update_model_dims.py | 2 ++ onnx/version_converter.py | 2 ++ onnx/version_converter/BaseConverter.h | 2 ++ onnx/version_converter/convert.cc | 2 ++ onnx/version_converter/convert.h | 2 ++ tools/protoc-gen-mypy.py | 2 ++ tools/update_doc.bat | 2 ++ tools/update_doc.sh | 2 ++ workflow_scripts/test_model_zoo.py | 2 ++ 92 files changed, 229 insertions(+) diff --git a/.reuse/dep5 b/.reuse/dep5 index f55f5ef4dfd..897f1303f58 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -9,6 +9,18 @@ Source: onnx.ai # Copyright: $YEAR $NAME <$CONTACT> # License: ... +Files: .azure-pipelines/*.yml +COPYRIGHT: Copyright (c) ONNX Project Contributors +License: Apache-2.0 + + +Files: .github/**/*.md +COPYRIGHT: Copyright (c) ONNX Project Contributors +License: Apache-2.0 + +Files: .github/**/*.yml +COPYRIGHT: Copyright (c) ONNX Project Contributors +License: Apache-2.0 Files: onnx/backend/test/data/simple/**/test_data_set_0/*pb COPYRIGHT: Copyright (c) ONNX Project Contributors @@ -44,3 +56,19 @@ License: Apache-2.0 Files: onnx/backend/test/data/pytorch-converted/**/test_data_set_0/*.pb COPYRIGHT: Copyright (c) ONNX Project Contributors License: Apache-2.0 + +Files: onnx/backend/test/data/pytorch-converted/**/*.onnx +COPYRIGHT: Copyright (c) ONNX Project Contributors +License: Apache-2.0 + +Files: onnx/backend/test/data/light/light/*.onnx +COPYRIGHT: Copyright (c) ONNX Project Contributors +License: Apache-2.0 + +Files: onnx/backend/test/data/light/light/*.onnx +COPYRIGHT: Copyright (c) ONNX Project Contributors +License: Apache-2.0 + +Files: onnx/onnx-operators*.proto* +COPYRIGHT: Copyright (c) ONNX Project Contributors +License: Apache-2.0 \ No newline at end of file diff --git a/docs/docsgen/Makefile b/docs/docsgen/Makefile index d0c3cbf1020..00d530d1bef 100644 --- a/docs/docsgen/Makefile +++ b/docs/docsgen/Makefile @@ -1,3 +1,7 @@ +# Copyright (c) Sphinx Project +# +# SPDX-License-Identifier: BSD-2-Clause + # Minimal makefile for Sphinx documentation # diff --git a/docs/docsgen/make.bat b/docs/docsgen/make.bat index dc1312ab09c..ed821270435 100644 --- a/docs/docsgen/make.bat +++ b/docs/docsgen/make.bat @@ -1,3 +1,7 @@ +REM Copyright (c) Sphinx Project +REM +REM SPDX-License-Identifier: BSD-2-Clause + @ECHO OFF pushd %~dp0 diff --git a/docs/docsgen/source/conf.py b/docs/docsgen/source/conf.py index 4ab48526773..7b453d082c5 100644 --- a/docs/docsgen/source/conf.py +++ b/docs/docsgen/source/conf.py @@ -1,3 +1,7 @@ +# Copyright (c) ONNX Project Contributors +# +# SPDX-License-Identifier: Apache-2.0 + # pylint: disable=W0622 # type: ignore import os diff --git a/docs/docsgen/source/expect_onnxruntime.rst b/docs/docsgen/source/expect_onnxruntime.rst index 75b7aec4586..70768d83252 100644 --- a/docs/docsgen/source/expect_onnxruntime.rst +++ b/docs/docsgen/source/expect_onnxruntime.rst @@ -1,3 +1,7 @@ +.. Copyright (c) ONNX Project Contributors +.. +.. SPDX-License-Identifier: Apache-2.0 + .. _l-function-expect: Sample operator test code diff --git a/docs/docsgen/source/index.rst b/docs/docsgen/source/index.rst index c83b1e6bed2..975ec1af2da 100644 --- a/docs/docsgen/source/index.rst +++ b/docs/docsgen/source/index.rst @@ -1,3 +1,6 @@ +.. Copyright (c) ONNX Project Contributors +.. +.. SPDX-License-Identifier: Apache-2.0 .. _l-main-doc-page: diff --git a/docs/docsgen/source/onnx_sphinx.py b/docs/docsgen/source/onnx_sphinx.py index ec8a9dc04bb..a15f6d269c5 100644 --- a/docs/docsgen/source/onnx_sphinx.py +++ b/docs/docsgen/source/onnx_sphinx.py @@ -1,3 +1,7 @@ +# Copyright (c) ONNX Project Contributors +# +# SPDX-License-Identifier: Apache-2.0 + # pylint: disable=C0415,R0912,R0913,R0914,R0915 """ Automates the generation of ONNX operators. diff --git a/docs/proposals/ArchiveFileFormatProposal.md b/docs/proposals/ArchiveFileFormatProposal.md index 1a731b85d2c..1ac4fae0d15 100644 --- a/docs/proposals/ArchiveFileFormatProposal.md +++ b/docs/proposals/ArchiveFileFormatProposal.md @@ -1,3 +1,7 @@ + + # ONNX File Format Proposal diff --git a/docs/proposals/FunctionsProposal.md b/docs/proposals/FunctionsProposal.md index 05565650902..37ad3c8be24 100644 --- a/docs/proposals/FunctionsProposal.md +++ b/docs/proposals/FunctionsProposal.md @@ -1,3 +1,7 @@ + + ## Proposal Adding Function into ONNX diff --git a/docs/proposals/NLPinONNXproposal.md b/docs/proposals/NLPinONNXproposal.md index 663aa5a96d8..e00a7760da9 100644 --- a/docs/proposals/NLPinONNXproposal.md +++ b/docs/proposals/NLPinONNXproposal.md @@ -1,3 +1,7 @@ + + ## Background diff --git a/docs/proposals/ONNXIFIproposal.md b/docs/proposals/ONNXIFIproposal.md index 6980f854e27..693e077c2b0 100644 --- a/docs/proposals/ONNXIFIproposal.md +++ b/docs/proposals/ONNXIFIproposal.md @@ -1,3 +1,7 @@ + + # ONNX Interface for Framework Integration: API Proposal diff --git a/onnx/backend/sample/__init__.py b/onnx/backend/sample/__init__.py index 9881313609a..e790f2403b4 100644 --- a/onnx/backend/sample/__init__.py +++ b/onnx/backend/sample/__init__.py @@ -1 +1,3 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 diff --git a/onnx/backend/sample/ops/__init__.py b/onnx/backend/sample/ops/__init__.py index 2038ec5f91c..71196a1cbf6 100644 --- a/onnx/backend/sample/ops/__init__.py +++ b/onnx/backend/sample/ops/__init__.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 import importlib diff --git a/onnx/backend/test/case/__init__.py b/onnx/backend/test/case/__init__.py index d9664900d81..7e3db1f634d 100644 --- a/onnx/backend/test/case/__init__.py +++ b/onnx/backend/test/case/__init__.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 import sys diff --git a/onnx/backend/test/case/base.py b/onnx/backend/test/case/base.py index 2652d971c61..86620d829c3 100644 --- a/onnx/backend/test/case/base.py +++ b/onnx/backend/test/case/base.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 import inspect diff --git a/onnx/backend/test/case/node/ai_onnx_ml/array_feature_extractor.py b/onnx/backend/test/case/node/ai_onnx_ml/array_feature_extractor.py index 281b59dedde..1268d1784ed 100644 --- a/onnx/backend/test/case/node/ai_onnx_ml/array_feature_extractor.py +++ b/onnx/backend/test/case/node/ai_onnx_ml/array_feature_extractor.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 import numpy as np diff --git a/onnx/backend/test/case/node/ai_onnx_ml/binarizer.py b/onnx/backend/test/case/node/ai_onnx_ml/binarizer.py index b9383d85ba4..f1d13c4f3e3 100644 --- a/onnx/backend/test/case/node/ai_onnx_ml/binarizer.py +++ b/onnx/backend/test/case/node/ai_onnx_ml/binarizer.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 import numpy as np diff --git a/onnx/backend/test/case/test_case.py b/onnx/backend/test/case/test_case.py index 5c742d5578c..11733172a79 100644 --- a/onnx/backend/test/case/test_case.py +++ b/onnx/backend/test/case/test_case.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 from dataclasses import dataclass diff --git a/onnx/backend/test/case/utils.py b/onnx/backend/test/case/utils.py index 745fff332e8..95bbcf6666e 100644 --- a/onnx/backend/test/case/utils.py +++ b/onnx/backend/test/case/utils.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 import importlib diff --git a/onnx/backend/test/loader/__init__.py b/onnx/backend/test/loader/__init__.py index dc3c7681972..090eba4ff2e 100644 --- a/onnx/backend/test/loader/__init__.py +++ b/onnx/backend/test/loader/__init__.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 import json diff --git a/onnx/backend/test/report/__init__.py b/onnx/backend/test/report/__init__.py index 860a198115d..be4b1c7c52c 100644 --- a/onnx/backend/test/report/__init__.py +++ b/onnx/backend/test/report/__init__.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 from typing import Any, Dict, Sequence diff --git a/onnx/backend/test/report/base.py b/onnx/backend/test/report/base.py index a350a936e85..db6df91f964 100644 --- a/onnx/backend/test/report/base.py +++ b/onnx/backend/test/report/base.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 diff --git a/onnx/backend/test/report/coverage.py b/onnx/backend/test/report/coverage.py index fda0a5931ba..4fe74f5e401 100644 --- a/onnx/backend/test/report/coverage.py +++ b/onnx/backend/test/report/coverage.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 import csv diff --git a/onnx/common/array_ref.h b/onnx/common/array_ref.h index 0bb997735ab..9acc29a92de 100644 --- a/onnx/common/array_ref.h +++ b/onnx/common/array_ref.h @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/common/assertions.cc b/onnx/common/assertions.cc index 6443f980eab..a21e55daf1d 100644 --- a/onnx/common/assertions.cc +++ b/onnx/common/assertions.cc @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/common/assertions.h b/onnx/common/assertions.h index 358e3559a9d..627f50075f0 100644 --- a/onnx/common/assertions.h +++ b/onnx/common/assertions.h @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/common/common.h b/onnx/common/common.h index 90ad255dbe0..b81805d1643 100644 --- a/onnx/common/common.h +++ b/onnx/common/common.h @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/common/file_utils.h b/onnx/common/file_utils.h index 82e09093eec..f84b3ea268d 100644 --- a/onnx/common/file_utils.h +++ b/onnx/common/file_utils.h @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/common/graph_node_list.h b/onnx/common/graph_node_list.h index ea53ded98e5..765f2e40819 100644 --- a/onnx/common/graph_node_list.h +++ b/onnx/common/graph_node_list.h @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/common/interned_strings.cc b/onnx/common/interned_strings.cc index 4e7ddf35133..48593b22e37 100644 --- a/onnx/common/interned_strings.cc +++ b/onnx/common/interned_strings.cc @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/common/interned_strings.h b/onnx/common/interned_strings.h index 4026eee84fd..9ee72df780d 100644 --- a/onnx/common/interned_strings.h +++ b/onnx/common/interned_strings.h @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/common/ir.h b/onnx/common/ir.h index 45c3c915925..817e5037bc0 100644 --- a/onnx/common/ir.h +++ b/onnx/common/ir.h @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/common/ir_pb_converter.cc b/onnx/common/ir_pb_converter.cc index 99ab3102643..5173a943d25 100644 --- a/onnx/common/ir_pb_converter.cc +++ b/onnx/common/ir_pb_converter.cc @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/common/ir_pb_converter.h b/onnx/common/ir_pb_converter.h index 5767008ece8..1dccd823005 100644 --- a/onnx/common/ir_pb_converter.h +++ b/onnx/common/ir_pb_converter.h @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/common/platform_helpers.h b/onnx/common/platform_helpers.h index 5c679b2c291..ed65c0894f9 100644 --- a/onnx/common/platform_helpers.h +++ b/onnx/common/platform_helpers.h @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/common/status.cc b/onnx/common/status.cc index dfa248e733e..e253c0d27c6 100644 --- a/onnx/common/status.cc +++ b/onnx/common/status.cc @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/common/status.h b/onnx/common/status.h index 9512e8be83e..bfdcb4f423b 100644 --- a/onnx/common/status.h +++ b/onnx/common/status.h @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/common/tensor.h b/onnx/common/tensor.h index d45ef2549d0..d5d154b4481 100644 --- a/onnx/common/tensor.h +++ b/onnx/common/tensor.h @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/common/version.h b/onnx/common/version.h index 6a90be225b4..6ccd5af0894 100644 --- a/onnx/common/version.h +++ b/onnx/common/version.h @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/defs/attr_proto_util.cc b/onnx/defs/attr_proto_util.cc index d72d619734a..d3aebba9cec 100644 --- a/onnx/defs/attr_proto_util.cc +++ b/onnx/defs/attr_proto_util.cc @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/defs/attr_proto_util.h b/onnx/defs/attr_proto_util.h index 79540c1c6a0..1a99800a533 100644 --- a/onnx/defs/attr_proto_util.h +++ b/onnx/defs/attr_proto_util.h @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/defs/controlflow/defs.cc b/onnx/defs/controlflow/defs.cc index 4a1edb88a13..926cc7e3f15 100644 --- a/onnx/defs/controlflow/defs.cc +++ b/onnx/defs/controlflow/defs.cc @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/defs/controlflow/old.cc b/onnx/defs/controlflow/old.cc index d25b417da53..94f4cc33644 100644 --- a/onnx/defs/controlflow/old.cc +++ b/onnx/defs/controlflow/old.cc @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/defs/data_propagators.h b/onnx/defs/data_propagators.h index b28f4fdd304..13a0dbad26b 100644 --- a/onnx/defs/data_propagators.h +++ b/onnx/defs/data_propagators.h @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/defs/gen_doc.py b/onnx/defs/gen_doc.py index 66418d271e4..2a7baa8a666 100644 --- a/onnx/defs/gen_doc.py +++ b/onnx/defs/gen_doc.py @@ -1,5 +1,7 @@ #!/usr/bin/env python +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 import os diff --git a/onnx/reference/ops/aionnx_preview_training/__init__.py b/onnx/reference/ops/aionnx_preview_training/__init__.py index 0f093582d4e..ea6e565362d 100644 --- a/onnx/reference/ops/aionnx_preview_training/__init__.py +++ b/onnx/reference/ops/aionnx_preview_training/__init__.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 from onnx.reference.ops.aionnx_preview_training._op_list import load_op diff --git a/onnx/reference/ops/aionnx_preview_training/_op_list.py b/onnx/reference/ops/aionnx_preview_training/_op_list.py index 9e7972ffe92..0e8fa187b1c 100644 --- a/onnx/reference/ops/aionnx_preview_training/_op_list.py +++ b/onnx/reference/ops/aionnx_preview_training/_op_list.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 # pylint: disable=C0415,R0912,W0611,W0603 diff --git a/onnx/reference/ops/aionnx_preview_training/_op_run_training.py b/onnx/reference/ops/aionnx_preview_training/_op_run_training.py index af7cab05896..624f28d5120 100644 --- a/onnx/reference/ops/aionnx_preview_training/_op_run_training.py +++ b/onnx/reference/ops/aionnx_preview_training/_op_run_training.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 # pylint: disable=R0913,W0221 diff --git a/onnx/reference/ops/aionnx_preview_training/op_adagrad.py b/onnx/reference/ops/aionnx_preview_training/op_adagrad.py index e0179c92aea..2a8122eb008 100644 --- a/onnx/reference/ops/aionnx_preview_training/op_adagrad.py +++ b/onnx/reference/ops/aionnx_preview_training/op_adagrad.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 # pylint: disable=R0913,W0221 diff --git a/onnx/reference/ops/aionnx_preview_training/op_adam.py b/onnx/reference/ops/aionnx_preview_training/op_adam.py index 88b9ecaa92a..0a391de56fe 100644 --- a/onnx/reference/ops/aionnx_preview_training/op_adam.py +++ b/onnx/reference/ops/aionnx_preview_training/op_adam.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 # pylint: disable=R0913,R0914,W0221 diff --git a/onnx/reference/ops/aionnx_preview_training/op_momentum.py b/onnx/reference/ops/aionnx_preview_training/op_momentum.py index f5b7108203e..42891300194 100644 --- a/onnx/reference/ops/aionnx_preview_training/op_momentum.py +++ b/onnx/reference/ops/aionnx_preview_training/op_momentum.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 # pylint: disable=R0913,R0914,W0221 diff --git a/onnx/reference/ops/aionnxml/op_array_feature_extractor.py b/onnx/reference/ops/aionnxml/op_array_feature_extractor.py index 9fcb9c82e00..caf6e48f16d 100644 --- a/onnx/reference/ops/aionnxml/op_array_feature_extractor.py +++ b/onnx/reference/ops/aionnxml/op_array_feature_extractor.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 # pylint: disable=R0913,R0914,W0221 diff --git a/onnx/reference/ops/aionnxml/op_binarizer.py b/onnx/reference/ops/aionnxml/op_binarizer.py index 92d511d1a31..0b69a7c7751 100644 --- a/onnx/reference/ops/aionnxml/op_binarizer.py +++ b/onnx/reference/ops/aionnxml/op_binarizer.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 # pylint: disable=R0913,R0914,W0221 diff --git a/onnx/reference/ops/aionnxml/op_dict_vectorizer.py b/onnx/reference/ops/aionnxml/op_dict_vectorizer.py index dfadf1ec1fc..886ac17f583 100644 --- a/onnx/reference/ops/aionnxml/op_dict_vectorizer.py +++ b/onnx/reference/ops/aionnxml/op_dict_vectorizer.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 # pylint: disable=R0913,R0914,W0221 diff --git a/onnx/reference/ops/aionnxml/op_feature_vectorizer.py b/onnx/reference/ops/aionnxml/op_feature_vectorizer.py index b84f6c76d9b..e9929eb760b 100644 --- a/onnx/reference/ops/aionnxml/op_feature_vectorizer.py +++ b/onnx/reference/ops/aionnxml/op_feature_vectorizer.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 # pylint: disable=R0913,R0914,W0221 diff --git a/onnx/reference/ops/aionnxml/op_imputer.py b/onnx/reference/ops/aionnxml/op_imputer.py index ea973487fcc..8e3190f07a9 100644 --- a/onnx/reference/ops/aionnxml/op_imputer.py +++ b/onnx/reference/ops/aionnxml/op_imputer.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 # pylint: disable=R0913,R0914,W0221 diff --git a/onnx/reference/ops/aionnxml/op_label_encoder.py b/onnx/reference/ops/aionnxml/op_label_encoder.py index 680bdb5995a..af246c8741b 100644 --- a/onnx/reference/ops/aionnxml/op_label_encoder.py +++ b/onnx/reference/ops/aionnxml/op_label_encoder.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 # pylint: disable=R0913,R0914,W0221 diff --git a/onnx/reference/ops/aionnxml/op_linear_classifier.py b/onnx/reference/ops/aionnxml/op_linear_classifier.py index f3f31bf6582..687e122859f 100644 --- a/onnx/reference/ops/aionnxml/op_linear_classifier.py +++ b/onnx/reference/ops/aionnxml/op_linear_classifier.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 # pylint: disable=R0912,R0913,R0914,W0221 diff --git a/onnx/reference/ops/aionnxml/op_linear_regressor.py b/onnx/reference/ops/aionnxml/op_linear_regressor.py index 701acc57413..339c6b85553 100644 --- a/onnx/reference/ops/aionnxml/op_linear_regressor.py +++ b/onnx/reference/ops/aionnxml/op_linear_regressor.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 # pylint: disable=R0913,R0914,W0221 diff --git a/onnx/reference/ops/aionnxml/op_normalizer.py b/onnx/reference/ops/aionnxml/op_normalizer.py index b535f7279d5..fdd4f9040eb 100644 --- a/onnx/reference/ops/aionnxml/op_normalizer.py +++ b/onnx/reference/ops/aionnxml/op_normalizer.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 # pylint: disable=R0913,R0914,W0221 diff --git a/onnx/reference/ops/aionnxml/op_one_hot_encoder.py b/onnx/reference/ops/aionnxml/op_one_hot_encoder.py index ccb02c463a2..1368dd061b8 100644 --- a/onnx/reference/ops/aionnxml/op_one_hot_encoder.py +++ b/onnx/reference/ops/aionnxml/op_one_hot_encoder.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 # pylint: disable=R0912,R0913,R0914,W0221 diff --git a/onnx/reference/ops/aionnxml/op_scaler.py b/onnx/reference/ops/aionnxml/op_scaler.py index 0fdb94d7800..2fc2c8a1eeb 100644 --- a/onnx/reference/ops/aionnxml/op_scaler.py +++ b/onnx/reference/ops/aionnxml/op_scaler.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 # pylint: disable=R0913,R0914,W0221 diff --git a/onnx/reference/ops/aionnxml/op_svm_classifier.py b/onnx/reference/ops/aionnxml/op_svm_classifier.py index 110e92369b3..d5d0dd7a301 100644 --- a/onnx/reference/ops/aionnxml/op_svm_classifier.py +++ b/onnx/reference/ops/aionnxml/op_svm_classifier.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 # pylint: disable=R0911,R0912,R0913,R0914,W0221 diff --git a/onnx/reference/ops/aionnxml/op_svm_helper.py b/onnx/reference/ops/aionnxml/op_svm_helper.py index 84c58dc9c49..0248f676ce5 100644 --- a/onnx/reference/ops/aionnxml/op_svm_helper.py +++ b/onnx/reference/ops/aionnxml/op_svm_helper.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 # pylint: disable=R0911,R0913,R0914,W0221 diff --git a/onnx/reference/ops/aionnxml/op_svm_regressor.py b/onnx/reference/ops/aionnxml/op_svm_regressor.py index 9e503972361..84658b8b622 100644 --- a/onnx/reference/ops/aionnxml/op_svm_regressor.py +++ b/onnx/reference/ops/aionnxml/op_svm_regressor.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 # pylint: disable=R0912,R0913,R0914,W0221 diff --git a/onnx/reference/ops/aionnxml/op_tree_ensemble_classifier.py b/onnx/reference/ops/aionnxml/op_tree_ensemble_classifier.py index d8257e4bed8..73c12d7469a 100644 --- a/onnx/reference/ops/aionnxml/op_tree_ensemble_classifier.py +++ b/onnx/reference/ops/aionnxml/op_tree_ensemble_classifier.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 # pylint: disable=R0912,R0913,R0914,W0221 diff --git a/onnx/reference/ops/aionnxml/op_tree_ensemble_helper.py b/onnx/reference/ops/aionnxml/op_tree_ensemble_helper.py index ec83066fbc3..5f6ac2b912d 100644 --- a/onnx/reference/ops/aionnxml/op_tree_ensemble_helper.py +++ b/onnx/reference/ops/aionnxml/op_tree_ensemble_helper.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 # pylint: disable=R0911,R0913,R0914,W0221 diff --git a/onnx/reference/ops/aionnxml/op_tree_ensemble_regressor.py b/onnx/reference/ops/aionnxml/op_tree_ensemble_regressor.py index d87b65c7ad2..b3d54690262 100644 --- a/onnx/reference/ops/aionnxml/op_tree_ensemble_regressor.py +++ b/onnx/reference/ops/aionnxml/op_tree_ensemble_regressor.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 # pylint: disable=R0912,R0913,R0914,W0221 diff --git a/onnx/reference/ops/experimental/_op_list.py b/onnx/reference/ops/experimental/_op_list.py index 9386498598c..2f3b12eb641 100644 --- a/onnx/reference/ops/experimental/_op_list.py +++ b/onnx/reference/ops/experimental/_op_list.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 # pylint: disable=C0415,R0912,W0611,W0603 diff --git a/onnx/test/cpp/common_path_test.cc b/onnx/test/cpp/common_path_test.cc index f4e8fb6a2f1..2029825a0e9 100644 --- a/onnx/test/cpp/common_path_test.cc +++ b/onnx/test/cpp/common_path_test.cc @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/test/cpp/data_propagation_test.cc b/onnx/test/cpp/data_propagation_test.cc index 1611799e26b..d566f6eafe0 100644 --- a/onnx/test/cpp/data_propagation_test.cc +++ b/onnx/test/cpp/data_propagation_test.cc @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/test/cpp/function_context_test.cc b/onnx/test/cpp/function_context_test.cc index 6c7e24ada2d..18601eecd01 100644 --- a/onnx/test/cpp/function_context_test.cc +++ b/onnx/test/cpp/function_context_test.cc @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/test/cpp/function_get_test.cc b/onnx/test/cpp/function_get_test.cc index bb0a83efdcb..bebf4c787e5 100644 --- a/onnx/test/cpp/function_get_test.cc +++ b/onnx/test/cpp/function_get_test.cc @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/test/cpp/function_verify_test.cc b/onnx/test/cpp/function_verify_test.cc index b4f9c3a6d1f..9c25949a55f 100644 --- a/onnx/test/cpp/function_verify_test.cc +++ b/onnx/test/cpp/function_verify_test.cc @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/test/cpp/op_reg_test.cc b/onnx/test/cpp/op_reg_test.cc index 98deb35e15a..691dd66308c 100644 --- a/onnx/test/cpp/op_reg_test.cc +++ b/onnx/test/cpp/op_reg_test.cc @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/test/cpp/parser_test.cc b/onnx/test/cpp/parser_test.cc index a3fd4af7b5f..7a89989e159 100644 --- a/onnx/test/cpp/parser_test.cc +++ b/onnx/test/cpp/parser_test.cc @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/test/cpp/schema_registration_test.cc b/onnx/test/cpp/schema_registration_test.cc index bd8fee2ed86..19821294ceb 100644 --- a/onnx/test/cpp/schema_registration_test.cc +++ b/onnx/test/cpp/schema_registration_test.cc @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/test/cpp/shape_inference_test.cc b/onnx/test/cpp/shape_inference_test.cc index a40a1795d06..ad6f7628b7d 100644 --- a/onnx/test/cpp/shape_inference_test.cc +++ b/onnx/test/cpp/shape_inference_test.cc @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/test/cpp/test_main.cc b/onnx/test/cpp/test_main.cc index 24a447b8ce8..821ee12c53c 100644 --- a/onnx/test/cpp/test_main.cc +++ b/onnx/test/cpp/test_main.cc @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/test/function_test.py b/onnx/test/function_test.py index 24d36351e52..2dfff783664 100644 --- a/onnx/test/function_test.py +++ b/onnx/test/function_test.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 + # Copyright (c) ONNX Project Contributors import unittest diff --git a/onnx/test/inference_function_test.py b/onnx/test/inference_function_test.py index 66a404a3915..a1a8ba8d34c 100644 --- a/onnx/test/inference_function_test.py +++ b/onnx/test/inference_function_test.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 + # Copyright (c) ONNX Project Contributors import unittest diff --git a/onnx/tools/net_drawer.py b/onnx/tools/net_drawer.py index b60f793ad00..57fc3e730f0 100644 --- a/onnx/tools/net_drawer.py +++ b/onnx/tools/net_drawer.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 # A library and utility for drawing ONNX nets. Most of this implementation has # been borrowed from the caffe2 implementation diff --git a/onnx/tools/replace_constants.py b/onnx/tools/replace_constants.py index 847e4aeb31f..b2202f89f0b 100644 --- a/onnx/tools/replace_constants.py +++ b/onnx/tools/replace_constants.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 # pylint: disable=too-many-statements,too-many-branches from typing import List, Optional, Union diff --git a/onnx/tools/update_model_dims.py b/onnx/tools/update_model_dims.py index cb88f71c24c..04904b81e41 100644 --- a/onnx/tools/update_model_dims.py +++ b/onnx/tools/update_model_dims.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 from typing import Any, Dict, List, Set diff --git a/onnx/version_converter.py b/onnx/version_converter.py index ce1c518ae03..7538cda2118 100644 --- a/onnx/version_converter.py +++ b/onnx/version_converter.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 """onnx version converter diff --git a/onnx/version_converter/BaseConverter.h b/onnx/version_converter/BaseConverter.h index de219ccf7ed..e45d7a02fa6 100644 --- a/onnx/version_converter/BaseConverter.h +++ b/onnx/version_converter/BaseConverter.h @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/version_converter/convert.cc b/onnx/version_converter/convert.cc index a641a26fdfd..e39fd3649c1 100644 --- a/onnx/version_converter/convert.cc +++ b/onnx/version_converter/convert.cc @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/onnx/version_converter/convert.h b/onnx/version_converter/convert.h index 7371b1982c2..6afeb8d1755 100644 --- a/onnx/version_converter/convert.h +++ b/onnx/version_converter/convert.h @@ -1,3 +1,5 @@ +// Copyright (c) ONNX Project Contributors + /* * SPDX-License-Identifier: Apache-2.0 */ diff --git a/tools/protoc-gen-mypy.py b/tools/protoc-gen-mypy.py index 0cd699da7c8..e9293b8a7c1 100755 --- a/tools/protoc-gen-mypy.py +++ b/tools/protoc-gen-mypy.py @@ -1,5 +1,7 @@ #!/usr/bin/env python +# Copyright (c) ONNX Project Contributors + # Copyright (c) ONNX Project Contributors # # SPDX-License-Identifier: Apache-2.0 diff --git a/tools/update_doc.bat b/tools/update_doc.bat index 82913a0578b..df0b792add7 100644 --- a/tools/update_doc.bat +++ b/tools/update_doc.bat @@ -1,3 +1,5 @@ +REM Copyright (c) ONNX Project Contributors + :: SPDX-License-Identifier: Apache-2.0 :: Run this script from ONNX root directory under Anaconda. diff --git a/tools/update_doc.sh b/tools/update_doc.sh index ff177420c5b..0c140e0c946 100755 --- a/tools/update_doc.sh +++ b/tools/update_doc.sh @@ -1,5 +1,7 @@ #!/bin/bash +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 diff --git a/workflow_scripts/test_model_zoo.py b/workflow_scripts/test_model_zoo.py index ea17906a0a9..f6ab3f392c4 100644 --- a/workflow_scripts/test_model_zoo.py +++ b/workflow_scripts/test_model_zoo.py @@ -1,3 +1,5 @@ +# Copyright (c) ONNX Project Contributors + # SPDX-License-Identifier: Apache-2.0 import argparse import gc