From b0803999ad0dbe4064d9adf7bbfea02118856038 Mon Sep 17 00:00:00 2001 From: Michael Reneer Date: Thu, 27 Jan 2022 12:39:46 -0800 Subject: [PATCH] Add license and missing build targets to `__init__.py` files in TensorFlow Privacy. * Added license. * Removed `.../membership_inference_attack/codelabs/__init__.py`, this code does not look like it needs to be part of the Python package. * Removed `.../research/pate_2017/__init__.py`, this code does not look like it needs to be part of the Python package. PiperOrigin-RevId: 424682641 --- research/pate_2017/__init__.py | 1 - tensorflow_privacy/privacy/analysis/__init__.py | 13 +++++++++++++ tensorflow_privacy/privacy/dp_query/__init__.py | 13 +++++++++++++ tensorflow_privacy/privacy/estimators/__init__.py | 13 +++++++++++++ .../privacy/estimators/v1/__init__.py | 13 +++++++++++++ tensorflow_privacy/privacy/keras_models/__init__.py | 13 +++++++++++++ tensorflow_privacy/privacy/optimizers/__init__.py | 13 +++++++++++++ .../privacy/privacy_tests/__init__.py | 13 +++++++++++++ .../codelabs/__init__.py | 1 - .../privacy/privacy_tests/secret_sharer/__init__.py | 13 +++++++++++++ 10 files changed, 104 insertions(+), 2 deletions(-) delete mode 100644 research/pate_2017/__init__.py delete mode 100644 tensorflow_privacy/privacy/privacy_tests/membership_inference_attack/codelabs/__init__.py diff --git a/research/pate_2017/__init__.py b/research/pate_2017/__init__.py deleted file mode 100644 index 8b13789..0000000 --- a/research/pate_2017/__init__.py +++ /dev/null @@ -1 +0,0 @@ - diff --git a/tensorflow_privacy/privacy/analysis/__init__.py b/tensorflow_privacy/privacy/analysis/__init__.py index e69de29..2e950c8 100644 --- a/tensorflow_privacy/privacy/analysis/__init__.py +++ b/tensorflow_privacy/privacy/analysis/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2022, The TensorFlow Privacy 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. diff --git a/tensorflow_privacy/privacy/dp_query/__init__.py b/tensorflow_privacy/privacy/dp_query/__init__.py index e69de29..2e950c8 100644 --- a/tensorflow_privacy/privacy/dp_query/__init__.py +++ b/tensorflow_privacy/privacy/dp_query/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2022, The TensorFlow Privacy 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. diff --git a/tensorflow_privacy/privacy/estimators/__init__.py b/tensorflow_privacy/privacy/estimators/__init__.py index e69de29..2e950c8 100644 --- a/tensorflow_privacy/privacy/estimators/__init__.py +++ b/tensorflow_privacy/privacy/estimators/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2022, The TensorFlow Privacy 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. diff --git a/tensorflow_privacy/privacy/estimators/v1/__init__.py b/tensorflow_privacy/privacy/estimators/v1/__init__.py index e69de29..2e950c8 100644 --- a/tensorflow_privacy/privacy/estimators/v1/__init__.py +++ b/tensorflow_privacy/privacy/estimators/v1/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2022, The TensorFlow Privacy 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. diff --git a/tensorflow_privacy/privacy/keras_models/__init__.py b/tensorflow_privacy/privacy/keras_models/__init__.py index e69de29..2e950c8 100644 --- a/tensorflow_privacy/privacy/keras_models/__init__.py +++ b/tensorflow_privacy/privacy/keras_models/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2022, The TensorFlow Privacy 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. diff --git a/tensorflow_privacy/privacy/optimizers/__init__.py b/tensorflow_privacy/privacy/optimizers/__init__.py index e69de29..2e950c8 100644 --- a/tensorflow_privacy/privacy/optimizers/__init__.py +++ b/tensorflow_privacy/privacy/optimizers/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2022, The TensorFlow Privacy 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. diff --git a/tensorflow_privacy/privacy/privacy_tests/__init__.py b/tensorflow_privacy/privacy/privacy_tests/__init__.py index e69de29..2e950c8 100644 --- a/tensorflow_privacy/privacy/privacy_tests/__init__.py +++ b/tensorflow_privacy/privacy/privacy_tests/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2022, The TensorFlow Privacy 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. diff --git a/tensorflow_privacy/privacy/privacy_tests/membership_inference_attack/codelabs/__init__.py b/tensorflow_privacy/privacy/privacy_tests/membership_inference_attack/codelabs/__init__.py deleted file mode 100644 index 8b13789..0000000 --- a/tensorflow_privacy/privacy/privacy_tests/membership_inference_attack/codelabs/__init__.py +++ /dev/null @@ -1 +0,0 @@ - diff --git a/tensorflow_privacy/privacy/privacy_tests/secret_sharer/__init__.py b/tensorflow_privacy/privacy/privacy_tests/secret_sharer/__init__.py index e69de29..2e950c8 100644 --- a/tensorflow_privacy/privacy/privacy_tests/secret_sharer/__init__.py +++ b/tensorflow_privacy/privacy/privacy_tests/secret_sharer/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2022, The TensorFlow Privacy 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.