From 20da946334c9aae55a02ef3fdb5dcc58d52bf136 Mon Sep 17 00:00:00 2001 From: jingqinghe Date: Wed, 13 May 2020 14:49:04 +0800 Subject: [PATCH] fix bugs in mpc demo --- .../mpc/examples/mnist_demo/mnist_demo.py | 1 - .../mpc/examples/mnist_demo/run_standalone.sh | 15 ++++++++++++++- .../mpc/examples/uci_demo/run_standalone.sh | 15 ++++++++++++++- 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/python/paddle_fl/mpc/examples/mnist_demo/mnist_demo.py b/python/paddle_fl/mpc/examples/mnist_demo/mnist_demo.py index 283dfc1..5d7c546 100644 --- a/python/paddle_fl/mpc/examples/mnist_demo/mnist_demo.py +++ b/python/paddle_fl/mpc/examples/mnist_demo/mnist_demo.py @@ -1,4 +1,3 @@ -# coding=utf-8 # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/python/paddle_fl/mpc/examples/mnist_demo/run_standalone.sh b/python/paddle_fl/mpc/examples/mnist_demo/run_standalone.sh index 32ec36a..7819af2 100755 --- a/python/paddle_fl/mpc/examples/mnist_demo/run_standalone.sh +++ b/python/paddle_fl/mpc/examples/mnist_demo/run_standalone.sh @@ -1,5 +1,18 @@ -#!/bin/bash +# 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. + + # A tools to faciliate the parallel running of fluid_encrypted test scrips. # A test script is EXPECTED to accepted arguments in the following format: # diff --git a/python/paddle_fl/mpc/examples/uci_demo/run_standalone.sh b/python/paddle_fl/mpc/examples/uci_demo/run_standalone.sh index 32ec36a..7819af2 100755 --- a/python/paddle_fl/mpc/examples/uci_demo/run_standalone.sh +++ b/python/paddle_fl/mpc/examples/uci_demo/run_standalone.sh @@ -1,5 +1,18 @@ -#!/bin/bash +# 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. + + # A tools to faciliate the parallel running of fluid_encrypted test scrips. # A test script is EXPECTED to accepted arguments in the following format: # -- GitLab