diff --git a/elastic-ctr-cli/mlflow_listen.py b/elastic-ctr-cli/mlflow_listen.py index 755ae3fc0ebd264af36fe4cd5bf6aa5c2cc3301a..19b51caf34393a109d7e5dd3561688b3687496bd 100644 --- a/elastic-ctr-cli/mlflow_listen.py +++ b/elastic-ctr-cli/mlflow_listen.py @@ -1,3 +1,17 @@ +# Copyright (c) 2019 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 time import os diff --git a/fleet-ctr/infer.py b/fleet-ctr/infer.py index 16c16b483785be2a8498d1700cb96030d37646d6..0f21682116969c50b8c846f41baf71a86ae52533 100644 --- a/fleet-ctr/infer.py +++ b/fleet-ctr/infer.py @@ -1,3 +1,17 @@ +# Copyright (c) 2019 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 math import sys import os diff --git a/fleet-ctr/process_rawmodel.py b/fleet-ctr/process_rawmodel.py index 20601c8c78fe77ebeaf3d091201fc86ec585e25f..463d131be1c6f8874b8330e69482384f5a9ed78d 100644 --- a/fleet-ctr/process_rawmodel.py +++ b/fleet-ctr/process_rawmodel.py @@ -1,3 +1,17 @@ +# Copyright (c) 2019 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 sys diff --git a/save_program/dumper.py b/save_program/dumper.py index 49f45003fbcd6fc191d4c82ee0e9aa303de27e6e..d284fe1e7cd8df5efdb1b668d07f7ec4f5d1dbd8 100644 --- a/save_program/dumper.py +++ b/save_program/dumper.py @@ -1,18 +1,18 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- +# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # -# Name: dumper.py +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at # -# Author: wangguibao (wangguibao@baidu.com) -# -# Usage: python dumper.py --model_path /path/to/model -# -# Dumps CTR model SparseFeatFactors embedding as key-value pairs, then -# convert to Hadoop SequenceFile format -# -# Reference: -# http://wiki.baidu.com/pages/viewpage.action?pageId=651610671 +# http://www.apache.org/licenses/LICENSE-2.0 # +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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 logging import struct diff --git a/save_program/nets.py b/save_program/nets.py index f06e36945d22c2b47f59da541ff0f5614586c3db..7ae328704c351e22acc3c3da5185a09e9a51073d 100644 --- a/save_program/nets.py +++ b/save_program/nets.py @@ -1,3 +1,17 @@ +# Copyright (c) 2019 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 argparse diff --git a/save_program/replace_params.py b/save_program/replace_params.py index 2e83f3725bfd7d16c8fcfa7e516d179935148265..b1e53259041b096ff2c01970956ab38121ec6ccc 100644 --- a/save_program/replace_params.py +++ b/save_program/replace_params.py @@ -1,3 +1,17 @@ +# Copyright (c) 2019 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 shutil import argparse