diff --git a/contrib/data_safety_training/image_classification/server/receiver.py b/contrib/data_safety_training/image_classification/server/receiver.py index 70d19b02574e889aa66f0a98e12f061a8bf05a0f..0ac474ac35e67ef9810baafdd20d5fb05a655f62 100644 --- a/contrib/data_safety_training/image_classification/server/receiver.py +++ b/contrib/data_safety_training/image_classification/server/receiver.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + import zmq import socket import msgpack diff --git a/contrib/data_safety_training/image_classification/server/server.py b/contrib/data_safety_training/image_classification/server/server.py index 7cbdec7e9e5c6215b0c398337f2b6cdbc82bd423..93f8f53c1907e3d1a9b5e46da2eb2cf2204551c8 100644 --- a/contrib/data_safety_training/image_classification/server/server.py +++ b/contrib/data_safety_training/image_classification/server/server.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + from __future__ import print_function import os import paddle diff --git a/contrib/data_safety_training/image_classification/server/user.py b/contrib/data_safety_training/image_classification/server/user.py index ccdd26e6de6b91f14fbe475b894b79da495b84b1..505c329f0ca8310824989d83af4a04f05714d49d 100644 --- a/contrib/data_safety_training/image_classification/server/user.py +++ b/contrib/data_safety_training/image_classification/server/user.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + from __future__ import print_function import os import paddle diff --git a/contrib/data_safety_training/image_classification/submitter.py b/contrib/data_safety_training/image_classification/submitter.py index d8777920d8444c1f6511c7c85188cc606378a8b3..920b60ad8fed2d7ff0b13d17001d8227f3b0abb8 100644 --- a/contrib/data_safety_training/image_classification/submitter.py +++ b/contrib/data_safety_training/image_classification/submitter.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + import zmq import socket import msgpack diff --git a/paddle_fl/common/__init__.py b/paddle_fl/common/__init__.py index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..abf198b97e6e818e1fbe59006f98492640bcee54 100644 --- a/paddle_fl/common/__init__.py +++ b/paddle_fl/common/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2020 PaddlePaddle 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. diff --git a/paddle_fl/core/scheduler/agent_master.py b/paddle_fl/core/scheduler/agent_master.py index 40e6f27e1d6492768084fac2f74f2702509e6f51..7c1fe4fbca182551a695190f3161488b8d9c4db3 100644 --- a/paddle_fl/core/scheduler/agent_master.py +++ b/paddle_fl/core/scheduler/agent_master.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + import zmq import time import random diff --git a/paddle_fl/core/submitter/client_base.py b/paddle_fl/core/submitter/client_base.py index 30017228863b167a524d9193e95cc3c4f0dd5ced..0f2e977906d20966957e290d9d4e1f6edeb3e8bc 100644 --- a/paddle_fl/core/submitter/client_base.py +++ b/paddle_fl/core/submitter/client_base.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + import sys import os diff --git a/paddle_fl/dataset/__init__.py b/paddle_fl/dataset/__init__.py index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..abf198b97e6e818e1fbe59006f98492640bcee54 100644 --- a/paddle_fl/dataset/__init__.py +++ b/paddle_fl/dataset/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2020 PaddlePaddle 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. diff --git a/paddle_fl/dataset/femnist.py b/paddle_fl/dataset/femnist.py index af66016237ae0a66e66a31683db4f1718f4b8ae6..80a5b47d5a9a3f2e381c3a7712b428f53ae98a3f 100644 --- a/paddle_fl/dataset/femnist.py +++ b/paddle_fl/dataset/femnist.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + import requests import os import json diff --git a/paddle_fl/examples/ctr_demo/fl_master.py b/paddle_fl/examples/ctr_demo/fl_master.py index be797790352f169a6b0a2a3ffc80e5164ada25a6..57ac3812f93550e056c796db8283591ab39c1412 100644 --- a/paddle_fl/examples/ctr_demo/fl_master.py +++ b/paddle_fl/examples/ctr_demo/fl_master.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + import paddle.fluid as fluid import paddle_fl as fl from paddle_fl.core.master.job_generator import JobGenerator diff --git a/paddle_fl/examples/ctr_demo/fl_scheduler.py b/paddle_fl/examples/ctr_demo/fl_scheduler.py index 1e4d7fe71bf12d33946240e89c0f3390f6a67c30..fe93b55d96b73734437b3387bdd04340248d7888 100644 --- a/paddle_fl/examples/ctr_demo/fl_scheduler.py +++ b/paddle_fl/examples/ctr_demo/fl_scheduler.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + from paddle_fl.core.scheduler.agent_master import FLScheduler worker_num = 2 diff --git a/paddle_fl/examples/ctr_demo/fl_trainer.py b/paddle_fl/examples/ctr_demo/fl_trainer.py index 832b5fcd2bfbf11670548eef67e6067d279171af..9b4b490c9abc54962da11d7f5d88077e2f558f33 100644 --- a/paddle_fl/examples/ctr_demo/fl_trainer.py +++ b/paddle_fl/examples/ctr_demo/fl_trainer.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + from paddle_fl.core.trainer.fl_trainer import FLTrainerFactory from paddle_fl.core.master.fl_job import FLRunTimeJob import numpy as np diff --git a/paddle_fl/examples/dpsgd_demo/fl_master.py b/paddle_fl/examples/dpsgd_demo/fl_master.py index f689a56fa25ce013bb9c367a0e948d6d36b2efae..218f49ecb28b320db2df1f19751528d716bdb070 100644 --- a/paddle_fl/examples/dpsgd_demo/fl_master.py +++ b/paddle_fl/examples/dpsgd_demo/fl_master.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + import paddle.fluid as fluid import paddle_fl as fl from paddle_fl.core.master.job_generator import JobGenerator diff --git a/paddle_fl/examples/dpsgd_demo/fl_scheduler.py b/paddle_fl/examples/dpsgd_demo/fl_scheduler.py index bfb608beb109349c063973fa464b2acba8ddaa9d..29bba5a610dde1253d35ce64d8776ba585b8d88f 100644 --- a/paddle_fl/examples/dpsgd_demo/fl_scheduler.py +++ b/paddle_fl/examples/dpsgd_demo/fl_scheduler.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + from paddle_fl.core.scheduler.agent_master import FLScheduler worker_num = 4 diff --git a/paddle_fl/examples/dpsgd_demo/fl_trainer.py b/paddle_fl/examples/dpsgd_demo/fl_trainer.py index ad4859d8416a01d889db204975b5e9aa7cd0fb91..f0b4a8a188456ce654056f3d531f90aaca355053 100644 --- a/paddle_fl/examples/dpsgd_demo/fl_trainer.py +++ b/paddle_fl/examples/dpsgd_demo/fl_trainer.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + from paddle_fl.core.trainer.fl_trainer import FLTrainerFactory from paddle_fl.core.master.fl_job import FLRunTimeJob import numpy diff --git a/paddle_fl/examples/femnist_demo/fl_master.py b/paddle_fl/examples/femnist_demo/fl_master.py index 1bb439bc00bca735008805ab207e27825e7cc099..5102aa37009987010d37c7ab83b4c29a1cdcb7dc 100644 --- a/paddle_fl/examples/femnist_demo/fl_master.py +++ b/paddle_fl/examples/femnist_demo/fl_master.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + import paddle.fluid as fluid import paddle_fl as fl from paddle_fl.core.master.job_generator import JobGenerator diff --git a/paddle_fl/examples/femnist_demo/fl_scheduler.py b/paddle_fl/examples/femnist_demo/fl_scheduler.py index 0bb62eccef43ca48a40bfda3a5622815cd369bcf..bc75fa66eae90aa487ecb4b9f7e7bf84c048f5d7 100644 --- a/paddle_fl/examples/femnist_demo/fl_scheduler.py +++ b/paddle_fl/examples/femnist_demo/fl_scheduler.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + from paddle_fl.core.scheduler.agent_master import FLScheduler worker_num = 4 diff --git a/paddle_fl/examples/femnist_demo/fl_server.py b/paddle_fl/examples/femnist_demo/fl_server.py index 4ea4705ae91de1e7e9cfd8a12312c86e0f4635d1..736b11f302b8653592db5b82a614985e4bdc7833 100644 --- a/paddle_fl/examples/femnist_demo/fl_server.py +++ b/paddle_fl/examples/femnist_demo/fl_server.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + import paddle_fl as fl import paddle.fluid as fluid from paddle_fl.core.server.fl_server import FLServer diff --git a/paddle_fl/examples/femnist_demo/fl_trainer.py b/paddle_fl/examples/femnist_demo/fl_trainer.py index b80058bef27ba56cbdd6950197363efeed89aa6d..03675a2472ca8f07364dee9b4510950379985a67 100644 --- a/paddle_fl/examples/femnist_demo/fl_trainer.py +++ b/paddle_fl/examples/femnist_demo/fl_trainer.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + from paddle_fl.core.trainer.fl_trainer import FLTrainerFactory from paddle_fl.core.master.fl_job import FLRunTimeJob import paddle_fl.dataset.femnist diff --git a/paddle_fl/examples/gru4rec_demo/fl_master.py b/paddle_fl/examples/gru4rec_demo/fl_master.py index 09837cf52008ff2410bb228da638ce2297231217..e5a20d971e0eaf9ab4c0fd96910a41a7227d9d77 100644 --- a/paddle_fl/examples/gru4rec_demo/fl_master.py +++ b/paddle_fl/examples/gru4rec_demo/fl_master.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + import paddle.fluid as fluid import paddle_fl as fl from paddle_fl.core.master.job_generator import JobGenerator diff --git a/paddle_fl/examples/gru4rec_demo/fl_scheduler.py b/paddle_fl/examples/gru4rec_demo/fl_scheduler.py index 0bb62eccef43ca48a40bfda3a5622815cd369bcf..bc75fa66eae90aa487ecb4b9f7e7bf84c048f5d7 100644 --- a/paddle_fl/examples/gru4rec_demo/fl_scheduler.py +++ b/paddle_fl/examples/gru4rec_demo/fl_scheduler.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + from paddle_fl.core.scheduler.agent_master import FLScheduler worker_num = 4 diff --git a/paddle_fl/examples/gru4rec_demo/fl_trainer.py b/paddle_fl/examples/gru4rec_demo/fl_trainer.py index 95a04362e9538f9e047a8368ec51fd43fba920a4..1bf229a505aee6870c36556fb0b9b90b58067141 100644 --- a/paddle_fl/examples/gru4rec_demo/fl_trainer.py +++ b/paddle_fl/examples/gru4rec_demo/fl_trainer.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + from paddle_fl.core.trainer.fl_trainer import FLTrainerFactory from paddle_fl.core.master.fl_job import FLRunTimeJob from paddle_fl.reader.gru4rec_reader import Gru4rec_Reader diff --git a/paddle_fl/examples/k8s_deployment/master/fl_master.py b/paddle_fl/examples/k8s_deployment/master/fl_master.py index 504532651b04d3f1b963e94b1995e9aff5df51b7..96aab47ae7014d3753d872e67fca1a0b593629de 100644 --- a/paddle_fl/examples/k8s_deployment/master/fl_master.py +++ b/paddle_fl/examples/k8s_deployment/master/fl_master.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + import argparse import paddle.fluid as fluid import os diff --git a/paddle_fl/examples/k8s_deployment/scheduler/fl_scheduler.py b/paddle_fl/examples/k8s_deployment/scheduler/fl_scheduler.py index 0643438e870130579594717ec5816bb4c9679ca9..232825b3c3d463f43750df0cfa698119e993118b 100644 --- a/paddle_fl/examples/k8s_deployment/scheduler/fl_scheduler.py +++ b/paddle_fl/examples/k8s_deployment/scheduler/fl_scheduler.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + import argparse from paddle_fl.core.scheduler.agent_master import FLScheduler diff --git a/paddle_fl/examples/k8s_deployment/trainer0/fl_trainer.py b/paddle_fl/examples/k8s_deployment/trainer0/fl_trainer.py index f6a39d72f0b1160523a604be1cf76026ffce1563..4cbce925ef6c401731aab8d5bd5dcc36610347e5 100644 --- a/paddle_fl/examples/k8s_deployment/trainer0/fl_trainer.py +++ b/paddle_fl/examples/k8s_deployment/trainer0/fl_trainer.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + from paddle_fl.core.trainer.fl_trainer import FLTrainerFactory from paddle_fl.core.master.fl_job import FLRunTimeJob import numpy as np diff --git a/paddle_fl/examples/k8s_deployment/trainer1/fl_trainer.py b/paddle_fl/examples/k8s_deployment/trainer1/fl_trainer.py index a694c1ab45adfbdcfde761c019ec99e0274d2376..0ed5dd099cce7e85b1ddb47857551b84d67c78c6 100644 --- a/paddle_fl/examples/k8s_deployment/trainer1/fl_trainer.py +++ b/paddle_fl/examples/k8s_deployment/trainer1/fl_trainer.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + from paddle_fl.core.trainer.fl_trainer import FLTrainerFactory from paddle_fl.core.master.fl_job import FLRunTimeJob import numpy as np diff --git a/paddle_fl/examples/secagg_demo/fl_master.py b/paddle_fl/examples/secagg_demo/fl_master.py index 4f37fa1cebbac59138becc360c3f54bc2ec0d93a..c6245d5e08ec36d7c41cd8c97c1485ddead68082 100644 --- a/paddle_fl/examples/secagg_demo/fl_master.py +++ b/paddle_fl/examples/secagg_demo/fl_master.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + import paddle.fluid as fluid import paddle_fl as fl from paddle_fl.core.master.job_generator import JobGenerator diff --git a/paddle_fl/examples/secagg_demo/fl_scheduler.py b/paddle_fl/examples/secagg_demo/fl_scheduler.py index 368df6a1ed47ea81c3bacd6b3a74b56a60761460..1d8c21b8307ce8b1d20f2ecea1557bc2fb56e0c1 100644 --- a/paddle_fl/examples/secagg_demo/fl_scheduler.py +++ b/paddle_fl/examples/secagg_demo/fl_scheduler.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + from paddle_fl.core.scheduler.agent_master import FLScheduler worker_num = 2 diff --git a/paddle_fl/examples/submitter_demo/model.py b/paddle_fl/examples/submitter_demo/model.py index c885b3743e9dd013645c15678967de7a85fa309b..2ead34a71835492df47e05f1d369e271433882f7 100644 --- a/paddle_fl/examples/submitter_demo/model.py +++ b/paddle_fl/examples/submitter_demo/model.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + import paddle.fluid as fluid diff --git a/paddle_fl/examples/submitter_demo/scheduler_client.py b/paddle_fl/examples/submitter_demo/scheduler_client.py index e3865efcd9a822cdc44a63ab316d067039bd1d9b..2e903353585c2ec418614be1a373afcec72395aa 100644 --- a/paddle_fl/examples/submitter_demo/scheduler_client.py +++ b/paddle_fl/examples/submitter_demo/scheduler_client.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + import os import socket import random diff --git a/paddle_fl/examples/submitter_demo/train_program.py b/paddle_fl/examples/submitter_demo/train_program.py index c37ac2ecc02051e0383c6c36048e8d0a954ab1c5..bba1482df0ed198a348e67e51ba79e60a9bc3a4b 100644 --- a/paddle_fl/examples/submitter_demo/train_program.py +++ b/paddle_fl/examples/submitter_demo/train_program.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + import socket import random import zmq diff --git a/paddle_fl/reader/gru4rec_reader.py b/paddle_fl/reader/gru4rec_reader.py index 03070562e112e5f0021be848d65a22f5dedc1a29..6e95909da989e73dc4fcc9c539967cca8b8f2024 100644 --- a/paddle_fl/reader/gru4rec_reader.py +++ b/paddle_fl/reader/gru4rec_reader.py @@ -1,3 +1,17 @@ +# Copyright (c) 2020 PaddlePaddle 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. + import paddle.fluid as fluid import numpy as np import os