diff --git a/.github/workflows/build-cpu.yml b/.github/workflows/build-cpu.yml index 17a6fd054..263727c5f 100644 --- a/.github/workflows/build-cpu.yml +++ b/.github/workflows/build-cpu.yml @@ -1,6 +1,18 @@ -# Copyright (c) 2021 Fangjun Kuang (csukuangfj@gmail.com) +# Copyright 2021 Fangjun Kuang (csukuangfj@gmail.com) # See ../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # refer to https://github.com/actions/starter-workflows/pull/47/files diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 548dde16b..19c233bcf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,18 @@ -# Copyright (c) 2020 Fangjun Kuang (csukuangfj@gmail.com) +# Copyright 2020 Fangjun Kuang (csukuangfj@gmail.com) # See ../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # refer to https://github.com/actions/starter-workflows/pull/47/files diff --git a/.github/workflows/build_conda.yml b/.github/workflows/build_conda.yml index e069b27b2..8f2c338d3 100644 --- a/.github/workflows/build_conda.yml +++ b/.github/workflows/build_conda.yml @@ -1,6 +1,18 @@ -# Copyright (c) 2021 Xiaomi Corp. (author: Fangjun Kuang) +# Copyright 2021 Xiaomi Corp. (author: Fangjun Kuang) # See ../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # refer to https://github.com/actions/starter-workflows/pull/47/files diff --git a/.github/workflows/build_conda_cpu.yml b/.github/workflows/build_conda_cpu.yml index dad45c0bd..f80a54f5b 100644 --- a/.github/workflows/build_conda_cpu.yml +++ b/.github/workflows/build_conda_cpu.yml @@ -1,6 +1,18 @@ -# Copyright (c) 2021 Xiaomi Corp. (author: Fangjun Kuang) +# Copyright 2021 Xiaomi Corp. (author: Fangjun Kuang) # See ../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # refer to https://github.com/actions/starter-workflows/pull/47/files diff --git a/.github/workflows/nightly-cpu.yml b/.github/workflows/nightly-cpu.yml index c87d17189..c212e86c1 100644 --- a/.github/workflows/nightly-cpu.yml +++ b/.github/workflows/nightly-cpu.yml @@ -1,6 +1,18 @@ -# Copyright (c) 2021 Fangjun Kuang (csukuangfj@gmail.com) +# Copyright 2021 Fangjun Kuang (csukuangfj@gmail.com) # See ../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. name: nightly-cpu diff --git a/.github/workflows/nightly-windows.yml b/.github/workflows/nightly-windows.yml index 6f1bf101f..3b57a31e5 100644 --- a/.github/workflows/nightly-windows.yml +++ b/.github/workflows/nightly-windows.yml @@ -1,6 +1,18 @@ -# Copyright (c) 2021 Fangjun Kuang (csukuangfj@gmail.com) +# Copyright 2021 Fangjun Kuang (csukuangfj@gmail.com) # See ../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. name: nightly-windows diff --git a/.github/workflows/run-tests-cpu.yml b/.github/workflows/run-tests-cpu.yml index 1941015e9..d0e566412 100644 --- a/.github/workflows/run-tests-cpu.yml +++ b/.github/workflows/run-tests-cpu.yml @@ -1,6 +1,18 @@ -# Copyright (c) 2021 Fangjun Kuang (csukuangfj@gmail.com) +# Copyright 2021 Fangjun Kuang (csukuangfj@gmail.com) # See ../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # refer to https://github.com/actions/starter-workflows/pull/47/files diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 72c300379..663275e5d 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -1,6 +1,18 @@ -# Copyright (c) 2020 Fangjun Kuang (csukuangfj@gmail.com) +# Copyright 2020 Fangjun Kuang (csukuangfj@gmail.com) # See ../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # refer to https://github.com/actions/starter-workflows/pull/47/files diff --git a/.github/workflows/style_check.yml b/.github/workflows/style_check.yml index c74f7bb24..ca583ab44 100644 --- a/.github/workflows/style_check.yml +++ b/.github/workflows/style_check.yml @@ -1,6 +1,18 @@ -# Copyright (c) 2020 Fangjun Kuang (csukuangfj@gmail.com) +# Copyright 2020 Fangjun Kuang (csukuangfj@gmail.com) # See ../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. name: style_check diff --git a/.github/workflows/windows-conda.yml b/.github/workflows/windows-conda.yml index 1c0297229..8a0f21ce7 100644 --- a/.github/workflows/windows-conda.yml +++ b/.github/workflows/windows-conda.yml @@ -1,6 +1,18 @@ -# Copyright (c) 2021 Fangjun Kuang (csukuangfj@gmail.com) +# Copyright 2021 Fangjun Kuang (csukuangfj@gmail.com) # See ../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. name: build-windows-conda diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 2c2e4b83a..ff69f8eb3 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -1,6 +1,18 @@ -# Copyright (c) 2021 Fangjun Kuang (csukuangfj@gmail.com) +# Copyright 2021 Fangjun Kuang (csukuangfj@gmail.com) # See ../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. name: build-windows diff --git a/cmake/cub.cmake b/cmake/cub.cmake index ac9ea33d5..c65f8f6d2 100644 --- a/cmake/cub.cmake +++ b/cmake/cub.cmake @@ -1,5 +1,17 @@ -# Copyright (c) 2020 Fangjun Kuang (csukuangfj@gmail.com) +# Copyright 2020 Fangjun Kuang (csukuangfj@gmail.com) # See ../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. function(download_cub) if(CMAKE_VERSION VERSION_LESS 3.11) diff --git a/cmake/googletest.cmake b/cmake/googletest.cmake index b1a9bff76..0252268cd 100644 --- a/cmake/googletest.cmake +++ b/cmake/googletest.cmake @@ -1,5 +1,17 @@ -# Copyright (c) 2020 Fangjun Kuang (csukuangfj@gmail.com) +# Copyright 2020 Fangjun Kuang (csukuangfj@gmail.com) # See ../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. function(download_googltest) if(CMAKE_VERSION VERSION_LESS 3.11) diff --git a/cmake/moderngpu.cmake b/cmake/moderngpu.cmake index b809ce87c..efae0a211 100644 --- a/cmake/moderngpu.cmake +++ b/cmake/moderngpu.cmake @@ -1,5 +1,17 @@ -# Copyright (c) 2020 Mobvoi AI Lab, Beijing, China (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi AI Lab, Beijing, China (authors: Fangjun Kuang) # See ../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. function(download_moderngpu) if(CMAKE_VERSION VERSION_LESS 3.11) diff --git a/cmake/pybind11.cmake b/cmake/pybind11.cmake index 21669b691..ecebcb4a4 100644 --- a/cmake/pybind11.cmake +++ b/cmake/pybind11.cmake @@ -1,5 +1,17 @@ -# Copyright (c) 2020 Fangjun Kuang (csukuangfj@gmail.com) +# Copyright 2020 Fangjun Kuang (csukuangfj@gmail.com) # See ../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. function(download_pybind11) if(CMAKE_VERSION VERSION_LESS 3.11) diff --git a/cmake/transform.cmake b/cmake/transform.cmake index 98f37e985..994282fbe 100644 --- a/cmake/transform.cmake +++ b/cmake/transform.cmake @@ -1,5 +1,17 @@ -# Copyright (c) 2021 Fangjun Kuang (csukuangfj@gmail.com) +# Copyright 2021 Fangjun Kuang (csukuangfj@gmail.com) # See ../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # This function is used to copy foo.cu to foo.cc # Usage: diff --git a/k2/csrc/algorithms.cu b/k2/csrc/algorithms.cu index 90317e9a3..8c87bcd6f 100644 --- a/k2/csrc/algorithms.cu +++ b/k2/csrc/algorithms.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/algorithms.h b/k2/csrc/algorithms.h index bf0b4ca36..439ac5ba3 100644 --- a/k2/csrc/algorithms.h +++ b/k2/csrc/algorithms.h @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_ALGORITHMS_H_ diff --git a/k2/csrc/algorithms_test.cu b/k2/csrc/algorithms_test.cu index f25458543..5edc01cac 100644 --- a/k2/csrc/algorithms_test.cu +++ b/k2/csrc/algorithms_test.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/array.h b/k2/csrc/array.h index 8cdd15ffa..0052780f0 100644 --- a/k2/csrc/array.h +++ b/k2/csrc/array.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_ARRAY_H_ diff --git a/k2/csrc/array_inl.h b/k2/csrc/array_inl.h index 3ee80e106..b69d67055 100644 --- a/k2/csrc/array_inl.h +++ b/k2/csrc/array_inl.h @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * Mobvoi Inc. (authors: Fangjun Kuang) * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_ARRAY_INL_H_ diff --git a/k2/csrc/array_ops.cu b/k2/csrc/array_ops.cu index 1d444d9fa..551bbda13 100644 --- a/k2/csrc/array_ops.cu +++ b/k2/csrc/array_ops.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/array_ops.h b/k2/csrc/array_ops.h index 14b3cc1e2..1630ec9a2 100644 --- a/k2/csrc/array_ops.h +++ b/k2/csrc/array_ops.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_ARRAY_OPS_H_ diff --git a/k2/csrc/array_ops_inl.h b/k2/csrc/array_ops_inl.h index 9baa89714..a23b6e2b9 100644 --- a/k2/csrc/array_ops_inl.h +++ b/k2/csrc/array_ops_inl.h @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * Mobvoi Inc. (authors: Fangjun Kuang) * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_ARRAY_OPS_INL_H_ diff --git a/k2/csrc/array_ops_test.cu b/k2/csrc/array_ops_test.cu index 8ac6fdf12..e748c670f 100644 --- a/k2/csrc/array_ops_test.cu +++ b/k2/csrc/array_ops_test.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Haowen Qiu, Fangjun Kuang) + * Copyright 2020 Xiaomi Corporation (authors: Haowen Qiu, Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/array_test.cu b/k2/csrc/array_test.cu index 1f0210b15..82eb1b039 100644 --- a/k2/csrc/array_test.cu +++ b/k2/csrc/array_test.cu @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Haowen Qiu) * Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/benchmark/array_ops_benchmark.cu b/k2/csrc/benchmark/array_ops_benchmark.cu index f5ce8aec0..6d4e3be59 100644 --- a/k2/csrc/benchmark/array_ops_benchmark.cu +++ b/k2/csrc/benchmark/array_ops_benchmark.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang) + * Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/benchmark/benchmark.cu b/k2/csrc/benchmark/benchmark.cu index 9065cec1a..a05d132ea 100644 --- a/k2/csrc/benchmark/benchmark.cu +++ b/k2/csrc/benchmark/benchmark.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang) + * Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include #include diff --git a/k2/csrc/benchmark/benchmark.h b/k2/csrc/benchmark/benchmark.h index 90298247a..79b4a9e54 100644 --- a/k2/csrc/benchmark/benchmark.h +++ b/k2/csrc/benchmark/benchmark.h @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang) + * Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_BENCHMARK_BENCHMARK_H_ diff --git a/k2/csrc/benchmark/ragged_ops_benchmark.cu b/k2/csrc/benchmark/ragged_ops_benchmark.cu index 7276c6f1f..c29ceb8d6 100644 --- a/k2/csrc/benchmark/ragged_ops_benchmark.cu +++ b/k2/csrc/benchmark/ragged_ops_benchmark.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang) + * Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/benchmark/tensor_ops_benchmark.cu b/k2/csrc/benchmark/tensor_ops_benchmark.cu index 5e61830c5..fdfb7bc2a 100644 --- a/k2/csrc/benchmark/tensor_ops_benchmark.cu +++ b/k2/csrc/benchmark/tensor_ops_benchmark.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang) + * Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/context.cu b/k2/csrc/context.cu index fe0d1cf8e..978b92db5 100644 --- a/k2/csrc/context.cu +++ b/k2/csrc/context.cu @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * Xiaomi Corporation (author: Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "k2/csrc/context.h" diff --git a/k2/csrc/context.h b/k2/csrc/context.h index 792f97c7c..601c90687 100644 --- a/k2/csrc/context.h +++ b/k2/csrc/context.h @@ -1,9 +1,21 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey * Haowen Qiu * Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_CONTEXT_H_ diff --git a/k2/csrc/cub.h b/k2/csrc/cub.h index 2d547f9ad..55331f8b2 100644 --- a/k2/csrc/cub.h +++ b/k2/csrc/cub.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2021 xiaomi Corporation (authors: Fangjun Kuang) + * Copyright 2021 xiaomi Corporation (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * */ #ifndef K2_CSRC_CUB_H_ diff --git a/k2/csrc/cudpp/cudpp.cu b/k2/csrc/cudpp/cudpp.cu index f49c5209a..4c177a0f2 100644 --- a/k2/csrc/cudpp/cudpp.cu +++ b/k2/csrc/cudpp/cudpp.cu @@ -1,9 +1,21 @@ /** * k2/csrc/cudpp/cudpp.cu * - * Copyright (c) 2021 Xiaomi Corporation (authors: Fangjun Kuang) + * Copyright 2021 Xiaomi Corporation (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ // This file is modified from CUDPP. The code style is kept diff --git a/k2/csrc/cudpp/cudpp.h b/k2/csrc/cudpp/cudpp.h index 46cdc4eb2..395737ed9 100644 --- a/k2/csrc/cudpp/cudpp.h +++ b/k2/csrc/cudpp/cudpp.h @@ -1,9 +1,21 @@ /** * k2/csrc/cudpp/cudpp.h * - * Copyright (c) 2021 Xiaomi Corporation (authors: Fangjun Kuang) + * Copyright 2021 Xiaomi Corporation (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_CUDPP_CUDPP_H_ diff --git a/k2/csrc/default_context.cu b/k2/csrc/default_context.cu index d0fc0d18a..d606a0d94 100644 --- a/k2/csrc/default_context.cu +++ b/k2/csrc/default_context.cu @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * Xiaomi Corporation (authors: Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/device_guard.h b/k2/csrc/device_guard.h index f7ae6b97a..2ef0efc82 100644 --- a/k2/csrc/device_guard.h +++ b/k2/csrc/device_guard.h @@ -1,7 +1,19 @@ /** - * Copyright (c) 2021 Xiaomi Corporation (authors: Fangjun Kuang) + * Copyright 2021 Xiaomi Corporation (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_DEVICE_GUARD_H_ diff --git a/k2/csrc/dtype.cu b/k2/csrc/dtype.cu index 928486e53..671165f90 100644 --- a/k2/csrc/dtype.cu +++ b/k2/csrc/dtype.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "k2/csrc/dtype.h" diff --git a/k2/csrc/dtype.h b/k2/csrc/dtype.h index 71548dadc..f2b8eb2fd 100644 --- a/k2/csrc/dtype.h +++ b/k2/csrc/dtype.h @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_DTYPE_H_ diff --git a/k2/csrc/dtype_test.cu b/k2/csrc/dtype_test.cu index 6ac6f0b27..6d67631e3 100644 --- a/k2/csrc/dtype_test.cu +++ b/k2/csrc/dtype_test.cu @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Haowen Qiu) * Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/eval.h b/k2/csrc/eval.h index 7ebcd93c9..b28003406 100644 --- a/k2/csrc/eval.h +++ b/k2/csrc/eval.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey * Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_EVAL_H_ diff --git a/k2/csrc/fake_cuda.h b/k2/csrc/fake_cuda.h index 20f615f40..9acdb2ae7 100644 --- a/k2/csrc/fake_cuda.h +++ b/k2/csrc/fake_cuda.h @@ -1,7 +1,19 @@ /** - * Copyright (c) 2021 Xiaomi Corporation (authors: Fangjun Kuang) + * Copyright 2021 Xiaomi Corporation (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ // This file is used to compile k2 for CPU only diff --git a/k2/csrc/fsa.h b/k2/csrc/fsa.h index 25f50ec6b..c72a31d13 100644 --- a/k2/csrc/fsa.h +++ b/k2/csrc/fsa.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey) * Guoguo Chen * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_FSA_H_ diff --git a/k2/csrc/fsa_algo.cu b/k2/csrc/fsa_algo.cu index d7396daf2..331c08bee 100644 --- a/k2/csrc/fsa_algo.cu +++ b/k2/csrc/fsa_algo.cu @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/fsa_algo.h b/k2/csrc/fsa_algo.h index 339aa3a42..bad562cbf 100644 --- a/k2/csrc/fsa_algo.h +++ b/k2/csrc/fsa_algo.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_FSA_ALGO_H_ diff --git a/k2/csrc/fsa_algo_test.cu b/k2/csrc/fsa_algo_test.cu index e00037428..31758ad68 100644 --- a/k2/csrc/fsa_algo_test.cu +++ b/k2/csrc/fsa_algo_test.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/fsa_test.cu b/k2/csrc/fsa_test.cu index d3850ad67..b904c06e6 100644 --- a/k2/csrc/fsa_test.cu +++ b/k2/csrc/fsa_test.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/fsa_utils.cu b/k2/csrc/fsa_utils.cu index 5406d8342..1230d5b3c 100644 --- a/k2/csrc/fsa_utils.cu +++ b/k2/csrc/fsa_utils.cu @@ -1,9 +1,21 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * Mobvoi Inc. (authors: Fangjun Kuang) * Guoguo Chen * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifdef K2_WITH_CUDA diff --git a/k2/csrc/fsa_utils.h b/k2/csrc/fsa_utils.h index 1c0188a82..0f66c0f6a 100644 --- a/k2/csrc/fsa_utils.h +++ b/k2/csrc/fsa_utils.h @@ -1,9 +1,21 @@ /** - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * Guoguo Chen * Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_FSA_UTILS_H_ diff --git a/k2/csrc/fsa_utils_test.cu b/k2/csrc/fsa_utils_test.cu index 7c73d309e..a25a6a908 100644 --- a/k2/csrc/fsa_utils_test.cu +++ b/k2/csrc/fsa_utils_test.cu @@ -1,9 +1,21 @@ /** - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * Guoguo Chen * Xiaomi Corporation (authors: Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/hash.cu b/k2/csrc/hash.cu index d3b468bcc..2c2e9b79c 100644 --- a/k2/csrc/hash.cu +++ b/k2/csrc/hash.cu @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Haowen Qiu) * Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "k2/csrc/hash.h" diff --git a/k2/csrc/hash.h b/k2/csrc/hash.h index 91b039832..e970fdb10 100644 --- a/k2/csrc/hash.h +++ b/k2/csrc/hash.h @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_HASH_H_ diff --git a/k2/csrc/hash_test.cu b/k2/csrc/hash_test.cu index 67d90d7a9..5bcb8e6b5 100644 --- a/k2/csrc/hash_test.cu +++ b/k2/csrc/hash_test.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "gtest/gtest.h" diff --git a/k2/csrc/host/arcsort.h b/k2/csrc/host/arcsort.h index 05e1f2b1d..939c6614d 100644 --- a/k2/csrc/host/arcsort.h +++ b/k2/csrc/host/arcsort.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey * Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_HOST_ARCSORT_H_ diff --git a/k2/csrc/host/array.h b/k2/csrc/host/array.h index 38ea98561..3db875421 100644 --- a/k2/csrc/host/array.h +++ b/k2/csrc/host/array.h @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_HOST_ARRAY_H_ diff --git a/k2/csrc/host/aux_labels.h b/k2/csrc/host/aux_labels.h index bc32499e1..26b306d8e 100644 --- a/k2/csrc/host/aux_labels.h +++ b/k2/csrc/host/aux_labels.h @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_HOST_AUX_LABELS_H_ diff --git a/k2/csrc/host/connect.h b/k2/csrc/host/connect.h index 15d4ed2cc..3d7e0827e 100644 --- a/k2/csrc/host/connect.h +++ b/k2/csrc/host/connect.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_HOST_CONNECT_H_ diff --git a/k2/csrc/host/dense_fsa.h b/k2/csrc/host/dense_fsa.h index 1d8df6295..8b8bb1bfd 100644 --- a/k2/csrc/host/dense_fsa.h +++ b/k2/csrc/host/dense_fsa.h @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_HOST_DENSE_FSA_H_ diff --git a/k2/csrc/host/determinize.h b/k2/csrc/host/determinize.h index 4ad7a32d3..61306d9ed 100644 --- a/k2/csrc/host/determinize.h +++ b/k2/csrc/host/determinize.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey * Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_HOST_DETERMINIZE_H_ diff --git a/k2/csrc/host/determinize_impl.h b/k2/csrc/host/determinize_impl.h index 84b335fa3..6885fe8dc 100644 --- a/k2/csrc/host/determinize_impl.h +++ b/k2/csrc/host/determinize_impl.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey * Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_HOST_DETERMINIZE_IMPL_H_ diff --git a/k2/csrc/host/fsa.h b/k2/csrc/host/fsa.h index 986ce291e..1b6a0c9f8 100644 --- a/k2/csrc/host/fsa.h +++ b/k2/csrc/host/fsa.h @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_HOST_FSA_H_ diff --git a/k2/csrc/host/fsa_equivalent.h b/k2/csrc/host/fsa_equivalent.h index a6f118c42..62dabd2e1 100644 --- a/k2/csrc/host/fsa_equivalent.h +++ b/k2/csrc/host/fsa_equivalent.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey * Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/host/fsa_renderer.h b/k2/csrc/host/fsa_renderer.h index cbc5e21db..d5409ded8 100644 --- a/k2/csrc/host/fsa_renderer.h +++ b/k2/csrc/host/fsa_renderer.h @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/host/fsa_util.h b/k2/csrc/host/fsa_util.h index 78a10e4b6..3a8cd5575 100644 --- a/k2/csrc/host/fsa_util.h +++ b/k2/csrc/host/fsa_util.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey * Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_HOST_FSA_UTIL_H_ diff --git a/k2/csrc/host/intersect.h b/k2/csrc/host/intersect.h index 33b883a19..56ed4d329 100644 --- a/k2/csrc/host/intersect.h +++ b/k2/csrc/host/intersect.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey * Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_HOST_INTERSECT_H_ diff --git a/k2/csrc/host/properties.h b/k2/csrc/host/properties.h index 1185db6d8..7f868b6ce 100644 --- a/k2/csrc/host/properties.h +++ b/k2/csrc/host/properties.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey * Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_HOST_PROPERTIES_H_ diff --git a/k2/csrc/host/rmepsilon.h b/k2/csrc/host/rmepsilon.h index 137e02811..a2e63d3f4 100644 --- a/k2/csrc/host/rmepsilon.h +++ b/k2/csrc/host/rmepsilon.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey * Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_HOST_RMEPSILON_H_ diff --git a/k2/csrc/host/topsort.h b/k2/csrc/host/topsort.h index b741cc5f9..aebdd85c5 100644 --- a/k2/csrc/host/topsort.h +++ b/k2/csrc/host/topsort.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey * Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_HOST_TOPSORT_H_ diff --git a/k2/csrc/host/util.h b/k2/csrc/host/util.h index 612761957..55a7110dc 100644 --- a/k2/csrc/host/util.h +++ b/k2/csrc/host/util.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Haowen Qiu) * Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_HOST_UTIL_H_ diff --git a/k2/csrc/host/weights.h b/k2/csrc/host/weights.h index 91b49234f..46af24df9 100644 --- a/k2/csrc/host/weights.h +++ b/k2/csrc/host/weights.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey * Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_HOST_WEIGHTS_H_ diff --git a/k2/csrc/host_shim.cu b/k2/csrc/host_shim.cu index 0a3247d20..35591469f 100644 --- a/k2/csrc/host_shim.cu +++ b/k2/csrc/host_shim.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/host_shim.h b/k2/csrc/host_shim.h index ac1f32468..e0eb48c13 100644 --- a/k2/csrc/host_shim.h +++ b/k2/csrc/host_shim.h @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_HOST_SHIM_H_ diff --git a/k2/csrc/host_shim_test.cu b/k2/csrc/host_shim_test.cu index 2b77cd79d..435d87ae6 100644 --- a/k2/csrc/host_shim_test.cu +++ b/k2/csrc/host_shim_test.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/intersect.cu b/k2/csrc/intersect.cu index 004063bb5..ef14ae9e8 100644 --- a/k2/csrc/intersect.cu +++ b/k2/csrc/intersect.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifdef K2_WITH_CUDA diff --git a/k2/csrc/intersect_dense.cu b/k2/csrc/intersect_dense.cu index eb9271a16..f57f79cc4 100644 --- a/k2/csrc/intersect_dense.cu +++ b/k2/csrc/intersect_dense.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/intersect_dense_pruned.cu b/k2/csrc/intersect_dense_pruned.cu index f92c83ddc..61b0ea9c0 100644 --- a/k2/csrc/intersect_dense_pruned.cu +++ b/k2/csrc/intersect_dense_pruned.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/intersect_test.cu b/k2/csrc/intersect_test.cu index 4fa2b02be..6236b824d 100644 --- a/k2/csrc/intersect_test.cu +++ b/k2/csrc/intersect_test.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/log.cu b/k2/csrc/log.cu index 85daf8930..3777622e5 100644 --- a/k2/csrc/log.cu +++ b/k2/csrc/log.cu @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * * Stack trace related stuff is from kaldi. * Refer to * https://github.com/kaldi-asr/kaldi/blob/master/src/base/kaldi-error.cc diff --git a/k2/csrc/log.h b/k2/csrc/log.h index 844376ef1..641748731 100644 --- a/k2/csrc/log.h +++ b/k2/csrc/log.h @@ -1,9 +1,21 @@ /** - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * Xiaomi Corporation (authors: Meixu Song) * * See LICENSE for clarification regarding multiple authors * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * * * The following environment variables are related to logging: * diff --git a/k2/csrc/log_test.cu b/k2/csrc/log_test.cu index 73bda50c5..bd168bc97 100644 --- a/k2/csrc/log_test.cu +++ b/k2/csrc/log_test.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/macros.h b/k2/csrc/macros.h index 47e9ecd6c..663c8b1bf 100644 --- a/k2/csrc/macros.h +++ b/k2/csrc/macros.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang + * Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang * Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_MACROS_H_ diff --git a/k2/csrc/macros_test.cu b/k2/csrc/macros_test.cu index 5cc58d728..6963cc45e 100644 --- a/k2/csrc/macros_test.cu +++ b/k2/csrc/macros_test.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang) + * Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/math.cu b/k2/csrc/math.cu index 3f65171ac..f53b854f0 100644 --- a/k2/csrc/math.cu +++ b/k2/csrc/math.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include // strncmp diff --git a/k2/csrc/math.h b/k2/csrc/math.h index 4afc71471..65b6f8e91 100644 --- a/k2/csrc/math.h +++ b/k2/csrc/math.h @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_MATH_H_ diff --git a/k2/csrc/math_test.cu b/k2/csrc/math_test.cu index 94bdc539c..2b9bd5730 100644 --- a/k2/csrc/math_test.cu +++ b/k2/csrc/math_test.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang) + * Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "gtest/gtest.h" diff --git a/k2/csrc/moderngpu.h b/k2/csrc/moderngpu.h index e7cea80e7..6b7180be3 100644 --- a/k2/csrc/moderngpu.h +++ b/k2/csrc/moderngpu.h @@ -1,7 +1,19 @@ /** - * Copyright (c) 2021 Xiaomi Corporation (authors: Fangjun Kuang) + * Copyright 2021 Xiaomi Corporation (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_MODERNGPU_H_ diff --git a/k2/csrc/moderngpu_allocator.cu b/k2/csrc/moderngpu_allocator.cu index b1cb7eed3..5aaad80e3 100644 --- a/k2/csrc/moderngpu_allocator.cu +++ b/k2/csrc/moderngpu_allocator.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include // NOLINT diff --git a/k2/csrc/moderngpu_allocator.h b/k2/csrc/moderngpu_allocator.h index 59849d03a..d21ca3181 100644 --- a/k2/csrc/moderngpu_allocator.h +++ b/k2/csrc/moderngpu_allocator.h @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_MODERNGPU_ALLOCATOR_H_ diff --git a/k2/csrc/nvtx.h b/k2/csrc/nvtx.h index 6b1e2e68f..ce131d79a 100644 --- a/k2/csrc/nvtx.h +++ b/k2/csrc/nvtx.h @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_NVTX_H_ #define K2_CSRC_NVTX_H_ diff --git a/k2/csrc/nvtx_test.cu b/k2/csrc/nvtx_test.cu index 5f462c4ba..8a6d99ff9 100644 --- a/k2/csrc/nvtx_test.cu +++ b/k2/csrc/nvtx_test.cu @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * * * Test for NVTX. * diff --git a/k2/csrc/pinned_context.cu b/k2/csrc/pinned_context.cu index 5f950480f..b46270a87 100644 --- a/k2/csrc/pinned_context.cu +++ b/k2/csrc/pinned_context.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang) + * Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include // memcpy diff --git a/k2/csrc/pinned_context_test.cu b/k2/csrc/pinned_context_test.cu index 7c47c7ea6..cae108153 100644 --- a/k2/csrc/pinned_context_test.cu +++ b/k2/csrc/pinned_context_test.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang) + * Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "gtest/gtest.h" diff --git a/k2/csrc/pytorch_context.cu b/k2/csrc/pytorch_context.cu index e4b49eff6..e7354dd6a 100644 --- a/k2/csrc/pytorch_context.cu +++ b/k2/csrc/pytorch_context.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/pytorch_context.h b/k2/csrc/pytorch_context.h index 123b66c38..f164badd0 100644 --- a/k2/csrc/pytorch_context.h +++ b/k2/csrc/pytorch_context.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey) * Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_PYTORCH_CONTEXT_H_ diff --git a/k2/csrc/pytorch_context_test.cu b/k2/csrc/pytorch_context_test.cu index d49fe0eff..217c89f3f 100644 --- a/k2/csrc/pytorch_context_test.cu +++ b/k2/csrc/pytorch_context_test.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2021 Xiaomi Corporation (authors: Fangjun Kuang) + * Copyright 2021 Xiaomi Corporation (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "c10/cuda/CUDAFunctions.h" diff --git a/k2/csrc/ragged.cu b/k2/csrc/ragged.cu index 1b7140309..2a1c0d1cc 100644 --- a/k2/csrc/ragged.cu +++ b/k2/csrc/ragged.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/ragged.h b/k2/csrc/ragged.h index 1e550e931..e199ada65 100644 --- a/k2/csrc/ragged.h +++ b/k2/csrc/ragged.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey * Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_RAGGED_H_ diff --git a/k2/csrc/ragged_inl.h b/k2/csrc/ragged_inl.h index 78bb21caa..b017f2c91 100644 --- a/k2/csrc/ragged_inl.h +++ b/k2/csrc/ragged_inl.h @@ -2,11 +2,23 @@ * * This is to be included only from ragged_ops.h. * - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey * Haowen Qiu) * Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_RAGGED_INL_H_ diff --git a/k2/csrc/ragged_ops.cu b/k2/csrc/ragged_ops.cu index be3d85ecb..8ea0f08d2 100644 --- a/k2/csrc/ragged_ops.cu +++ b/k2/csrc/ragged_ops.cu @@ -1,9 +1,21 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * Mobvoi Inc. (authors: Fangjun Kuang) * Yiming Wang * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/ragged_ops.h b/k2/csrc/ragged_ops.h index 1144442e0..9f76cb53a 100644 --- a/k2/csrc/ragged_ops.h +++ b/k2/csrc/ragged_ops.h @@ -1,9 +1,21 @@ /** - * Copyright (c) 2020-2021 Xiaomi Corporation (authors: Daniel Povey + * Copyright 2020-2021 Xiaomi Corporation (authors: Daniel Povey * Haowen Qiu * Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_RAGGED_OPS_H_ diff --git a/k2/csrc/ragged_ops_inl.h b/k2/csrc/ragged_ops_inl.h index ab9fe7951..bc9fb0206 100644 --- a/k2/csrc/ragged_ops_inl.h +++ b/k2/csrc/ragged_ops_inl.h @@ -1,9 +1,21 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey * Haowen Qiu) * Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_RAGGED_OPS_INL_H_ diff --git a/k2/csrc/ragged_shape_test.cu b/k2/csrc/ragged_shape_test.cu index 2965b37cd..f09d7edcd 100644 --- a/k2/csrc/ragged_shape_test.cu +++ b/k2/csrc/ragged_shape_test.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/ragged_tensor_ops.h b/k2/csrc/ragged_tensor_ops.h index 7115ace81..c0350d48d 100644 --- a/k2/csrc/ragged_tensor_ops.h +++ b/k2/csrc/ragged_tensor_ops.h @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_RAGGED_TENSOR_OPS_H_ diff --git a/k2/csrc/ragged_test.cu b/k2/csrc/ragged_test.cu index 4b2ee5087..9efda15dc 100644 --- a/k2/csrc/ragged_test.cu +++ b/k2/csrc/ragged_test.cu @@ -1,9 +1,21 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * Mobvoi Inc. (authors: Fangjun Kuang) * Yiming Wang * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/ragged_utils.cu b/k2/csrc/ragged_utils.cu index c4342aab1..db48acab6 100644 --- a/k2/csrc/ragged_utils.cu +++ b/k2/csrc/ragged_utils.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/ragged_utils.h b/k2/csrc/ragged_utils.h index 24cb59ed3..73db02d35 100644 --- a/k2/csrc/ragged_utils.h +++ b/k2/csrc/ragged_utils.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey * Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_RAGGED_UTILS_H_ diff --git a/k2/csrc/ragged_utils_inl.h b/k2/csrc/ragged_utils_inl.h index 997bd5603..1fffa11c5 100644 --- a/k2/csrc/ragged_utils_inl.h +++ b/k2/csrc/ragged_utils_inl.h @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_RAGGED_UTILS_INL_H_ diff --git a/k2/csrc/ragged_utils_test.cu b/k2/csrc/ragged_utils_test.cu index 499350ea1..9b850dfe9 100644 --- a/k2/csrc/ragged_utils_test.cu +++ b/k2/csrc/ragged_utils_test.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Haowen Qiu, Daniel Povey) + * Copyright 2020 Xiaomi Corporation (authors: Haowen Qiu, Daniel Povey) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/rand.cu b/k2/csrc/rand.cu index 14af21826..426355baa 100644 --- a/k2/csrc/rand.cu +++ b/k2/csrc/rand.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang) + * Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/rand.h b/k2/csrc/rand.h index d54949e6b..12fcf9778 100644 --- a/k2/csrc/rand.h +++ b/k2/csrc/rand.h @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang) + * Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_RAND_H_ diff --git a/k2/csrc/rand_test.cu b/k2/csrc/rand_test.cu index dd78c6a5b..1370c8cc6 100644 --- a/k2/csrc/rand_test.cu +++ b/k2/csrc/rand_test.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang) + * Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "gtest/gtest.h" diff --git a/k2/csrc/rm_epsilon.cu b/k2/csrc/rm_epsilon.cu index 46453521a..b8774bf53 100644 --- a/k2/csrc/rm_epsilon.cu +++ b/k2/csrc/rm_epsilon.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/rm_epsilon.h b/k2/csrc/rm_epsilon.h index dcdfffc02..94ca97731 100644 --- a/k2/csrc/rm_epsilon.h +++ b/k2/csrc/rm_epsilon.h @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_RM_EPSILON_H_ diff --git a/k2/csrc/rm_epsilon_test.cu b/k2/csrc/rm_epsilon_test.cu index 89a49f5a8..d0140c64b 100644 --- a/k2/csrc/rm_epsilon_test.cu +++ b/k2/csrc/rm_epsilon_test.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/semaphore.h b/k2/csrc/semaphore.h index a0c0f8c57..cae88a7d4 100644 --- a/k2/csrc/semaphore.h +++ b/k2/csrc/semaphore.h @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_SEMAPHORE_H_ diff --git a/k2/csrc/tensor.cu b/k2/csrc/tensor.cu index e30778b44..40531f700 100644 --- a/k2/csrc/tensor.cu +++ b/k2/csrc/tensor.cu @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Haowen Qiu) * Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/tensor.h b/k2/csrc/tensor.h index 02edd5c1f..8fbb28df2 100644 --- a/k2/csrc/tensor.h +++ b/k2/csrc/tensor.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_TENSOR_H_ diff --git a/k2/csrc/tensor_ops_test.cu b/k2/csrc/tensor_ops_test.cu index 258656753..9c96b4ccc 100644 --- a/k2/csrc/tensor_ops_test.cu +++ b/k2/csrc/tensor_ops_test.cu @@ -1,7 +1,19 @@ /** -// Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang, Haowen Qiu) +// Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang, Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/tensor_test.cu b/k2/csrc/tensor_test.cu index e1c303768..9a5ff16e8 100644 --- a/k2/csrc/tensor_test.cu +++ b/k2/csrc/tensor_test.cu @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Haowen Qiu) * Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/test_utils.cu b/k2/csrc/test_utils.cu index 70a69d7cb..9b6cc9bb4 100644 --- a/k2/csrc/test_utils.cu +++ b/k2/csrc/test_utils.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/test_utils.h b/k2/csrc/test_utils.h index d0a3d0a9c..098c78a2e 100644 --- a/k2/csrc/test_utils.h +++ b/k2/csrc/test_utils.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Haowen Qiu) * Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_TEST_UTILS_H_ diff --git a/k2/csrc/thread_pool.cu b/k2/csrc/thread_pool.cu index ad37fd00f..1570d858a 100644 --- a/k2/csrc/thread_pool.cu +++ b/k2/csrc/thread_pool.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang) + * Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/thread_pool.h b/k2/csrc/thread_pool.h index 17cfa24ec..438d28468 100644 --- a/k2/csrc/thread_pool.h +++ b/k2/csrc/thread_pool.h @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang) + * Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_THREAD_POOL_H_ #define K2_CSRC_THREAD_POOL_H_ diff --git a/k2/csrc/thread_pool_test.cu b/k2/csrc/thread_pool_test.cu index d91ae01e1..5e7f10130 100644 --- a/k2/csrc/thread_pool_test.cu +++ b/k2/csrc/thread_pool_test.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang) + * Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/timer.cu b/k2/csrc/timer.cu index 42ea5c5b1..8c83bf5a0 100644 --- a/k2/csrc/timer.cu +++ b/k2/csrc/timer.cu @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Haowen Qiu) * Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include // NOLINT diff --git a/k2/csrc/timer.h b/k2/csrc/timer.h index 6afc59428..9056bc83d 100644 --- a/k2/csrc/timer.h +++ b/k2/csrc/timer.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Haowen Qiu) * Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_TIMER_H_ diff --git a/k2/csrc/top_sort.cu b/k2/csrc/top_sort.cu index 4262610b1..2c0a925c3 100644 --- a/k2/csrc/top_sort.cu +++ b/k2/csrc/top_sort.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/top_sort_test.cu b/k2/csrc/top_sort_test.cu index 9e58ccf02..e8e19d074 100644 --- a/k2/csrc/top_sort_test.cu +++ b/k2/csrc/top_sort_test.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/utils.cu b/k2/csrc/utils.cu index e7c7db1f0..66aa9861b 100644 --- a/k2/csrc/utils.cu +++ b/k2/csrc/utils.cu @@ -1,7 +1,19 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/csrc/utils.h b/k2/csrc/utils.h index 411aa3622..a3767e104 100644 --- a/k2/csrc/utils.h +++ b/k2/csrc/utils.h @@ -1,9 +1,21 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey * Haowen Qiu) * Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_UTILS_H_ diff --git a/k2/csrc/utils_inl.h b/k2/csrc/utils_inl.h index 5a326d5d9..8214022ff 100644 --- a/k2/csrc/utils_inl.h +++ b/k2/csrc/utils_inl.h @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) + * Copyright 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_CSRC_UTILS_INL_H_ diff --git a/k2/csrc/utils_test.cu b/k2/csrc/utils_test.cu index a0ba9aad5..01c27ecd7 100644 --- a/k2/csrc/utils_test.cu +++ b/k2/csrc/utils_test.cu @@ -1,8 +1,20 @@ /** - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * Xiaomi Corporation (authors: Haowen Qiu) * * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/python/csrc/k2.cu b/k2/python/csrc/k2.cu index 293919f85..0f5e30e57 100644 --- a/k2/python/csrc/k2.cu +++ b/k2/python/csrc/k2.cu @@ -2,10 +2,22 @@ * @brief python wrappers for k2. * * @copyright - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * @copyright * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "k2/python/csrc/k2.h" diff --git a/k2/python/csrc/k2.h b/k2/python/csrc/k2.h index 75d562337..104b8ba8a 100644 --- a/k2/python/csrc/k2.h +++ b/k2/python/csrc/k2.h @@ -2,10 +2,22 @@ * @brief python wrappers for k2. * * @copyright - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * @copyright * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_PYTHON_CSRC_K2_H_ diff --git a/k2/python/csrc/torch.cu b/k2/python/csrc/torch.cu index 0c62b2cc3..0e6851488 100644 --- a/k2/python/csrc/torch.cu +++ b/k2/python/csrc/torch.cu @@ -2,10 +2,22 @@ * @brief Everything related to PyTorch for k2 Python wrappers. * * @copyright - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * @copyright * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "k2/python/csrc/torch.h" diff --git a/k2/python/csrc/torch.h b/k2/python/csrc/torch.h index 547fb792c..5318350bc 100644 --- a/k2/python/csrc/torch.h +++ b/k2/python/csrc/torch.h @@ -2,10 +2,22 @@ * @brief Everything related to PyTorch for k2 Python wrappers. * * @copyright - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * @copyright * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_PYTHON_CSRC_TORCH_H_ diff --git a/k2/python/csrc/torch/arc.cu b/k2/python/csrc/torch/arc.cu index ec0387865..39a8c84a9 100644 --- a/k2/python/csrc/torch/arc.cu +++ b/k2/python/csrc/torch/arc.cu @@ -2,10 +2,22 @@ * @brief python wrappers for Arc. * * @copyright - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * @copyright * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/python/csrc/torch/arc.h b/k2/python/csrc/torch/arc.h index 3e58b5dd5..899ee3371 100644 --- a/k2/python/csrc/torch/arc.h +++ b/k2/python/csrc/torch/arc.h @@ -2,10 +2,22 @@ * @brief python wrappers for Arc. * * @copyright - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * @copyright * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_PYTHON_CSRC_TORCH_ARC_H_ diff --git a/k2/python/csrc/torch/discounted_cum_sum.cu b/k2/python/csrc/torch/discounted_cum_sum.cu index 9e1670722..2aba8135d 100644 --- a/k2/python/csrc/torch/discounted_cum_sum.cu +++ b/k2/python/csrc/torch/discounted_cum_sum.cu @@ -2,10 +2,22 @@ * @brief wraps discounted_cum_sum code. * * @copyright - * Copyright (c) 2010 Xiaomi Corp. (authors: Daniel Povey) + * Copyright 2010 Xiaomi Corp. (authors: Daniel Povey) * * @copyright * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "k2/python/csrc/torch/discounted_cum_sum.h" diff --git a/k2/python/csrc/torch/discounted_cum_sum.h b/k2/python/csrc/torch/discounted_cum_sum.h index 25d43aa4f..24cdd68a0 100644 --- a/k2/python/csrc/torch/discounted_cum_sum.h +++ b/k2/python/csrc/torch/discounted_cum_sum.h @@ -2,10 +2,22 @@ * @brief python wrapper for DiscountedCumSum * * @copyright - * Copyright (c) 2021 Xiaomi Corp. (authors: Daniel Povey) + * Copyright 2021 Xiaomi Corp. (authors: Daniel Povey) * * @copyright * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_PYTHON_CSRC_TORCH_DISCOUNTED_CUM_SUM_H_ diff --git a/k2/python/csrc/torch/fsa.cu b/k2/python/csrc/torch/fsa.cu index 08b00b712..63e540869 100644 --- a/k2/python/csrc/torch/fsa.cu +++ b/k2/python/csrc/torch/fsa.cu @@ -2,12 +2,24 @@ * @brief python wrappers for FSA. * * @copyright - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * Xiaomi Corporation (authors: Haowen Qiu) * Guoguo Chen * * @copyright * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/python/csrc/torch/fsa.h b/k2/python/csrc/torch/fsa.h index 8f64e6edc..112fc0711 100644 --- a/k2/python/csrc/torch/fsa.h +++ b/k2/python/csrc/torch/fsa.h @@ -2,10 +2,22 @@ * @brief python wrappers for FSA. * * @copyright - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * @copyright * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_PYTHON_CSRC_TORCH_FSA_H_ diff --git a/k2/python/csrc/torch/fsa_algo.cu b/k2/python/csrc/torch/fsa_algo.cu index cb64d4cb3..8f8d16537 100644 --- a/k2/python/csrc/torch/fsa_algo.cu +++ b/k2/python/csrc/torch/fsa_algo.cu @@ -2,11 +2,23 @@ * @brief python wrappers for fsa_algo. * * @copyright - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * Xiaomi Corporation (authors: Haowen Qiu) * * @copyright * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/python/csrc/torch/fsa_algo.h b/k2/python/csrc/torch/fsa_algo.h index 891cec723..1765aad9c 100644 --- a/k2/python/csrc/torch/fsa_algo.h +++ b/k2/python/csrc/torch/fsa_algo.h @@ -2,10 +2,22 @@ * @brief python wrappers for fsa_algo. * * @copyright - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * @copyright * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_PYTHON_CSRC_TORCH_FSA_ALGO_H_ diff --git a/k2/python/csrc/torch/index_add.cu b/k2/python/csrc/torch/index_add.cu index bca7fa1ce..6652668ab 100644 --- a/k2/python/csrc/torch/index_add.cu +++ b/k2/python/csrc/torch/index_add.cu @@ -7,10 +7,22 @@ * torch.int64. Furthermore, it ignores index[i] == -1. * * @copyright - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * @copyright * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "k2/csrc/context.h" diff --git a/k2/python/csrc/torch/index_add.h b/k2/python/csrc/torch/index_add.h index 2a87b621a..5586650c9 100644 --- a/k2/python/csrc/torch/index_add.h +++ b/k2/python/csrc/torch/index_add.h @@ -7,10 +7,22 @@ * torch.int64. Furthermore, it ignores index[i] == -1. * * @copyright - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * @copyright * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_PYTHON_CSRC_TORCH_INDEX_ADD_H_ diff --git a/k2/python/csrc/torch/index_select.cu b/k2/python/csrc/torch/index_select.cu index c20da8094..e0f6438bb 100644 --- a/k2/python/csrc/torch/index_select.cu +++ b/k2/python/csrc/torch/index_select.cu @@ -5,11 +5,23 @@ * the destination entry to 0. * * @copyright - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * Xiaomi Corp. (author: Daniel Povey, Haowen Qiu) * * @copyright * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/python/csrc/torch/index_select.h b/k2/python/csrc/torch/index_select.h index 6d683b4a0..7231bf0b2 100644 --- a/k2/python/csrc/torch/index_select.h +++ b/k2/python/csrc/torch/index_select.h @@ -5,10 +5,22 @@ * the destination entry to 0. * * @copyright - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * @copyright * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_PYTHON_CSRC_TORCH_INDEX_SELECT_H_ diff --git a/k2/python/csrc/torch/ragged.cu b/k2/python/csrc/torch/ragged.cu index d226001d4..d00477b68 100644 --- a/k2/python/csrc/torch/ragged.cu +++ b/k2/python/csrc/torch/ragged.cu @@ -2,11 +2,23 @@ * @brief python wrappers for Ragged. * * @copyright - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang, Liyong Guo) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang, Liyong Guo) * Xiaomi Corporation (authors: Haowen Qiu) * * @copyright * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/python/csrc/torch/ragged.h b/k2/python/csrc/torch/ragged.h index b452729bd..c0bcacb53 100644 --- a/k2/python/csrc/torch/ragged.h +++ b/k2/python/csrc/torch/ragged.h @@ -2,10 +2,22 @@ * @brief python wrappers for Ragged. * * @copyright - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * @copyright * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_PYTHON_CSRC_TORCH_RAGGED_H_ diff --git a/k2/python/csrc/torch/ragged_ops.cu b/k2/python/csrc/torch/ragged_ops.cu index 1e9260f58..756a341a6 100644 --- a/k2/python/csrc/torch/ragged_ops.cu +++ b/k2/python/csrc/torch/ragged_ops.cu @@ -2,11 +2,23 @@ * @brief python wrappers for ragged_ops.h * * @copyright - * Copyright (c) 2020 Xiaomi Corp. (authors: Fangjun Kuang + * Copyright 2020 Xiaomi Corp. (authors: Fangjun Kuang * Daniel Povey) * * @copyright * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/python/csrc/torch/ragged_ops.h b/k2/python/csrc/torch/ragged_ops.h index 2e325a63d..113672c3d 100644 --- a/k2/python/csrc/torch/ragged_ops.h +++ b/k2/python/csrc/torch/ragged_ops.h @@ -2,10 +2,22 @@ * @brief python wrappers for ragged_ops.h * * @copyright - * Copyright (c) 2020 Xiaomi Corp. (author: Fangjun Kuang) + * Copyright 2020 Xiaomi Corp. (author: Fangjun Kuang) * * @copyright * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_PYTHON_CSRC_TORCH_RAGGED_OPS_H_ diff --git a/k2/python/csrc/torch/torch_util.cu b/k2/python/csrc/torch/torch_util.cu index 8052a430f..b769aca5c 100644 --- a/k2/python/csrc/torch/torch_util.cu +++ b/k2/python/csrc/torch/torch_util.cu @@ -1,9 +1,21 @@ /** * @copyright - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * @copyright * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/k2/python/csrc/torch/torch_util.h b/k2/python/csrc/torch/torch_util.h index a0fbc8ce9..da1f3e98e 100644 --- a/k2/python/csrc/torch/torch_util.h +++ b/k2/python/csrc/torch/torch_util.h @@ -1,9 +1,21 @@ /** * @copyright - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * @copyright * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_PYTHON_CSRC_TORCH_TORCH_UTIL_H_ diff --git a/k2/python/csrc/version.cu b/k2/python/csrc/version.cu index 3f2789910..122f6a91c 100644 --- a/k2/python/csrc/version.cu +++ b/k2/python/csrc/version.cu @@ -2,10 +2,22 @@ * @brief Python wrappers for k2/csrc/version.h * * @copyright - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * @copyright * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "k2/csrc/log.h" diff --git a/k2/python/csrc/version.h b/k2/python/csrc/version.h index 316f6e8bd..3f343a106 100644 --- a/k2/python/csrc/version.h +++ b/k2/python/csrc/version.h @@ -2,10 +2,22 @@ * @brief python wrappers for k2/csrc/version.h * * @copyright - * Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) + * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * @copyright * See LICENSE for clarification regarding multiple authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef K2_PYTHON_CSRC_VERSION_H_ diff --git a/k2/python/host/k2host/array.py b/k2/python/host/k2host/array.py index 821eba64f..daaac9ef2 100644 --- a/k2/python/host/k2host/array.py +++ b/k2/python/host/k2host/array.py @@ -1,6 +1,18 @@ -# Copyright (c) 2020 Xiaomi Corporation (author: Haowen Qiu) +# Copyright 2020 Xiaomi Corporation (author: Haowen Qiu) # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import torch from torch.utils.dlpack import to_dlpack diff --git a/k2/python/host/k2host/aux_labels.py b/k2/python/host/k2host/aux_labels.py index 0b010cc1d..70cb3ce09 100644 --- a/k2/python/host/k2host/aux_labels.py +++ b/k2/python/host/k2host/aux_labels.py @@ -1,6 +1,18 @@ -# Copyright (c) 2020 Xiaomi Corporation (author: Haowen Qiu) +# Copyright 2020 Xiaomi Corporation (author: Haowen Qiu) # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import torch from torch.utils.dlpack import to_dlpack diff --git a/k2/python/host/k2host/fsa.py b/k2/python/host/k2host/fsa.py index a93c0409e..59196a422 100644 --- a/k2/python/host/k2host/fsa.py +++ b/k2/python/host/k2host/fsa.py @@ -1,6 +1,18 @@ -# Copyright (c) 2020 Xiaomi Corporation (author: Haowen Qiu) +# Copyright 2020 Xiaomi Corporation (author: Haowen Qiu) # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import torch from torch.utils.dlpack import to_dlpack diff --git a/k2/python/host/k2host/fsa_algo.py b/k2/python/host/k2host/fsa_algo.py index 210c74df2..0f931641c 100644 --- a/k2/python/host/k2host/fsa_algo.py +++ b/k2/python/host/k2host/fsa_algo.py @@ -1,6 +1,18 @@ -# Copyright (c) 2020 Xiaomi Corporation (author: Haowen Qiu) +# Copyright 2020 Xiaomi Corporation (author: Haowen Qiu) # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import torch from torch.utils.dlpack import to_dlpack diff --git a/k2/python/host/k2host/fsa_equivalent.py b/k2/python/host/k2host/fsa_equivalent.py index 432ad66d0..e23452ac7 100644 --- a/k2/python/host/k2host/fsa_equivalent.py +++ b/k2/python/host/k2host/fsa_equivalent.py @@ -1,6 +1,18 @@ -# Copyright (c) 2020 Xiaomi Corporation (author: Haowen Qiu) +# Copyright 2020 Xiaomi Corporation (author: Haowen Qiu) # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import torch from torch.utils.dlpack import to_dlpack diff --git a/k2/python/host/k2host/fsa_util.py b/k2/python/host/k2host/fsa_util.py index 5f7bbe90c..e1f66eb70 100644 --- a/k2/python/host/k2host/fsa_util.py +++ b/k2/python/host/k2host/fsa_util.py @@ -1,6 +1,18 @@ -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import re import struct diff --git a/k2/python/host/k2host/properties.py b/k2/python/host/k2host/properties.py index 6b09e9510..1fdaa9784 100644 --- a/k2/python/host/k2host/properties.py +++ b/k2/python/host/k2host/properties.py @@ -1,6 +1,18 @@ -# Copyright (c) 2020 Xiaomi Corporation (author: Haowen Qiu) +# Copyright 2020 Xiaomi Corporation (author: Haowen Qiu) # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import torch from torch.utils.dlpack import to_dlpack diff --git a/k2/python/host/k2host/weights.py b/k2/python/host/k2host/weights.py index be2832039..243308541 100644 --- a/k2/python/host/k2host/weights.py +++ b/k2/python/host/k2host/weights.py @@ -1,6 +1,18 @@ -# Copyright (c) 2020 Xiaomi Corporation (author: Haowen Qiu) +# Copyright 2020 Xiaomi Corporation (author: Haowen Qiu) # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import torch from torch.utils.dlpack import to_dlpack diff --git a/k2/python/host/tests/arcsort_test.py b/k2/python/host/tests/arcsort_test.py index 5b24cced7..833d5534f 100644 --- a/k2/python/host/tests/arcsort_test.py +++ b/k2/python/host/tests/arcsort_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Xiaomi Corporation (author: Haowen Qiu) +# Copyright 2020 Xiaomi Corporation (author: Haowen Qiu) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/host/tests/array_test.py b/k2/python/host/tests/array_test.py index e3b9f4d59..2b9a08d43 100644 --- a/k2/python/host/tests/array_test.py +++ b/k2/python/host/tests/array_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Xiaomi Corporation (author: Haowen Qiu) +# Copyright 2020 Xiaomi Corporation (author: Haowen Qiu) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/host/tests/aux_labels_test.py b/k2/python/host/tests/aux_labels_test.py index 2d7bd3623..821f178d4 100644 --- a/k2/python/host/tests/aux_labels_test.py +++ b/k2/python/host/tests/aux_labels_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Xiaomi Corporation (author: Haowen Qiu) +# Copyright 2020 Xiaomi Corporation (author: Haowen Qiu) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/host/tests/connect_test.py b/k2/python/host/tests/connect_test.py index 42cf15db6..cbd301be2 100644 --- a/k2/python/host/tests/connect_test.py +++ b/k2/python/host/tests/connect_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Xiaomi Corporation (author: Haowen Qiu) +# Copyright 2020 Xiaomi Corporation (author: Haowen Qiu) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/host/tests/determinize_test.py b/k2/python/host/tests/determinize_test.py index 5734d025e..854a051d3 100644 --- a/k2/python/host/tests/determinize_test.py +++ b/k2/python/host/tests/determinize_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Xiaomi Corporation (author: Haowen Qiu) +# Copyright 2020 Xiaomi Corporation (author: Haowen Qiu) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/host/tests/fsa_equivalent_test.py b/k2/python/host/tests/fsa_equivalent_test.py index e81dfe424..c328246c5 100644 --- a/k2/python/host/tests/fsa_equivalent_test.py +++ b/k2/python/host/tests/fsa_equivalent_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Xiaomi Corporation (author: Haowen Qiu) +# Copyright 2020 Xiaomi Corporation (author: Haowen Qiu) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/host/tests/fsa_test.py b/k2/python/host/tests/fsa_test.py index 932af4ab5..7b51b5798 100644 --- a/k2/python/host/tests/fsa_test.py +++ b/k2/python/host/tests/fsa_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/host/tests/intersect_test.py b/k2/python/host/tests/intersect_test.py index 192e16721..ed23a48d5 100644 --- a/k2/python/host/tests/intersect_test.py +++ b/k2/python/host/tests/intersect_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Xiaomi Corporation (author: Haowen Qiu) +# Copyright 2020 Xiaomi Corporation (author: Haowen Qiu) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/host/tests/properties_test.py b/k2/python/host/tests/properties_test.py index 2533abab9..c34eb2cbe 100644 --- a/k2/python/host/tests/properties_test.py +++ b/k2/python/host/tests/properties_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Xiaomi Corporation (author: Haowen Qiu) +# Copyright 2020 Xiaomi Corporation (author: Haowen Qiu) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/host/tests/rmepsilon_test.py b/k2/python/host/tests/rmepsilon_test.py index 41d0feaea..4f8c11d92 100644 --- a/k2/python/host/tests/rmepsilon_test.py +++ b/k2/python/host/tests/rmepsilon_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Xiaomi Corporation (author: Haowen Qiu) +# Copyright 2020 Xiaomi Corporation (author: Haowen Qiu) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/host/tests/topsort_test.py b/k2/python/host/tests/topsort_test.py index 05bc9a0d5..7a3764dda 100644 --- a/k2/python/host/tests/topsort_test.py +++ b/k2/python/host/tests/topsort_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Xiaomi Corporation (author: Haowen Qiu) +# Copyright 2020 Xiaomi Corporation (author: Haowen Qiu) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/host/tests/weights_test.py b/k2/python/host/tests/weights_test.py index b9d5effb8..e8dbad69b 100644 --- a/k2/python/host/tests/weights_test.py +++ b/k2/python/host/tests/weights_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Xiaomi Corporation (author: Haowen Qiu) +# Copyright 2020 Xiaomi Corporation (author: Haowen Qiu) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/k2/autograd.py b/k2/python/k2/autograd.py index e23f975b1..f895efbb0 100644 --- a/k2/python/k2/autograd.py +++ b/k2/python/k2/autograd.py @@ -1,7 +1,19 @@ -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # Xiaomi Corp. (authors: Daniel Povey # Haowen Qiu) # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import List from typing import Optional diff --git a/k2/python/k2/autograd_utils.py b/k2/python/k2/autograd_utils.py index 00764b3e9..9d4b7df85 100644 --- a/k2/python/k2/autograd_utils.py +++ b/k2/python/k2/autograd_utils.py @@ -1,6 +1,18 @@ -# Copyright (c) 2020-2021 Xiaomi Corp. (authors: Daniel Povey +# Copyright 2020-2021 Xiaomi Corp. (authors: Daniel Povey # Fangjun Kuang) # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import Tuple import torch diff --git a/k2/python/k2/dense_fsa_vec.py b/k2/python/k2/dense_fsa_vec.py index b46711bc5..fb9391c62 100644 --- a/k2/python/k2/dense_fsa_vec.py +++ b/k2/python/k2/dense_fsa_vec.py @@ -1,5 +1,17 @@ -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import Union diff --git a/k2/python/k2/fsa.py b/k2/python/k2/fsa.py index e5634d627..c35b806f0 100644 --- a/k2/python/k2/fsa.py +++ b/k2/python/k2/fsa.py @@ -1,8 +1,20 @@ -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # Xiaomi Corp. (author: Daniel Povey, Haowen Qiu) # Guoguo Chen # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import Any from typing import Dict diff --git a/k2/python/k2/fsa_algo.py b/k2/python/k2/fsa_algo.py index 65bf61bff..83634d57e 100644 --- a/k2/python/k2/fsa_algo.py +++ b/k2/python/k2/fsa_algo.py @@ -1,8 +1,20 @@ -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # Xiaomi Corporation (authors: Haowen Qiu) # 2021 Mobvoi Inc. (authors: Yaguang Hu) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import List from typing import Optional diff --git a/k2/python/k2/fsa_properties.py b/k2/python/k2/fsa_properties.py index 600f817de..cdd9db8e2 100644 --- a/k2/python/k2/fsa_properties.py +++ b/k2/python/k2/fsa_properties.py @@ -1,7 +1,19 @@ -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # Xiaomi Corporation (authors: Haowen Qiu) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import torch # noqa import _k2 diff --git a/k2/python/k2/ops.py b/k2/python/k2/ops.py index 7acfc0a44..e7b018d61 100644 --- a/k2/python/k2/ops.py +++ b/k2/python/k2/ops.py @@ -1,7 +1,19 @@ -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # Xiaomi Corp. (author: Haowen Qiu) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import List from typing import Tuple diff --git a/k2/python/k2/ragged/autograd.py b/k2/python/k2/ragged/autograd.py index e82824a9a..47b04d399 100644 --- a/k2/python/k2/ragged/autograd.py +++ b/k2/python/k2/ragged/autograd.py @@ -1,5 +1,17 @@ -# Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang) +# Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang) # See ../../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import List, Tuple diff --git a/k2/python/k2/ragged/ops.py b/k2/python/k2/ragged/ops.py index 63f2ace96..07b48806f 100644 --- a/k2/python/k2/ragged/ops.py +++ b/k2/python/k2/ragged/ops.py @@ -1,8 +1,20 @@ -# Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang +# Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang # Daniel Povey # Haowen Qiu) # # See ../../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import List from typing import Optional diff --git a/k2/python/k2/ragged/tensor.py b/k2/python/k2/ragged/tensor.py index 3a1cb8515..1b9e3cdad 100644 --- a/k2/python/k2/ragged/tensor.py +++ b/k2/python/k2/ragged/tensor.py @@ -1,5 +1,17 @@ -# Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang) +# Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang) # See ../../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import Optional from typing import Union diff --git a/k2/python/k2/sparse/autograd.py b/k2/python/k2/sparse/autograd.py index 94db60629..57d499513 100644 --- a/k2/python/k2/sparse/autograd.py +++ b/k2/python/k2/sparse/autograd.py @@ -1,5 +1,17 @@ -# Copyright (c) 2021 Xiaomi Corp. (authors: Fangjun Kuang) +# Copyright 2021 Xiaomi Corp. (authors: Fangjun Kuang) # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import torch diff --git a/k2/python/k2/symbol_table.py b/k2/python/k2/symbol_table.py index 6e7a25a9a..58595647d 100644 --- a/k2/python/k2/symbol_table.py +++ b/k2/python/k2/symbol_table.py @@ -1,6 +1,18 @@ -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from dataclasses import dataclass from dataclasses import field diff --git a/k2/python/k2/utils.py b/k2/python/k2/utils.py index 7742535c1..b22ed77e6 100644 --- a/k2/python/k2/utils.py +++ b/k2/python/k2/utils.py @@ -1,7 +1,19 @@ -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # Xiaomi Corporation (authors: Haowen Qiu) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import Optional from typing import Tuple diff --git a/k2/python/k2/version/version.py b/k2/python/k2/version/version.py index fe9cd7163..f9588e5d3 100644 --- a/k2/python/k2/version/version.py +++ b/k2/python/k2/version/version.py @@ -1,7 +1,19 @@ #!/usr/bin/env python3 -# Copyright (c) 2020 Xiaomi Corp. (author: Fangjun Kuang) +# Copyright 2020 Xiaomi Corp. (author: Fangjun Kuang) # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import os import torch # noqa diff --git a/k2/python/tests/add_epsilon_self_loops_test.py b/k2/python/tests/add_epsilon_self_loops_test.py index a40104575..ae8e40539 100644 --- a/k2/python/tests/add_epsilon_self_loops_test.py +++ b/k2/python/tests/add_epsilon_self_loops_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/arc_sort_test.py b/k2/python/tests/arc_sort_test.py index 4a9a4e1b9..bc448247f 100644 --- a/k2/python/tests/arc_sort_test.py +++ b/k2/python/tests/arc_sort_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/cat_test.py b/k2/python/tests/cat_test.py index 742ad8c65..4a8eb0f15 100644 --- a/k2/python/tests/cat_test.py +++ b/k2/python/tests/cat_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2021 Xiaomi Corp. (authors: Fangjun Kuang) +# Copyright 2021 Xiaomi Corp. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/closure_test.py b/k2/python/tests/closure_test.py index f5b38f517..476ebe88f 100644 --- a/k2/python/tests/closure_test.py +++ b/k2/python/tests/closure_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang) +# Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/compose_arc_maps_test.py b/k2/python/tests/compose_arc_maps_test.py index 06b5c9901..fec41d8ed 100644 --- a/k2/python/tests/compose_arc_maps_test.py +++ b/k2/python/tests/compose_arc_maps_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2021 Xiaomi Corp. (authors: Fangjun Kuang) +# Copyright 2021 Xiaomi Corp. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/compose_test.py b/k2/python/tests/compose_test.py index c5712363e..edb42f446 100644 --- a/k2/python/tests/compose_test.py +++ b/k2/python/tests/compose_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang) +# Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/connect_test.py b/k2/python/tests/connect_test.py index 64feb9e93..5f510a926 100644 --- a/k2/python/tests/connect_test.py +++ b/k2/python/tests/connect_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/create_sparse_test.py b/k2/python/tests/create_sparse_test.py index df5d5ac9d..91e6d1fe5 100644 --- a/k2/python/tests/create_sparse_test.py +++ b/k2/python/tests/create_sparse_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Xiaomi Corp. (authors: Fangjun Kuang) +# Copyright 2020 Xiaomi Corp. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/ctc_gradients_test.py b/k2/python/tests/ctc_gradients_test.py index b8f893676..69df18d98 100644 --- a/k2/python/tests/ctc_gradients_test.py +++ b/k2/python/tests/ctc_gradients_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang) +# Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/dense_fsa_vec_test.py b/k2/python/tests/dense_fsa_vec_test.py index 03d5f88ad..0c2389551 100644 --- a/k2/python/tests/dense_fsa_vec_test.py +++ b/k2/python/tests/dense_fsa_vec_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/determinize_test.py b/k2/python/tests/determinize_test.py index 0e5508e17..1ebb3f99b 100644 --- a/k2/python/tests/determinize_test.py +++ b/k2/python/tests/determinize_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Xiaomi Corporation (authors: Haowen Qiu) +# Copyright 2020 Xiaomi Corporation (authors: Haowen Qiu) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/expand_ragged_attributes_test.py b/k2/python/tests/expand_ragged_attributes_test.py index e3e42746c..9769b8e20 100644 --- a/k2/python/tests/expand_ragged_attributes_test.py +++ b/k2/python/tests/expand_ragged_attributes_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2021 Xiaomi Corp. (authors: Fangjun Kuang, Daniel Povey) +# Copyright 2021 Xiaomi Corp. (authors: Fangjun Kuang, Daniel Povey) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/fsa_from_unary_function_ragged_test.py b/k2/python/tests/fsa_from_unary_function_ragged_test.py index 12c3d1126..8bec4e878 100644 --- a/k2/python/tests/fsa_from_unary_function_ragged_test.py +++ b/k2/python/tests/fsa_from_unary_function_ragged_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2021 Xiaomi Corp. (authors: Fangjun Kuang) +# Copyright 2021 Xiaomi Corp. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/fsa_from_unary_function_tensor_test.py b/k2/python/tests/fsa_from_unary_function_tensor_test.py index 08ee3ab12..4b4ef1493 100644 --- a/k2/python/tests/fsa_from_unary_function_tensor_test.py +++ b/k2/python/tests/fsa_from_unary_function_tensor_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2021 Xiaomi Corp. (authors: Fangjun Kuang) +# Copyright 2021 Xiaomi Corp. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/fsa_test.py b/k2/python/tests/fsa_test.py index 5b3efd198..3f467ec97 100644 --- a/k2/python/tests/fsa_test.py +++ b/k2/python/tests/fsa_test.py @@ -1,9 +1,21 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # Guoguo Chen # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/get_arc_post_test.py b/k2/python/tests/get_arc_post_test.py index 43cb2bd69..73c38433b 100644 --- a/k2/python/tests/get_arc_post_test.py +++ b/k2/python/tests/get_arc_post_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Xiaomi Corp. (author: Fangjun Kuang) +# Copyright 2020 Xiaomi Corp. (author: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/get_backward_scores_test.py b/k2/python/tests/get_backward_scores_test.py index 64ef8381a..f2ecafbe2 100644 --- a/k2/python/tests/get_backward_scores_test.py +++ b/k2/python/tests/get_backward_scores_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Xiaomi Corp. (author: Fangjun Kuang) +# Copyright 2020 Xiaomi Corp. (author: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/get_forward_scores_test.py b/k2/python/tests/get_forward_scores_test.py index f34ae8055..28cf8b6de 100644 --- a/k2/python/tests/get_forward_scores_test.py +++ b/k2/python/tests/get_forward_scores_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Xiaomi Corp. (author: Fangjun Kuang) +# Copyright 2020 Xiaomi Corp. (author: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/get_tot_scores_test.py b/k2/python/tests/get_tot_scores_test.py index dc99e385d..22fc7a88b 100644 --- a/k2/python/tests/get_tot_scores_test.py +++ b/k2/python/tests/get_tot_scores_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/index_add_test.py b/k2/python/tests/index_add_test.py index 774116177..c82d866fa 100644 --- a/k2/python/tests/index_add_test.py +++ b/k2/python/tests/index_add_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/index_and_sum_test.py b/k2/python/tests/index_and_sum_test.py index 50ee72a5e..1afdf1b19 100644 --- a/k2/python/tests/index_and_sum_test.py +++ b/k2/python/tests/index_and_sum_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2021 Xiaomi Corp. (authors: Fangjun Kuang) +# Copyright 2021 Xiaomi Corp. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/index_select_test.py b/k2/python/tests/index_select_test.py index d6395c100..175f14f00 100644 --- a/k2/python/tests/index_select_test.py +++ b/k2/python/tests/index_select_test.py @@ -1,9 +1,21 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # Xiaomi Corp. (authors: Daniel Povey) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/index_test.py b/k2/python/tests/index_test.py index 0b748068f..b29d7856e 100644 --- a/k2/python/tests/index_test.py +++ b/k2/python/tests/index_test.py @@ -1,9 +1,21 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # Xiaomi Corporation (authors: Haowen Qiu) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/intersect_dense_pruned_test.py b/k2/python/tests/intersect_dense_pruned_test.py index e13cf4d32..cd7228cc2 100644 --- a/k2/python/tests/intersect_dense_pruned_test.py +++ b/k2/python/tests/intersect_dense_pruned_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/intersect_dense_test.py b/k2/python/tests/intersect_dense_test.py index 7a1dd6fa0..66098167e 100644 --- a/k2/python/tests/intersect_dense_test.py +++ b/k2/python/tests/intersect_dense_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Xiaomi Corp. (authors: Daniel Povey, Fangjun Kuang) +# Copyright 2020 Xiaomi Corp. (authors: Daniel Povey, Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/intersect_device_test.py b/k2/python/tests/intersect_device_test.py index 6b84a393a..77f02f925 100644 --- a/k2/python/tests/intersect_device_test.py +++ b/k2/python/tests/intersect_device_test.py @@ -1,9 +1,21 @@ #!/usr/bin/env python3 # -# Copyright (c) 2021 Xiaomi Corp. (authors: Fangjun Kuang +# Copyright 2021 Xiaomi Corp. (authors: Fangjun Kuang # Daniel Povey) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/intersect_test.py b/k2/python/tests/intersect_test.py index 478677d2a..b9672a494 100644 --- a/k2/python/tests/intersect_test.py +++ b/k2/python/tests/intersect_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/invert_test.py b/k2/python/tests/invert_test.py index 7d0d98109..301af9f9f 100644 --- a/k2/python/tests/invert_test.py +++ b/k2/python/tests/invert_test.py @@ -1,9 +1,21 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020-2021 Xiaomi Corporation (authors: Haowen Qiu +# Copyright 2020-2021 Xiaomi Corporation (authors: Haowen Qiu # Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/linear_fsa_test.py b/k2/python/tests/linear_fsa_test.py index d4cd9654a..ba8f0ec84 100644 --- a/k2/python/tests/linear_fsa_test.py +++ b/k2/python/tests/linear_fsa_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/linear_fst_test.py b/k2/python/tests/linear_fst_test.py index decf87d12..90ea8bec3 100644 --- a/k2/python/tests/linear_fst_test.py +++ b/k2/python/tests/linear_fst_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2021 Mobvoi Inc. (authors: Yaguang Hu) +# Copyright 2021 Mobvoi Inc. (authors: Yaguang Hu) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/multi_gpu_test.py b/k2/python/tests/multi_gpu_test.py index daa58bdbb..344525d84 100644 --- a/k2/python/tests/multi_gpu_test.py +++ b/k2/python/tests/multi_gpu_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2021 Xiaomi Corp. (authors: Fangjun Kuang) +# Copyright 2021 Xiaomi Corp. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/numerical_gradient_check_test.py b/k2/python/tests/numerical_gradient_check_test.py index 72041e0dc..aafc0c96d 100644 --- a/k2/python/tests/numerical_gradient_check_test.py +++ b/k2/python/tests/numerical_gradient_check_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang) +# Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/prune_on_arc_post_test.py b/k2/python/tests/prune_on_arc_post_test.py index 402c76600..fd2a058c9 100644 --- a/k2/python/tests/prune_on_arc_post_test.py +++ b/k2/python/tests/prune_on_arc_post_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2021 Xiaomi Corporation (authors: Fangjun Kuang) +# Copyright 2021 Xiaomi Corporation (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/ragged_ops_test.py b/k2/python/tests/ragged_ops_test.py index fcc1191cf..aca0d40ed 100644 --- a/k2/python/tests/ragged_ops_test.py +++ b/k2/python/tests/ragged_ops_test.py @@ -1,9 +1,21 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang) +# Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang) # 2021 Mobvoi Inc. (authors: Yaguang Hu) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/ragged_shape_test.py b/k2/python/tests/ragged_shape_test.py index b106443f3..0dce3ad99 100644 --- a/k2/python/tests/ragged_shape_test.py +++ b/k2/python/tests/ragged_shape_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Mobvoi Inc. (authors: Liyong Guo) +# Copyright 2020 Mobvoi Inc. (authors: Liyong Guo) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/ragged_test.py b/k2/python/tests/ragged_test.py index 59e202074..36f0ab34a 100644 --- a/k2/python/tests/ragged_test.py +++ b/k2/python/tests/ragged_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang) +# Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/random_paths_test.py b/k2/python/tests/random_paths_test.py index 9efc00da7..582b56834 100644 --- a/k2/python/tests/random_paths_test.py +++ b/k2/python/tests/random_paths_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2021 Xiaomi Corp. (authors: Fangjun Kuang) +# Copyright 2021 Xiaomi Corp. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/remove_epsilon_self_loops_test.py b/k2/python/tests/remove_epsilon_self_loops_test.py index 2ac0bcbac..58c0266ad 100644 --- a/k2/python/tests/remove_epsilon_self_loops_test.py +++ b/k2/python/tests/remove_epsilon_self_loops_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2021 Xiaomi Corporation (authors: Fangjun Kuang) +# Copyright 2021 Xiaomi Corporation (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/remove_epsilon_test.py b/k2/python/tests/remove_epsilon_test.py index a0407ded7..553a4ebb1 100644 --- a/k2/python/tests/remove_epsilon_test.py +++ b/k2/python/tests/remove_epsilon_test.py @@ -1,9 +1,21 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020-2021 Xiaomi Corporation (authors: Haowen Qiu +# Copyright 2020-2021 Xiaomi Corporation (authors: Haowen Qiu # Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/shortest_path_test.py b/k2/python/tests/shortest_path_test.py index 7ca30370b..14d73b8fe 100644 --- a/k2/python/tests/shortest_path_test.py +++ b/k2/python/tests/shortest_path_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/sparse_abs_test.py b/k2/python/tests/sparse_abs_test.py index 602da1778..59cf2315e 100644 --- a/k2/python/tests/sparse_abs_test.py +++ b/k2/python/tests/sparse_abs_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2021 Xiaomi Corp. (authors: Fangjun Kuang) +# Copyright 2021 Xiaomi Corp. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/symbol_table_test.py b/k2/python/tests/symbol_table_test.py index fd4cdf4a3..d613c8450 100644 --- a/k2/python/tests/symbol_table_test.py +++ b/k2/python/tests/symbol_table_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang) +# Copyright 2020 Xiaomi Corporation (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/top_sort_test.py b/k2/python/tests/top_sort_test.py index 3404eb3cd..2468d6835 100644 --- a/k2/python/tests/top_sort_test.py +++ b/k2/python/tests/top_sort_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/k2/python/tests/union_test.py b/k2/python/tests/union_test.py index 8f4667970..d608d0d16 100644 --- a/k2/python/tests/union_test.py +++ b/k2/python/tests/union_test.py @@ -1,8 +1,20 @@ #!/usr/bin/env python3 # -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To run this single test, use # diff --git a/scripts/build_conda.sh b/scripts/build_conda.sh index 9e623d41d..f1d9de5aa 100755 --- a/scripts/build_conda.sh +++ b/scripts/build_conda.sh @@ -1,6 +1,18 @@ #!/usr/bin/env bash # -# Copyright (c) 2021 Xiaomi Corp. (author: Fangjun Kuang) +# Copyright 2021 Xiaomi Corp. (author: Fangjun Kuang) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # To use this script, we assume that you have installed cudatoolkit locally. # That is, `which nvcc` should give the path to nvcc diff --git a/scripts/build_conda_cpu.sh b/scripts/build_conda_cpu.sh index 5c480070b..1921b712c 100755 --- a/scripts/build_conda_cpu.sh +++ b/scripts/build_conda_cpu.sh @@ -1,6 +1,18 @@ #!/usr/bin/env bash # -# Copyright (c) 2021 Xiaomi Corp. (author: Fangjun Kuang) +# Copyright 2021 Xiaomi Corp. (author: Fangjun Kuang) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # The following environment variables are supposed to be set by users # diff --git a/scripts/build_pip.sh b/scripts/build_pip.sh index 8522efc4c..6a9c1dd22 100755 --- a/scripts/build_pip.sh +++ b/scripts/build_pip.sh @@ -1,6 +1,18 @@ #!/bin/bash # -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # # Steps to build a pip package: # diff --git a/scripts/check_style_cpplint.sh b/scripts/check_style_cpplint.sh index 63bccd2f8..fca1f460a 100755 --- a/scripts/check_style_cpplint.sh +++ b/scripts/check_style_cpplint.sh @@ -1,6 +1,18 @@ #!/bin/bash # -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # # Usage: # diff --git a/scripts/conda/k2/build.sh b/scripts/conda/k2/build.sh index 8d1ca7db9..39df517aa 100644 --- a/scripts/conda/k2/build.sh +++ b/scripts/conda/k2/build.sh @@ -1,6 +1,18 @@ #!/usr/bin/env bash # -# Copyright (c) 2021 Xiaomi Corp. (author: Fangjun Kuang) +# Copyright 2021 Xiaomi Corp. (author: Fangjun Kuang) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. set -ex diff --git a/scripts/github_actions/install_cuda.sh b/scripts/github_actions/install_cuda.sh index f8ee50037..7d023b960 100755 --- a/scripts/github_actions/install_cuda.sh +++ b/scripts/github_actions/install_cuda.sh @@ -1,6 +1,18 @@ #!/bin/bash # -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. echo "cuda version: $cuda" diff --git a/scripts/github_actions/install_cudnn.sh b/scripts/github_actions/install_cudnn.sh index 9da29aea9..fae3449d8 100755 --- a/scripts/github_actions/install_cudnn.sh +++ b/scripts/github_actions/install_cudnn.sh @@ -1,6 +1,18 @@ #!/bin/bash # -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. case $cuda in 10.0) diff --git a/scripts/github_actions/install_torch.sh b/scripts/github_actions/install_torch.sh index ca91b5ee5..2558aa9a2 100755 --- a/scripts/github_actions/install_torch.sh +++ b/scripts/github_actions/install_torch.sh @@ -1,6 +1,18 @@ #!/bin/bash # -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. case ${torch} in 1.5.*) diff --git a/scripts/run_cppcheck.sh b/scripts/run_cppcheck.sh index 20154b971..d1bf62a14 100755 --- a/scripts/run_cppcheck.sh +++ b/scripts/run_cppcheck.sh @@ -1,6 +1,18 @@ #!/bin/bash # -# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # # Usage: # ./scripts/run_cppcheck.sh