diff --git a/transform/__init__.py b/transform/__init__.py index 7986cdd642998fb0638a81c9ea22615faf8bad0b..78f618e617f4c1c94f95695e47c77509a28b7837 100644 --- a/transform/__init__.py +++ b/transform/__init__.py @@ -1 +1,15 @@ +# 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 .transforms import * diff --git a/transform/functional.py b/transform/functional.py index b5f6392a2e4ffd06e333ab805ed7e1e2aa5d25c2..8305619cc291a7f18c7258f1936fd9af684a967e 100644 --- a/transform/functional.py +++ b/transform/functional.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 collections import random diff --git a/transform/transforms.py b/transform/transforms.py index 63dd52a9ceec9d1e78228b7524dc67ca49d87f58..47a5454e6a6a4ee18d239526defe9360d83ce8f0 100644 --- a/transform/transforms.py +++ b/transform/transforms.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 division import math @@ -14,10 +28,8 @@ import warnings from . import functional as F if sys.version_info < (3, 3): - Sequence = collections.Sequence Iterable = collections.Iterable else: - Sequence = collections.abc.Sequence Iterable = collections.abc.Iterable __all__ = [