From 5b6902e31c1bf61859ec03e77750407dbb011e44 Mon Sep 17 00:00:00 2001 From: Sean Silva Date: Wed, 29 Sep 2021 16:03:40 +0000 Subject: [PATCH] Dual license the torch-mlir project. This commit (with approval from all contributors) dual licenses the torch-mlir project under both the standard LLVM license and the standard PyTorch license. This will facilitate moving code between torch-mlir and the two upstream projects. The standard file comment is now: ``` // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // Also available under a BSD-style license. See LICENSE. ``` See `LICENSE` in the project root for the terms of both licenses. --- LICENSE | 49 +++++++++++++- LICENSE.pytorch | 65 ------------------- build_tools/build_standalone.sh | 7 +- .../basic_mt.py | 7 +- .../torchscript_e2e_heavydep_tests/main.py | 7 +- e2e_testing/torchscript/basic.py | 7 +- e2e_testing/torchscript/batchnorm.py | 7 +- e2e_testing/torchscript/conv.py | 7 +- e2e_testing/torchscript/elementwise.py | 7 +- e2e_testing/torchscript/main.py | 7 +- e2e_testing/torchscript/mlp.py | 7 +- e2e_testing/torchscript/quantized_models.py | 7 +- e2e_testing/torchscript/reduction.py | 7 +- e2e_testing/torchscript/vision_models.py | 7 +- e2e_testing/torchscript/xfail_sets.py | 7 +- examples/lazytensor/builder.py | 1 + examples/lazytensor_tanh.py | 1 + examples/resnet_inference.ipynb | 3 +- examples/torchfx/builder.py | 1 + examples/torchfx/loc.py | 1 + examples/torchfx_add_tanh_sigmoid.py | 1 + examples/torchscript_resnet18_e2e.py | 7 +- examples/utils/annotator.py | 1 + examples/utils/torch_mlir_types.py | 1 + include/torch-mlir-c/TorchTypes.h | 1 + include/torch-mlir/Conversion/Passes.h | 1 + include/torch-mlir/Conversion/Passes.td | 1 + .../Conversion/TorchToLinalg/TorchToLinalg.h | 1 + .../Conversion/TorchToSCF/TorchToSCF.h | 1 + .../Conversion/TorchToStd/TorchToStd.h | 1 + .../Dialect/Torch/IR/GeneratedAtenOps.td | 2 +- .../Dialect/Torch/IR/GeneratedPrimOps.td | 2 +- .../Dialect/Torch/IR/GeneratedQuantizedOps.td | 2 +- .../torch-mlir/Dialect/Torch/IR/TorchBase.td | 1 + .../Dialect/Torch/IR/TorchDialect.h | 1 + .../torch-mlir/Dialect/Torch/IR/TorchOps.h | 1 + .../torch-mlir/Dialect/Torch/IR/TorchOps.td | 1 + .../torch-mlir/Dialect/Torch/IR/TorchTraits.h | 1 + .../torch-mlir/Dialect/Torch/IR/TorchTypes.h | 1 + .../torch-mlir/Dialect/Torch/IR/TorchTypes.td | 1 + .../Dialect/Torch/Transforms/Passes.h | 1 + .../Dialect/Torch/Transforms/Passes.td | 1 + .../TorchConversion/IR/TorchConversionBase.td | 1 + .../IR/TorchConversionDialect.h | 1 + .../TorchConversion/IR/TorchConversionOps.h | 1 + .../TorchConversion/IR/TorchConversionOps.td | 1 + .../Transforms/BackendTypeConversion.h | 1 + .../TorchConversion/Transforms/Passes.h | 1 + .../TorchConversion/Transforms/Passes.td | 1 + include/torch-mlir/InitAll.h | 1 + include/torch-mlir/RefBackend/Passes.h | 1 + include/torch-mlir/RefBackend/Passes.td | 1 + lib/CAPI/Dialects.cpp | 1 + lib/CAPI/Registration.cpp | 1 + lib/CAPI/TorchTypes.cpp | 1 + lib/Conversion/PassDetail.h | 1 + lib/Conversion/Passes.cpp | 1 + .../TorchToLinalg/TorchToLinalg.cpp | 1 + lib/Conversion/TorchToSCF/TorchToSCF.cpp | 1 + lib/Conversion/TorchToStd/TorchToStd.cpp | 1 + lib/Dialect/Torch/IR/TorchDialect.cpp | 1 + lib/Dialect/Torch/IR/TorchOps.cpp | 1 + lib/Dialect/Torch/IR/TorchTypes.cpp | 1 + .../Transforms/AdjustCallingConventions.cpp | 1 + .../Torch/Transforms/GlobalizeObjectGraph.cpp | 1 + .../Torch/Transforms/InlineGlobalSlots.cpp | 1 + .../Transforms/MaximizeValueSemantics.cpp | 1 + lib/Dialect/Torch/Transforms/PassDetail.h | 1 + lib/Dialect/Torch/Transforms/Passes.cpp | 1 + .../PrepareForGlobalizeObjectGraph.cpp | 1 + .../Torch/Transforms/ReduceOpVariants.cpp | 1 + .../Torch/Transforms/RefinePublicReturn.cpp | 1 + lib/Dialect/Torch/Transforms/RefineTypes.cpp | 1 + .../IR/TorchConversionDialect.cpp | 1 + .../TorchConversion/IR/TorchConversionOps.cpp | 1 + .../Transforms/BackendTypeConversion.cpp | 1 + .../TorchConversion/Transforms/PassDetail.h | 1 + .../TorchConversion/Transforms/Passes.cpp | 1 + .../VerifyInvariantsBeforeBackendLowering.cpp | 1 + .../VerifyLinalgOnTensorsBackendContract.cpp | 1 + lib/InitAll.cpp | 1 + lib/RefBackend/PassDetail.h | 1 + lib/RefBackend/RefBackend.cpp | 1 + python/TorchMLIRModule.cpp | 1 + python/test/annotations-sugar.py | 7 +- python/test/lit.cfg.py | 7 +- python/test/lit.site.cfg.py.in | 7 +- python/test/torchscript_e2e_test/basic.py | 7 +- .../compilation_failure.py | 7 +- .../torchscript_e2e_test/error_reports.py | 7 +- .../torchscript_e2e_test/non_tensor_values.py | 7 +- .../torchscript_e2e_test/runtime_failure.py | 7 +- python/test/torchscript_e2e_test/submodule.py | 7 +- python/torch_mlir/dialects/TorchBinding.td | 1 + python/torch_mlir/dialects/torch/__init__.py | 7 +- .../torch/importer/jit_ir/__init__.py | 7 +- .../jit_ir/build_tools/torch_ods_gen.py | 10 +-- .../importer/jit_ir/csrc/class_annotator.cpp | 6 +- .../importer/jit_ir/csrc/class_annotator.h | 6 +- .../jit_ir/csrc/function_importer.cpp | 6 +- .../importer/jit_ir/csrc/function_importer.h | 6 +- .../jit_ir/csrc/get_registered_ops.cpp | 6 +- .../importer/jit_ir/csrc/get_registered_ops.h | 6 +- .../jit_ir/csrc/init_python_bindings.cpp | 6 +- .../importer/jit_ir/csrc/ivalue_importer.cpp | 6 +- .../importer/jit_ir/csrc/ivalue_importer.h | 6 +- .../torch/importer/jit_ir/csrc/mlir_utils.h | 6 +- .../importer/jit_ir/csrc/module_builder.cpp | 6 +- .../importer/jit_ir/csrc/module_builder.h | 6 +- .../importer/jit_ir/csrc/node_importer.cpp | 6 +- .../importer/jit_ir/csrc/node_importer.h | 6 +- .../torch/importer/jit_ir/csrc/pybind.h | 6 +- .../jit_ir/csrc/torch_to_mlir_utils.cpp | 6 +- .../jit_ir/csrc/torch_to_mlir_utils.h | 6 +- .../jit_ir/torchscript_annotations.py | 7 +- .../linalg_on_tensors_backends/abc.py | 7 +- .../linalg_on_tensors_backends/refbackend.py | 7 +- .../torchscript/annotations.py | 7 +- .../torchscript/configs/__init__.py | 7 +- .../configs/linalg_on_tensors_backend.py | 7 +- .../torchscript/configs/native_torch.py | 7 +- .../torchscript/configs/torchscript.py | 7 +- .../torchscript/framework.py | 7 +- .../torchscript/registry.py | 7 +- .../torchscript/reporting.py | 7 +- test/lit.cfg.py | 7 +- .../torch-mlir-lsp-server.cpp | 1 + tools/torch-mlir-opt/torch-mlir-opt.cpp | 1 + 128 files changed, 340 insertions(+), 221 deletions(-) delete mode 100644 LICENSE.pytorch diff --git a/LICENSE b/LICENSE index d7e77e267..8112fc2d1 100644 --- a/LICENSE +++ b/LICENSE @@ -1,7 +1,16 @@ ============================================================================== -The LLVM Project is under the Apache License v2.0 with LLVM Exceptions: -As an incubator project with ambition to become part of the LLVM Project, -CIRCT is under the same license. +Dual License +============================================================================== + +The torch-mlir project is dual licensed under both the standard LLVM Project +license of Apache License v2.0 with LLVM Exceptions and a BSD-style license from +PyTorch. As a user of this code you may choose to use it under either license. +As a contributor, you agree to allow your code to be used under both. + +Full text of the relevant licenses is included below. + +============================================================================== +Standard LLVM Project License ============================================================================== Apache License Version 2.0, January 2004 @@ -233,3 +242,37 @@ mechanisms: which apply to that software, or 2) It will contain specific license and restriction terms at the top of every file. + +============================================================================== +BSD-style License +============================================================================== + +Copyright (c) 2020 LLVM Foundation. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +3. Neither the names of Facebook, Deepmind Technologies, NYU, NEC Laboratories America + and IDIAP Research Institute nor the names of its contributors may be + used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. diff --git a/LICENSE.pytorch b/LICENSE.pytorch deleted file mode 100644 index b6c3eaad6..000000000 --- a/LICENSE.pytorch +++ /dev/null @@ -1,65 +0,0 @@ -In order to facilitate future incorporation in pytorch, the code in this -directory (frontends/pytorch) is provided under the below license. - -Copyright (c) 2020 LLVM Foundation. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -3. Neither the names of Facebook, Deepmind Technologies, NYU, NEC Laboratories America - and IDIAP Research Institute nor the names of its contributors may be - used to endorse or promote products derived from this software without - specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE -LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. - -The design of this code is highly inspired by the design of the xla device for -pytorch (git@github.com:pytorch/xla.git). The license for pytorch/xla is: - -Copyright (c) 2018 Google Inc. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -3. Neither the names of Facebook, Deepmind Technologies, NYU, NEC Laboratories America - and IDIAP Research Institute nor the names of its contributors may be - used to endorse or promote products derived from this software without - specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE -LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. diff --git a/build_tools/build_standalone.sh b/build_tools/build_standalone.sh index 5351eb1a0..a122793c9 100755 --- a/build_tools/build_standalone.sh +++ b/build_tools/build_standalone.sh @@ -1,8 +1,9 @@ #!/bin/bash -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. # Simple script that does a CMake configure of this project as an external # LLVM project so it can be tested in isolation to larger assemblies. diff --git a/build_tools/torchscript_e2e_heavydep_tests/basic_mt.py b/build_tools/torchscript_e2e_heavydep_tests/basic_mt.py index fd478409d..ad02c42b0 100644 --- a/build_tools/torchscript_e2e_heavydep_tests/basic_mt.py +++ b/build_tools/torchscript_e2e_heavydep_tests/basic_mt.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. # Basic machine translation (MT) program. # diff --git a/build_tools/torchscript_e2e_heavydep_tests/main.py b/build_tools/torchscript_e2e_heavydep_tests/main.py index 9785b0003..05341b92a 100644 --- a/build_tools/torchscript_e2e_heavydep_tests/main.py +++ b/build_tools/torchscript_e2e_heavydep_tests/main.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. import argparse import os diff --git a/e2e_testing/torchscript/basic.py b/e2e_testing/torchscript/basic.py index 2e11946bd..f7e146d8a 100644 --- a/e2e_testing/torchscript/basic.py +++ b/e2e_testing/torchscript/basic.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. import torch diff --git a/e2e_testing/torchscript/batchnorm.py b/e2e_testing/torchscript/batchnorm.py index b6fad1025..e9cd77702 100644 --- a/e2e_testing/torchscript/batchnorm.py +++ b/e2e_testing/torchscript/batchnorm.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. import torch diff --git a/e2e_testing/torchscript/conv.py b/e2e_testing/torchscript/conv.py index 62e3bd3c5..3f43bfc42 100644 --- a/e2e_testing/torchscript/conv.py +++ b/e2e_testing/torchscript/conv.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. import torch from torch_mlir_e2e_test.torchscript.framework import TestUtils diff --git a/e2e_testing/torchscript/elementwise.py b/e2e_testing/torchscript/elementwise.py index 0ae4b3d83..2bd03e45b 100644 --- a/e2e_testing/torchscript/elementwise.py +++ b/e2e_testing/torchscript/elementwise.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. import torch diff --git a/e2e_testing/torchscript/main.py b/e2e_testing/torchscript/main.py index 28a253a8d..9b1e1fc3d 100644 --- a/e2e_testing/torchscript/main.py +++ b/e2e_testing/torchscript/main.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. import argparse import os diff --git a/e2e_testing/torchscript/mlp.py b/e2e_testing/torchscript/mlp.py index 12dd518ba..b3c4aa1d7 100644 --- a/e2e_testing/torchscript/mlp.py +++ b/e2e_testing/torchscript/mlp.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. import torch import torch.nn as nn diff --git a/e2e_testing/torchscript/quantized_models.py b/e2e_testing/torchscript/quantized_models.py index 6f3803f14..7080a25fe 100644 --- a/e2e_testing/torchscript/quantized_models.py +++ b/e2e_testing/torchscript/quantized_models.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. import torch from torch import nn diff --git a/e2e_testing/torchscript/reduction.py b/e2e_testing/torchscript/reduction.py index fedcc9301..367290290 100644 --- a/e2e_testing/torchscript/reduction.py +++ b/e2e_testing/torchscript/reduction.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. import torch diff --git a/e2e_testing/torchscript/vision_models.py b/e2e_testing/torchscript/vision_models.py index c1e02eb81..133fa8278 100644 --- a/e2e_testing/torchscript/vision_models.py +++ b/e2e_testing/torchscript/vision_models.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. import torch import torchvision.models as models diff --git a/e2e_testing/torchscript/xfail_sets.py b/e2e_testing/torchscript/xfail_sets.py index 978744a30..d7bace092 100644 --- a/e2e_testing/torchscript/xfail_sets.py +++ b/e2e_testing/torchscript/xfail_sets.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. # This file describes the sets of tests expected to fail for each config. # This information is deliberately kept in a side table, rather than diff --git a/examples/lazytensor/builder.py b/examples/lazytensor/builder.py index 23df4359e..bb732365c 100644 --- a/examples/lazytensor/builder.py +++ b/examples/lazytensor/builder.py @@ -1,6 +1,7 @@ # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. """ Translator from torch.jit.ScriptFunction to MLIR. diff --git a/examples/lazytensor_tanh.py b/examples/lazytensor_tanh.py index fce247159..c0b10a976 100644 --- a/examples/lazytensor_tanh.py +++ b/examples/lazytensor_tanh.py @@ -1,6 +1,7 @@ # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. """ Example of taking a Lazy Tensor computation and compiling it using torch-mlir. diff --git a/examples/resnet_inference.ipynb b/examples/resnet_inference.ipynb index 1038e1ad6..626d0faec 100644 --- a/examples/resnet_inference.ipynb +++ b/examples/resnet_inference.ipynb @@ -9,7 +9,8 @@ "source": [ "# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.\n", "# See https://llvm.org/LICENSE.txt for license information.\n", - "# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception" + "# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE." ] }, { diff --git a/examples/torchfx/builder.py b/examples/torchfx/builder.py index bfba271fa..375bdc117 100644 --- a/examples/torchfx/builder.py +++ b/examples/torchfx/builder.py @@ -1,6 +1,7 @@ # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. """ Translator from Torch.FX to MLIR. diff --git a/examples/torchfx/loc.py b/examples/torchfx/loc.py index a4f17a96b..d75a11c63 100644 --- a/examples/torchfx/loc.py +++ b/examples/torchfx/loc.py @@ -2,6 +2,7 @@ # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. # # pylint: disable=no-member, no-name-in-module, invalid-name, missing-function-docstring, fixme diff --git a/examples/torchfx_add_tanh_sigmoid.py b/examples/torchfx_add_tanh_sigmoid.py index 8f153db59..9c950c284 100644 --- a/examples/torchfx_add_tanh_sigmoid.py +++ b/examples/torchfx_add_tanh_sigmoid.py @@ -2,6 +2,7 @@ # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. """ Example of taking a moduled traced by TorchFX and compiling it using torch-mlir. diff --git a/examples/torchscript_resnet18_e2e.py b/examples/torchscript_resnet18_e2e.py index 9cf492336..38bef1368 100644 --- a/examples/torchscript_resnet18_e2e.py +++ b/examples/torchscript_resnet18_e2e.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. from PIL import Image import requests diff --git a/examples/utils/annotator.py b/examples/utils/annotator.py index 39cdfbc8f..8dfff0169 100644 --- a/examples/utils/annotator.py +++ b/examples/utils/annotator.py @@ -2,6 +2,7 @@ # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. # # pylint: disable=no-member, no-name-in-module, invalid-name, missing-function-docstring, fixme diff --git a/examples/utils/torch_mlir_types.py b/examples/utils/torch_mlir_types.py index 205fea1e3..b2420d011 100644 --- a/examples/utils/torch_mlir_types.py +++ b/examples/utils/torch_mlir_types.py @@ -1,6 +1,7 @@ # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. # # pylint: disable=no-member, no-name-in-module, invalid-name, missing-function-docstring, fixme """ diff --git a/include/torch-mlir-c/TorchTypes.h b/include/torch-mlir-c/TorchTypes.h index 0e03403c6..dadfab1d9 100644 --- a/include/torch-mlir-c/TorchTypes.h +++ b/include/torch-mlir-c/TorchTypes.h @@ -4,6 +4,7 @@ // Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/include/torch-mlir/Conversion/Passes.h b/include/torch-mlir/Conversion/Passes.h index 41240de97..8ab6eb56b 100644 --- a/include/torch-mlir/Conversion/Passes.h +++ b/include/torch-mlir/Conversion/Passes.h @@ -3,6 +3,7 @@ // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/include/torch-mlir/Conversion/Passes.td b/include/torch-mlir/Conversion/Passes.td index 086578a22..61d3ceb03 100644 --- a/include/torch-mlir/Conversion/Passes.td +++ b/include/torch-mlir/Conversion/Passes.td @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/include/torch-mlir/Conversion/TorchToLinalg/TorchToLinalg.h b/include/torch-mlir/Conversion/TorchToLinalg/TorchToLinalg.h index 8eef8c8e1..6df74b700 100644 --- a/include/torch-mlir/Conversion/TorchToLinalg/TorchToLinalg.h +++ b/include/torch-mlir/Conversion/TorchToLinalg/TorchToLinalg.h @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/include/torch-mlir/Conversion/TorchToSCF/TorchToSCF.h b/include/torch-mlir/Conversion/TorchToSCF/TorchToSCF.h index 33ee0521e..a9b3ce8c3 100644 --- a/include/torch-mlir/Conversion/TorchToSCF/TorchToSCF.h +++ b/include/torch-mlir/Conversion/TorchToSCF/TorchToSCF.h @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/include/torch-mlir/Conversion/TorchToStd/TorchToStd.h b/include/torch-mlir/Conversion/TorchToStd/TorchToStd.h index 0b9c9f072..371924725 100644 --- a/include/torch-mlir/Conversion/TorchToStd/TorchToStd.h +++ b/include/torch-mlir/Conversion/TorchToStd/TorchToStd.h @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/include/torch-mlir/Dialect/Torch/IR/GeneratedAtenOps.td b/include/torch-mlir/Dialect/Torch/IR/GeneratedAtenOps.td index cda65055a..8b332cd17 100644 --- a/include/torch-mlir/Dialect/Torch/IR/GeneratedAtenOps.td +++ b/include/torch-mlir/Dialect/Torch/IR/GeneratedAtenOps.td @@ -3,6 +3,7 @@ // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // // Operation summaries and descriptions were systematically derived from public // API docstrings and are licensed accordingly: @@ -2437,4 +2438,3 @@ def Torch_AtenEqDeviceOp : Torch_Op<"aten.eq.device", [ ); let assemblyFormat = "$a `,` $b attr-dict `:` type($a) `,` type($b) `->` type($result)"; } - diff --git a/include/torch-mlir/Dialect/Torch/IR/GeneratedPrimOps.td b/include/torch-mlir/Dialect/Torch/IR/GeneratedPrimOps.td index db734a6a5..12cb0edf7 100644 --- a/include/torch-mlir/Dialect/Torch/IR/GeneratedPrimOps.td +++ b/include/torch-mlir/Dialect/Torch/IR/GeneratedPrimOps.td @@ -3,6 +3,7 @@ // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // // Operation summaries and descriptions were systematically derived from public // API docstrings and are licensed accordingly: @@ -223,4 +224,3 @@ def Torch_PrimTolistOp : Torch_Op<"prim.tolist", [ ); let assemblyFormat = "`(` $operands `)` attr-dict `:` type($operands) `->` type($results)"; } - diff --git a/include/torch-mlir/Dialect/Torch/IR/GeneratedQuantizedOps.td b/include/torch-mlir/Dialect/Torch/IR/GeneratedQuantizedOps.td index bfe7d3855..ae6390542 100644 --- a/include/torch-mlir/Dialect/Torch/IR/GeneratedQuantizedOps.td +++ b/include/torch-mlir/Dialect/Torch/IR/GeneratedQuantizedOps.td @@ -3,6 +3,7 @@ // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // // Operation summaries and descriptions were systematically derived from public // API docstrings and are licensed accordingly: @@ -32,4 +33,3 @@ def Torch_QuantizedLinearOp : Torch_Op<"quantized.linear", [ ); let assemblyFormat = "$X `,` $W_prepack `,` $Y_scale_i `,` $Y_zero_point_i attr-dict `:` type($X) `,` type($W_prepack) `,` type($Y_scale_i) `,` type($Y_zero_point_i) `->` type($Y)"; } - diff --git a/include/torch-mlir/Dialect/Torch/IR/TorchBase.td b/include/torch-mlir/Dialect/Torch/IR/TorchBase.td index 1958a2330..59d3fbfc8 100644 --- a/include/torch-mlir/Dialect/Torch/IR/TorchBase.td +++ b/include/torch-mlir/Dialect/Torch/IR/TorchBase.td @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/include/torch-mlir/Dialect/Torch/IR/TorchDialect.h b/include/torch-mlir/Dialect/Torch/IR/TorchDialect.h index c5ae07db6..f500bf868 100644 --- a/include/torch-mlir/Dialect/Torch/IR/TorchDialect.h +++ b/include/torch-mlir/Dialect/Torch/IR/TorchDialect.h @@ -3,6 +3,7 @@ // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/include/torch-mlir/Dialect/Torch/IR/TorchOps.h b/include/torch-mlir/Dialect/Torch/IR/TorchOps.h index 1fb1d3ee8..f8aff87fa 100644 --- a/include/torch-mlir/Dialect/Torch/IR/TorchOps.h +++ b/include/torch-mlir/Dialect/Torch/IR/TorchOps.h @@ -3,6 +3,7 @@ // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/include/torch-mlir/Dialect/Torch/IR/TorchOps.td b/include/torch-mlir/Dialect/Torch/IR/TorchOps.td index acbdbe389..9775ca3ec 100644 --- a/include/torch-mlir/Dialect/Torch/IR/TorchOps.td +++ b/include/torch-mlir/Dialect/Torch/IR/TorchOps.td @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/include/torch-mlir/Dialect/Torch/IR/TorchTraits.h b/include/torch-mlir/Dialect/Torch/IR/TorchTraits.h index 9dccd3eef..52b3b5896 100644 --- a/include/torch-mlir/Dialect/Torch/IR/TorchTraits.h +++ b/include/torch-mlir/Dialect/Torch/IR/TorchTraits.h @@ -3,6 +3,7 @@ // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// // diff --git a/include/torch-mlir/Dialect/Torch/IR/TorchTypes.h b/include/torch-mlir/Dialect/Torch/IR/TorchTypes.h index 3a2cd7282..cc0b97aa7 100644 --- a/include/torch-mlir/Dialect/Torch/IR/TorchTypes.h +++ b/include/torch-mlir/Dialect/Torch/IR/TorchTypes.h @@ -3,6 +3,7 @@ // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/include/torch-mlir/Dialect/Torch/IR/TorchTypes.td b/include/torch-mlir/Dialect/Torch/IR/TorchTypes.td index f8810e97e..dbfd51bbe 100644 --- a/include/torch-mlir/Dialect/Torch/IR/TorchTypes.td +++ b/include/torch-mlir/Dialect/Torch/IR/TorchTypes.td @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/include/torch-mlir/Dialect/Torch/Transforms/Passes.h b/include/torch-mlir/Dialect/Torch/Transforms/Passes.h index e5b346dbb..606a8701c 100644 --- a/include/torch-mlir/Dialect/Torch/Transforms/Passes.h +++ b/include/torch-mlir/Dialect/Torch/Transforms/Passes.h @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/include/torch-mlir/Dialect/Torch/Transforms/Passes.td b/include/torch-mlir/Dialect/Torch/Transforms/Passes.td index 42bbf597b..464e64079 100644 --- a/include/torch-mlir/Dialect/Torch/Transforms/Passes.td +++ b/include/torch-mlir/Dialect/Torch/Transforms/Passes.td @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/include/torch-mlir/Dialect/TorchConversion/IR/TorchConversionBase.td b/include/torch-mlir/Dialect/TorchConversion/IR/TorchConversionBase.td index 1923f30e4..785f29ae4 100644 --- a/include/torch-mlir/Dialect/TorchConversion/IR/TorchConversionBase.td +++ b/include/torch-mlir/Dialect/TorchConversion/IR/TorchConversionBase.td @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/include/torch-mlir/Dialect/TorchConversion/IR/TorchConversionDialect.h b/include/torch-mlir/Dialect/TorchConversion/IR/TorchConversionDialect.h index 61e09ec37..2fdcba98c 100644 --- a/include/torch-mlir/Dialect/TorchConversion/IR/TorchConversionDialect.h +++ b/include/torch-mlir/Dialect/TorchConversion/IR/TorchConversionDialect.h @@ -3,6 +3,7 @@ // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/include/torch-mlir/Dialect/TorchConversion/IR/TorchConversionOps.h b/include/torch-mlir/Dialect/TorchConversion/IR/TorchConversionOps.h index ad3f084d4..70f382a5e 100644 --- a/include/torch-mlir/Dialect/TorchConversion/IR/TorchConversionOps.h +++ b/include/torch-mlir/Dialect/TorchConversion/IR/TorchConversionOps.h @@ -3,6 +3,7 @@ // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/include/torch-mlir/Dialect/TorchConversion/IR/TorchConversionOps.td b/include/torch-mlir/Dialect/TorchConversion/IR/TorchConversionOps.td index cd57286a3..49e06039d 100644 --- a/include/torch-mlir/Dialect/TorchConversion/IR/TorchConversionOps.td +++ b/include/torch-mlir/Dialect/TorchConversion/IR/TorchConversionOps.td @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/include/torch-mlir/Dialect/TorchConversion/Transforms/BackendTypeConversion.h b/include/torch-mlir/Dialect/TorchConversion/Transforms/BackendTypeConversion.h index 170e646df..de188b4f4 100644 --- a/include/torch-mlir/Dialect/TorchConversion/Transforms/BackendTypeConversion.h +++ b/include/torch-mlir/Dialect/TorchConversion/Transforms/BackendTypeConversion.h @@ -3,6 +3,7 @@ // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/include/torch-mlir/Dialect/TorchConversion/Transforms/Passes.h b/include/torch-mlir/Dialect/TorchConversion/Transforms/Passes.h index fefa69429..14c93ca21 100644 --- a/include/torch-mlir/Dialect/TorchConversion/Transforms/Passes.h +++ b/include/torch-mlir/Dialect/TorchConversion/Transforms/Passes.h @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/include/torch-mlir/Dialect/TorchConversion/Transforms/Passes.td b/include/torch-mlir/Dialect/TorchConversion/Transforms/Passes.td index 07cdbc2e5..189d3a337 100644 --- a/include/torch-mlir/Dialect/TorchConversion/Transforms/Passes.td +++ b/include/torch-mlir/Dialect/TorchConversion/Transforms/Passes.td @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/include/torch-mlir/InitAll.h b/include/torch-mlir/InitAll.h index 5cdf1ac99..ecced42cd 100644 --- a/include/torch-mlir/InitAll.h +++ b/include/torch-mlir/InitAll.h @@ -3,6 +3,7 @@ // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/include/torch-mlir/RefBackend/Passes.h b/include/torch-mlir/RefBackend/Passes.h index 96628e755..b8a7c79a6 100644 --- a/include/torch-mlir/RefBackend/Passes.h +++ b/include/torch-mlir/RefBackend/Passes.h @@ -3,6 +3,7 @@ // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/include/torch-mlir/RefBackend/Passes.td b/include/torch-mlir/RefBackend/Passes.td index f7627304e..5306ac69b 100644 --- a/include/torch-mlir/RefBackend/Passes.td +++ b/include/torch-mlir/RefBackend/Passes.td @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/CAPI/Dialects.cpp b/lib/CAPI/Dialects.cpp index cd2f3ef43..06be821c0 100644 --- a/lib/CAPI/Dialects.cpp +++ b/lib/CAPI/Dialects.cpp @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/CAPI/Registration.cpp b/lib/CAPI/Registration.cpp index 6be315b44..52cd10b38 100644 --- a/lib/CAPI/Registration.cpp +++ b/lib/CAPI/Registration.cpp @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/CAPI/TorchTypes.cpp b/lib/CAPI/TorchTypes.cpp index 0c448ef4d..c4d248547 100644 --- a/lib/CAPI/TorchTypes.cpp +++ b/lib/CAPI/TorchTypes.cpp @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/Conversion/PassDetail.h b/lib/Conversion/PassDetail.h index ac02ca00c..114578740 100644 --- a/lib/Conversion/PassDetail.h +++ b/lib/Conversion/PassDetail.h @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/Conversion/Passes.cpp b/lib/Conversion/Passes.cpp index 8ce2ddcec..c286fd007 100644 --- a/lib/Conversion/Passes.cpp +++ b/lib/Conversion/Passes.cpp @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/Conversion/TorchToLinalg/TorchToLinalg.cpp b/lib/Conversion/TorchToLinalg/TorchToLinalg.cpp index 3b6af675a..d2f0391bf 100644 --- a/lib/Conversion/TorchToLinalg/TorchToLinalg.cpp +++ b/lib/Conversion/TorchToLinalg/TorchToLinalg.cpp @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/Conversion/TorchToSCF/TorchToSCF.cpp b/lib/Conversion/TorchToSCF/TorchToSCF.cpp index d4acb758c..4496c1502 100644 --- a/lib/Conversion/TorchToSCF/TorchToSCF.cpp +++ b/lib/Conversion/TorchToSCF/TorchToSCF.cpp @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/Conversion/TorchToStd/TorchToStd.cpp b/lib/Conversion/TorchToStd/TorchToStd.cpp index b2b6aba60..271c0f101 100644 --- a/lib/Conversion/TorchToStd/TorchToStd.cpp +++ b/lib/Conversion/TorchToStd/TorchToStd.cpp @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/Dialect/Torch/IR/TorchDialect.cpp b/lib/Dialect/Torch/IR/TorchDialect.cpp index c5375834b..8b1199e2a 100644 --- a/lib/Dialect/Torch/IR/TorchDialect.cpp +++ b/lib/Dialect/Torch/IR/TorchDialect.cpp @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/Dialect/Torch/IR/TorchOps.cpp b/lib/Dialect/Torch/IR/TorchOps.cpp index c71885811..f8357002f 100644 --- a/lib/Dialect/Torch/IR/TorchOps.cpp +++ b/lib/Dialect/Torch/IR/TorchOps.cpp @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/Dialect/Torch/IR/TorchTypes.cpp b/lib/Dialect/Torch/IR/TorchTypes.cpp index fc5bfc6dc..c69042b43 100644 --- a/lib/Dialect/Torch/IR/TorchTypes.cpp +++ b/lib/Dialect/Torch/IR/TorchTypes.cpp @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/Dialect/Torch/Transforms/AdjustCallingConventions.cpp b/lib/Dialect/Torch/Transforms/AdjustCallingConventions.cpp index 28c525b35..a31550ea2 100644 --- a/lib/Dialect/Torch/Transforms/AdjustCallingConventions.cpp +++ b/lib/Dialect/Torch/Transforms/AdjustCallingConventions.cpp @@ -3,6 +3,7 @@ // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/Dialect/Torch/Transforms/GlobalizeObjectGraph.cpp b/lib/Dialect/Torch/Transforms/GlobalizeObjectGraph.cpp index 73811fa97..846d18688 100644 --- a/lib/Dialect/Torch/Transforms/GlobalizeObjectGraph.cpp +++ b/lib/Dialect/Torch/Transforms/GlobalizeObjectGraph.cpp @@ -3,6 +3,7 @@ // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/Dialect/Torch/Transforms/InlineGlobalSlots.cpp b/lib/Dialect/Torch/Transforms/InlineGlobalSlots.cpp index 9e996599d..64a117c52 100644 --- a/lib/Dialect/Torch/Transforms/InlineGlobalSlots.cpp +++ b/lib/Dialect/Torch/Transforms/InlineGlobalSlots.cpp @@ -3,6 +3,7 @@ // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/Dialect/Torch/Transforms/MaximizeValueSemantics.cpp b/lib/Dialect/Torch/Transforms/MaximizeValueSemantics.cpp index 417643cc9..5d641269c 100644 --- a/lib/Dialect/Torch/Transforms/MaximizeValueSemantics.cpp +++ b/lib/Dialect/Torch/Transforms/MaximizeValueSemantics.cpp @@ -3,6 +3,7 @@ // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/Dialect/Torch/Transforms/PassDetail.h b/lib/Dialect/Torch/Transforms/PassDetail.h index 87c5b7333..befa81149 100644 --- a/lib/Dialect/Torch/Transforms/PassDetail.h +++ b/lib/Dialect/Torch/Transforms/PassDetail.h @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/Dialect/Torch/Transforms/Passes.cpp b/lib/Dialect/Torch/Transforms/Passes.cpp index 6d4a5f623..c111dc459 100644 --- a/lib/Dialect/Torch/Transforms/Passes.cpp +++ b/lib/Dialect/Torch/Transforms/Passes.cpp @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/Dialect/Torch/Transforms/PrepareForGlobalizeObjectGraph.cpp b/lib/Dialect/Torch/Transforms/PrepareForGlobalizeObjectGraph.cpp index 14b9851df..3a2ab36b2 100644 --- a/lib/Dialect/Torch/Transforms/PrepareForGlobalizeObjectGraph.cpp +++ b/lib/Dialect/Torch/Transforms/PrepareForGlobalizeObjectGraph.cpp @@ -3,6 +3,7 @@ // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/Dialect/Torch/Transforms/ReduceOpVariants.cpp b/lib/Dialect/Torch/Transforms/ReduceOpVariants.cpp index 72b3dd2ce..2b18d6f2c 100644 --- a/lib/Dialect/Torch/Transforms/ReduceOpVariants.cpp +++ b/lib/Dialect/Torch/Transforms/ReduceOpVariants.cpp @@ -3,6 +3,7 @@ // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/Dialect/Torch/Transforms/RefinePublicReturn.cpp b/lib/Dialect/Torch/Transforms/RefinePublicReturn.cpp index bea27154d..51908916f 100644 --- a/lib/Dialect/Torch/Transforms/RefinePublicReturn.cpp +++ b/lib/Dialect/Torch/Transforms/RefinePublicReturn.cpp @@ -3,6 +3,7 @@ // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/Dialect/Torch/Transforms/RefineTypes.cpp b/lib/Dialect/Torch/Transforms/RefineTypes.cpp index 441c53e28..6555c2563 100644 --- a/lib/Dialect/Torch/Transforms/RefineTypes.cpp +++ b/lib/Dialect/Torch/Transforms/RefineTypes.cpp @@ -3,6 +3,7 @@ // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/Dialect/TorchConversion/IR/TorchConversionDialect.cpp b/lib/Dialect/TorchConversion/IR/TorchConversionDialect.cpp index 24f735ffe..e18464f7f 100644 --- a/lib/Dialect/TorchConversion/IR/TorchConversionDialect.cpp +++ b/lib/Dialect/TorchConversion/IR/TorchConversionDialect.cpp @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/Dialect/TorchConversion/IR/TorchConversionOps.cpp b/lib/Dialect/TorchConversion/IR/TorchConversionOps.cpp index 9727ac0d9..7c7c5fb94 100644 --- a/lib/Dialect/TorchConversion/IR/TorchConversionOps.cpp +++ b/lib/Dialect/TorchConversion/IR/TorchConversionOps.cpp @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/Dialect/TorchConversion/Transforms/BackendTypeConversion.cpp b/lib/Dialect/TorchConversion/Transforms/BackendTypeConversion.cpp index e2bd85a02..c5c6cf067 100644 --- a/lib/Dialect/TorchConversion/Transforms/BackendTypeConversion.cpp +++ b/lib/Dialect/TorchConversion/Transforms/BackendTypeConversion.cpp @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/Dialect/TorchConversion/Transforms/PassDetail.h b/lib/Dialect/TorchConversion/Transforms/PassDetail.h index 5fbfea322..c5a0da964 100644 --- a/lib/Dialect/TorchConversion/Transforms/PassDetail.h +++ b/lib/Dialect/TorchConversion/Transforms/PassDetail.h @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/Dialect/TorchConversion/Transforms/Passes.cpp b/lib/Dialect/TorchConversion/Transforms/Passes.cpp index 3642c823f..af8d7bea7 100644 --- a/lib/Dialect/TorchConversion/Transforms/Passes.cpp +++ b/lib/Dialect/TorchConversion/Transforms/Passes.cpp @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/Dialect/TorchConversion/Transforms/VerifyInvariantsBeforeBackendLowering.cpp b/lib/Dialect/TorchConversion/Transforms/VerifyInvariantsBeforeBackendLowering.cpp index 77c3f1ad7..9c8b25498 100644 --- a/lib/Dialect/TorchConversion/Transforms/VerifyInvariantsBeforeBackendLowering.cpp +++ b/lib/Dialect/TorchConversion/Transforms/VerifyInvariantsBeforeBackendLowering.cpp @@ -3,6 +3,7 @@ // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/Dialect/TorchConversion/Transforms/VerifyLinalgOnTensorsBackendContract.cpp b/lib/Dialect/TorchConversion/Transforms/VerifyLinalgOnTensorsBackendContract.cpp index a60bcf5e0..9f0d5a230 100644 --- a/lib/Dialect/TorchConversion/Transforms/VerifyLinalgOnTensorsBackendContract.cpp +++ b/lib/Dialect/TorchConversion/Transforms/VerifyLinalgOnTensorsBackendContract.cpp @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/InitAll.cpp b/lib/InitAll.cpp index 1ee7aceb6..d30342d91 100644 --- a/lib/InitAll.cpp +++ b/lib/InitAll.cpp @@ -3,6 +3,7 @@ // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/RefBackend/PassDetail.h b/lib/RefBackend/PassDetail.h index 3377bbf1f..630e0868b 100644 --- a/lib/RefBackend/PassDetail.h +++ b/lib/RefBackend/PassDetail.h @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/lib/RefBackend/RefBackend.cpp b/lib/RefBackend/RefBackend.cpp index abdb2f75b..406acb078 100644 --- a/lib/RefBackend/RefBackend.cpp +++ b/lib/RefBackend/RefBackend.cpp @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// // diff --git a/python/TorchMLIRModule.cpp b/python/TorchMLIRModule.cpp index 7c7d8a1a2..c84f3b6f7 100644 --- a/python/TorchMLIRModule.cpp +++ b/python/TorchMLIRModule.cpp @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/python/test/annotations-sugar.py b/python/test/annotations-sugar.py index 912c00163..792686258 100644 --- a/python/test/annotations-sugar.py +++ b/python/test/annotations-sugar.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. # RUN: %PYTHON %s | FileCheck %s diff --git a/python/test/lit.cfg.py b/python/test/lit.cfg.py index af6c0dd6e..9ec3c7921 100644 --- a/python/test/lit.cfg.py +++ b/python/test/lit.cfg.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. import os import platform diff --git a/python/test/lit.site.cfg.py.in b/python/test/lit.site.cfg.py.in index 02830e5b9..5c2ee3873 100644 --- a/python/test/lit.site.cfg.py.in +++ b/python/test/lit.site.cfg.py.in @@ -1,7 +1,8 @@ # -*- Python -*- -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. @LIT_SITE_CFG_IN_HEADER@ diff --git a/python/test/torchscript_e2e_test/basic.py b/python/test/torchscript_e2e_test/basic.py index 9cbdc965c..438468c20 100644 --- a/python/test/torchscript_e2e_test/basic.py +++ b/python/test/torchscript_e2e_test/basic.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. # RUN: %PYTHON %s | FileCheck %s diff --git a/python/test/torchscript_e2e_test/compilation_failure.py b/python/test/torchscript_e2e_test/compilation_failure.py index 0cd1e023b..a47750caa 100644 --- a/python/test/torchscript_e2e_test/compilation_failure.py +++ b/python/test/torchscript_e2e_test/compilation_failure.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. # RUN: %PYTHON %s | FileCheck %s diff --git a/python/test/torchscript_e2e_test/error_reports.py b/python/test/torchscript_e2e_test/error_reports.py index af5e3a04c..b0fc5a392 100644 --- a/python/test/torchscript_e2e_test/error_reports.py +++ b/python/test/torchscript_e2e_test/error_reports.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. # RUN: %PYTHON %s | FileCheck %s diff --git a/python/test/torchscript_e2e_test/non_tensor_values.py b/python/test/torchscript_e2e_test/non_tensor_values.py index de6c8c8b6..b5edc8335 100644 --- a/python/test/torchscript_e2e_test/non_tensor_values.py +++ b/python/test/torchscript_e2e_test/non_tensor_values.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. # RUN: %PYTHON %s | FileCheck %s diff --git a/python/test/torchscript_e2e_test/runtime_failure.py b/python/test/torchscript_e2e_test/runtime_failure.py index d48ed2a6c..9bdd602ad 100644 --- a/python/test/torchscript_e2e_test/runtime_failure.py +++ b/python/test/torchscript_e2e_test/runtime_failure.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. # RUN: %PYTHON %s | FileCheck %s diff --git a/python/test/torchscript_e2e_test/submodule.py b/python/test/torchscript_e2e_test/submodule.py index 12e922b39..fa157b531 100644 --- a/python/test/torchscript_e2e_test/submodule.py +++ b/python/test/torchscript_e2e_test/submodule.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. # RUN: %PYTHON %s | FileCheck %s diff --git a/python/torch_mlir/dialects/TorchBinding.td b/python/torch_mlir/dialects/TorchBinding.td index 058b75edd..2de5dcd56 100644 --- a/python/torch_mlir/dialects/TorchBinding.td +++ b/python/torch_mlir/dialects/TorchBinding.td @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/python/torch_mlir/dialects/torch/__init__.py b/python/torch_mlir/dialects/torch/__init__.py index 9715740a0..bd362849a 100644 --- a/python/torch_mlir/dialects/torch/__init__.py +++ b/python/torch_mlir/dialects/torch/__init__.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. from .._torch_ops_gen import * from ..._mlir_libs._torchMlir import register_dialect diff --git a/python/torch_mlir/dialects/torch/importer/jit_ir/__init__.py b/python/torch_mlir/dialects/torch/importer/jit_ir/__init__.py index fefcfbbf3..ead98dd5c 100644 --- a/python/torch_mlir/dialects/torch/importer/jit_ir/__init__.py +++ b/python/torch_mlir/dialects/torch/importer/jit_ir/__init__.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. # This is a trampoline module which loads the _torch_mlir native module # and binds names locally. It exists to allow for customization of behavior diff --git a/python/torch_mlir/dialects/torch/importer/jit_ir/build_tools/torch_ods_gen.py b/python/torch_mlir/dialects/torch/importer/jit_ir/build_tools/torch_ods_gen.py index 3a2888867..a760d63bc 100644 --- a/python/torch_mlir/dialects/torch/importer/jit_ir/build_tools/torch_ods_gen.py +++ b/python/torch_mlir/dialects/torch/importer/jit_ir/build_tools/torch_ods_gen.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. """Queries the pytorch op registry and generates ODS and CC sources for the ops. """ @@ -264,7 +265,8 @@ ODS_BANNER = "\n".join([ "//", "// This file is licensed under the Apache License v2.0 with LLVM Exceptions.", "// See https://llvm.org/LICENSE.txt for license information.", - "// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception", + "// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE.", "//", "// Operation summaries and descriptions were systematically derived from public", "// API docstrings and are licensed accordingly:", diff --git a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/class_annotator.cpp b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/class_annotator.cpp index ec037a170..b14005b9f 100644 --- a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/class_annotator.cpp +++ b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/class_annotator.cpp @@ -1,7 +1,9 @@ //===- class_annotator.cpp ------------------------------------------------===// // -// This file is licensed under a pytorch-style license -// See LICENSE.pytorch for license information. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/class_annotator.h b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/class_annotator.h index 0181b5c25..33bc7b2e9 100644 --- a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/class_annotator.h +++ b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/class_annotator.h @@ -1,7 +1,9 @@ //===- class_annotator.h ----------------------------------------*- C++ -*-===// // -// This file is licensed under a pytorch-style license -// See LICENSE.pytorch for license information. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// // Utilities for annotating Torch `c10::ClassType` diff --git a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/function_importer.cpp b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/function_importer.cpp index 7a13f5f5e..1fcce95a5 100644 --- a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/function_importer.cpp +++ b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/function_importer.cpp @@ -1,7 +1,9 @@ //===- function_importer.cpp ----------------------------------------------===// // -// This file is licensed under a pytorch-style license -// See LICENSE.pytorch for license information. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/function_importer.h b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/function_importer.h index 9de1741d0..c749c26bc 100644 --- a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/function_importer.h +++ b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/function_importer.h @@ -1,7 +1,9 @@ //===- function_importer.h --------------------------------------*- C++ -*-===// // -// This file is licensed under a pytorch-style license -// See LICENSE.pytorch for license information. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/get_registered_ops.cpp b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/get_registered_ops.cpp index 26502c149..5178eabd3 100644 --- a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/get_registered_ops.cpp +++ b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/get_registered_ops.cpp @@ -1,7 +1,9 @@ //===- get_registered_ops.cpp ---------------------------------------------===// // -// This file is licensed under a pytorch-style license -// See LICENSE.pytorch for license information. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/get_registered_ops.h b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/get_registered_ops.h index 113815d5d..0fe9471fa 100644 --- a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/get_registered_ops.h +++ b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/get_registered_ops.h @@ -1,7 +1,9 @@ //===- get_registered_ops.h -------------------------------------*- C++ -*-===// // -// This file is licensed under a pytorch-style license -// See LICENSE.pytorch for license information. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// // diff --git a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/init_python_bindings.cpp b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/init_python_bindings.cpp index 2c63bdac7..9638bc2a5 100644 --- a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/init_python_bindings.cpp +++ b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/init_python_bindings.cpp @@ -1,7 +1,9 @@ //===- python_bindings.cpp --------------------------------------*- C++ -*-===// // -// This file is licensed under a pytorch-style license -// See LICENSE.pytorch for license information. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/ivalue_importer.cpp b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/ivalue_importer.cpp index 9ca773663..8db010884 100644 --- a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/ivalue_importer.cpp +++ b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/ivalue_importer.cpp @@ -1,7 +1,9 @@ //===- ivalue_importer.cpp ------------------------------------------------===// // -// This file is licensed under a pytorch-style license -// See LICENSE.pytorch for license information. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/ivalue_importer.h b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/ivalue_importer.h index 9a012513c..59a35cee8 100644 --- a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/ivalue_importer.h +++ b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/ivalue_importer.h @@ -1,7 +1,9 @@ //===- ivalue_importer.h ----------------------------------------*- C++ -*-===// // -// This file is licensed under a pytorch-style license -// See LICENSE.pytorch for license information. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/mlir_utils.h b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/mlir_utils.h index 7da72ff9d..97ce5fa10 100644 --- a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/mlir_utils.h +++ b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/mlir_utils.h @@ -1,7 +1,9 @@ //===- mlir_utils.h ---------------------------------------------*- C++ -*-===// // -// This file is licensed under a pytorch-style license -// See LICENSE.pytorch for license information. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/module_builder.cpp b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/module_builder.cpp index 2c7e30f4f..a5453e521 100644 --- a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/module_builder.cpp +++ b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/module_builder.cpp @@ -1,7 +1,9 @@ //===- module_builder.cpp -------------------------------------------------===// // -// This file is licensed under a pytorch-style license -// See LICENSE.pytorch for license information. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/module_builder.h b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/module_builder.h index 17c0f331b..39944239a 100644 --- a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/module_builder.h +++ b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/module_builder.h @@ -1,7 +1,9 @@ //===- module_builder.h -----------------------------------------*- C++ -*-===// // -// This file is licensed under a pytorch-style license -// See LICENSE.pytorch for license information. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/node_importer.cpp b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/node_importer.cpp index e16a84ff8..530ad0fff 100644 --- a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/node_importer.cpp +++ b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/node_importer.cpp @@ -1,7 +1,9 @@ //===- node_importer.cpp --------------------------------------------------===// // -// This file is licensed under a pytorch-style license -// See LICENSE.pytorch for license information. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/node_importer.h b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/node_importer.h index 650403608..866750f03 100644 --- a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/node_importer.h +++ b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/node_importer.h @@ -1,7 +1,9 @@ //===- node_importer.h ------------------------------------------*- C++ -*-===// // -// This file is licensed under a pytorch-style license -// See LICENSE.pytorch for license information. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/pybind.h b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/pybind.h index 9cd10e3fe..dc191516d 100644 --- a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/pybind.h +++ b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/pybind.h @@ -1,7 +1,9 @@ //===- module_builder.h -----------------------------------------*- C++ -*-===// // -// This file is licensed under a pytorch-style license -// See LICENSE.pytorch for license information. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// // Includes Torch-specific pybind and associated helpers. diff --git a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/torch_to_mlir_utils.cpp b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/torch_to_mlir_utils.cpp index 80c7017e3..78791e06f 100644 --- a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/torch_to_mlir_utils.cpp +++ b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/torch_to_mlir_utils.cpp @@ -1,7 +1,9 @@ //===- torch_to_mlir_utils.cpp --------------------------------------------===// // -// This file is licensed under a pytorch-style license -// See LICENSE.pytorch for license information. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/torch_to_mlir_utils.h b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/torch_to_mlir_utils.h index 6a0c1b46c..ebe54d51c 100644 --- a/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/torch_to_mlir_utils.h +++ b/python/torch_mlir/dialects/torch/importer/jit_ir/csrc/torch_to_mlir_utils.h @@ -1,7 +1,9 @@ //===- torch_to_mlir_utils.h ------------------------------------*- C++ -*-===// // -// This file is licensed under a pytorch-style license -// See LICENSE.pytorch for license information. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/python/torch_mlir/dialects/torch/importer/jit_ir/torchscript_annotations.py b/python/torch_mlir/dialects/torch/importer/jit_ir/torchscript_annotations.py index acf437f9c..660063195 100644 --- a/python/torch_mlir/dialects/torch/importer/jit_ir/torchscript_annotations.py +++ b/python/torch_mlir/dialects/torch/importer/jit_ir/torchscript_annotations.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. from typing import List, Optional, Tuple diff --git a/python/torch_mlir_e2e_test/linalg_on_tensors_backends/abc.py b/python/torch_mlir_e2e_test/linalg_on_tensors_backends/abc.py index 770c108e9..2ce334670 100644 --- a/python/torch_mlir_e2e_test/linalg_on_tensors_backends/abc.py +++ b/python/torch_mlir_e2e_test/linalg_on_tensors_backends/abc.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. import abc from typing import TypeVar diff --git a/python/torch_mlir_e2e_test/linalg_on_tensors_backends/refbackend.py b/python/torch_mlir_e2e_test/linalg_on_tensors_backends/refbackend.py index d3b81fd48..3e3f7030c 100644 --- a/python/torch_mlir_e2e_test/linalg_on_tensors_backends/refbackend.py +++ b/python/torch_mlir_e2e_test/linalg_on_tensors_backends/refbackend.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. import ctypes import numpy as np diff --git a/python/torch_mlir_e2e_test/torchscript/annotations.py b/python/torch_mlir_e2e_test/torchscript/annotations.py index 7c5258c4a..bb578dd91 100644 --- a/python/torch_mlir_e2e_test/torchscript/annotations.py +++ b/python/torch_mlir_e2e_test/torchscript/annotations.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. from typing import List, Optional, Tuple, NamedTuple diff --git a/python/torch_mlir_e2e_test/torchscript/configs/__init__.py b/python/torch_mlir_e2e_test/torchscript/configs/__init__.py index c14797199..0bfababd9 100644 --- a/python/torch_mlir_e2e_test/torchscript/configs/__init__.py +++ b/python/torch_mlir_e2e_test/torchscript/configs/__init__.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. from .linalg_on_tensors_backend import LinalgOnTensorsBackendTestConfig from .native_torch import NativeTorchTestConfig diff --git a/python/torch_mlir_e2e_test/torchscript/configs/linalg_on_tensors_backend.py b/python/torch_mlir_e2e_test/torchscript/configs/linalg_on_tensors_backend.py index ff3b9ebee..95b6083a3 100644 --- a/python/torch_mlir_e2e_test/torchscript/configs/linalg_on_tensors_backend.py +++ b/python/torch_mlir_e2e_test/torchscript/configs/linalg_on_tensors_backend.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. import sys from typing import Any diff --git a/python/torch_mlir_e2e_test/torchscript/configs/native_torch.py b/python/torch_mlir_e2e_test/torchscript/configs/native_torch.py index bb88f779a..06115b34a 100644 --- a/python/torch_mlir_e2e_test/torchscript/configs/native_torch.py +++ b/python/torch_mlir_e2e_test/torchscript/configs/native_torch.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. import copy from typing import Any diff --git a/python/torch_mlir_e2e_test/torchscript/configs/torchscript.py b/python/torch_mlir_e2e_test/torchscript/configs/torchscript.py index 5800aecfd..f79aa92cc 100644 --- a/python/torch_mlir_e2e_test/torchscript/configs/torchscript.py +++ b/python/torch_mlir_e2e_test/torchscript/configs/torchscript.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. import copy from typing import Any diff --git a/python/torch_mlir_e2e_test/torchscript/framework.py b/python/torch_mlir_e2e_test/torchscript/framework.py index ca6c3e459..a3c6ea341 100644 --- a/python/torch_mlir_e2e_test/torchscript/framework.py +++ b/python/torch_mlir_e2e_test/torchscript/framework.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. """ # End-to-end testing framework for TorchScript. diff --git a/python/torch_mlir_e2e_test/torchscript/registry.py b/python/torch_mlir_e2e_test/torchscript/registry.py index 34e616604..7c6022605 100644 --- a/python/torch_mlir_e2e_test/torchscript/registry.py +++ b/python/torch_mlir_e2e_test/torchscript/registry.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. from typing import Callable diff --git a/python/torch_mlir_e2e_test/torchscript/reporting.py b/python/torch_mlir_e2e_test/torchscript/reporting.py index 2469cfd2d..2f4acfeda 100644 --- a/python/torch_mlir_e2e_test/torchscript/reporting.py +++ b/python/torch_mlir_e2e_test/torchscript/reporting.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. """ Utilities for reporting the results of the test framework. """ diff --git a/test/lit.cfg.py b/test/lit.cfg.py index dd45971ea..09d8381ce 100644 --- a/test/lit.cfg.py +++ b/test/lit.cfg.py @@ -1,6 +1,7 @@ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# Also available under a BSD-style license. See LICENSE. import os import platform diff --git a/tools/torch-mlir-lsp-server/torch-mlir-lsp-server.cpp b/tools/torch-mlir-lsp-server/torch-mlir-lsp-server.cpp index 56c203fc9..ca7690025 100644 --- a/tools/torch-mlir-lsp-server/torch-mlir-lsp-server.cpp +++ b/tools/torch-mlir-lsp-server/torch-mlir-lsp-server.cpp @@ -3,6 +3,7 @@ // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===// diff --git a/tools/torch-mlir-opt/torch-mlir-opt.cpp b/tools/torch-mlir-opt/torch-mlir-opt.cpp index 175bda048..ce3db49c2 100644 --- a/tools/torch-mlir-opt/torch-mlir-opt.cpp +++ b/tools/torch-mlir-opt/torch-mlir-opt.cpp @@ -3,6 +3,7 @@ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Also available under a BSD-style license. See LICENSE. // //===----------------------------------------------------------------------===//