From 0aaed72ea2227a2438add6a2eeffc6a779a73cac Mon Sep 17 00:00:00 2001 From: Antonio Sanchez Date: Tue, 21 Jul 2026 11:35:09 -0700 Subject: [PATCH] Add missing Apache license headers to BUILD, WORKSPACE and .bzl files PiperOrigin-RevId: 951606877 --- BUILD.bazel | 15 +++++++++++++++ tsl/platform/BUILD | 15 +++++++++++++++ tsl/profiler/lib/profiler_factory.cc | 2 +- tsl/profiler/lib/profiler_factory.h | 2 +- tsl/profiler/lib/profiler_factory_test.cc | 2 +- tsl/profiler/lib/profiler_interface.h | 2 +- tsl/profiler/lib/profiler_lock_test.cc | 2 +- tsl/profiler/lib/scoped_annotation_test.cc | 2 +- tsl/profiler/lib/traceme_encode_test.cc | 2 +- tsl/profiler/protobuf/BUILD | 15 +++++++++++++++ 10 files changed, 52 insertions(+), 7 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index 0178eb694..1a66e92e5 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -1,3 +1,18 @@ +# Copyright 2026 The TensorFlow Authors. All Rights Reserved. +# +# 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. +# ============================================================================== + load("@rules_license//rules:license.bzl", "license") package( diff --git a/tsl/platform/BUILD b/tsl/platform/BUILD index 5edeccb3a..e7ef91698 100644 --- a/tsl/platform/BUILD +++ b/tsl/platform/BUILD @@ -1,3 +1,18 @@ +# Copyright 2026 The TensorFlow Authors. All Rights Reserved. +# +# 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. +# ============================================================================== + # Description: # Tensor Standard Libraries. # diff --git a/tsl/profiler/lib/profiler_factory.cc b/tsl/profiler/lib/profiler_factory.cc index a11a11b50..09fc8f0fd 100644 --- a/tsl/profiler/lib/profiler_factory.cc +++ b/tsl/profiler/lib/profiler_factory.cc @@ -1,4 +1,4 @@ -/* Copyright 2019 The TensorFlow Authors All Rights Reserved. +/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/tsl/profiler/lib/profiler_factory.h b/tsl/profiler/lib/profiler_factory.h index 7e6c64c39..8266f3216 100644 --- a/tsl/profiler/lib/profiler_factory.h +++ b/tsl/profiler/lib/profiler_factory.h @@ -1,4 +1,4 @@ -/* Copyright 2019 The TensorFlow Authors All Rights Reserved. +/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/tsl/profiler/lib/profiler_factory_test.cc b/tsl/profiler/lib/profiler_factory_test.cc index 97dc6f914..d4dd54a0d 100644 --- a/tsl/profiler/lib/profiler_factory_test.cc +++ b/tsl/profiler/lib/profiler_factory_test.cc @@ -1,4 +1,4 @@ -/* Copyright 2021 The TensorFlow Authors All Rights Reserved. +/* Copyright 2021 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/tsl/profiler/lib/profiler_interface.h b/tsl/profiler/lib/profiler_interface.h index a065bacfa..700166c8f 100644 --- a/tsl/profiler/lib/profiler_interface.h +++ b/tsl/profiler/lib/profiler_interface.h @@ -1,4 +1,4 @@ -/* Copyright 2016 The TensorFlow Authors All Rights Reserved. +/* Copyright 2016 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/tsl/profiler/lib/profiler_lock_test.cc b/tsl/profiler/lib/profiler_lock_test.cc index f3e63bff6..132a5f277 100644 --- a/tsl/profiler/lib/profiler_lock_test.cc +++ b/tsl/profiler/lib/profiler_lock_test.cc @@ -1,4 +1,4 @@ -/* Copyright 2022 The TensorFlow Authors All Rights Reserved. +/* Copyright 2022 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/tsl/profiler/lib/scoped_annotation_test.cc b/tsl/profiler/lib/scoped_annotation_test.cc index 9aa61fd49..a8c66d735 100644 --- a/tsl/profiler/lib/scoped_annotation_test.cc +++ b/tsl/profiler/lib/scoped_annotation_test.cc @@ -1,4 +1,4 @@ -/* Copyright 2019 The TensorFlow Authors All Rights Reserved. +/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/tsl/profiler/lib/traceme_encode_test.cc b/tsl/profiler/lib/traceme_encode_test.cc index cb3be0bad..c233d0246 100644 --- a/tsl/profiler/lib/traceme_encode_test.cc +++ b/tsl/profiler/lib/traceme_encode_test.cc @@ -1,4 +1,4 @@ -/* Copyright 2020 The TensorFlow Authors All Rights Reserved. +/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/tsl/profiler/protobuf/BUILD b/tsl/profiler/protobuf/BUILD index f127cb1f3..300567d9d 100644 --- a/tsl/profiler/protobuf/BUILD +++ b/tsl/profiler/protobuf/BUILD @@ -1,3 +1,18 @@ +# Copyright 2026 The TensorFlow Authors. All Rights Reserved. +# +# 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. +# ============================================================================== + # copybara:uncomment(oss-unused) load("//devtools/clif/python:clif_build_rule.bzl", "pyclif_proto_library") # copybara:uncomment(oss-unused) load("//net/grpc/go/build_defs:go_grpc_library.bzl", "go_grpc_library") # Placeholder: load py_proto_library