diff --git a/examples/cv/mnist_lenet5_image_classification_pure_lightning.py b/examples/cv/mnist_lenet5_image_classification_pure_lightning.py index 913edaf83..b84bb420f 100644 --- a/examples/cv/mnist_lenet5_image_classification_pure_lightning.py +++ b/examples/cv/mnist_lenet5_image_classification_pure_lightning.py @@ -1,4 +1,3 @@ -# ============================================================================= # Copyright (c) 2020 NVIDIA. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,7 +11,6 @@ # 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 dataclasses import dataclass diff --git a/external/get_collections.py b/external/get_collections.py index d39f3e87a..803db2afd 100644 --- a/external/get_collections.py +++ b/external/get_collections.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# ============================================================================= # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,7 +12,6 @@ # 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. -# ============================================================================= """ Script responsible for generation of a JSON file with list of NeMo collections. """ diff --git a/external/get_modules.py b/external/get_modules.py index fa79fc70c..ba8f2f60d 100644 --- a/external/get_modules.py +++ b/external/get_modules.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# ============================================================================= # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,7 +12,6 @@ # 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. -# ============================================================================= """ Script responsible for generation of a JSON file containing list of modules of a given collection. """ diff --git a/nemo/collections/cv/__init__.py b/nemo/collections/cv/__init__.py index e36b43be6..78661a5c4 100644 --- a/nemo/collections/cv/__init__.py +++ b/nemo/collections/cv/__init__.py @@ -1,4 +1,3 @@ -# ============================================================================= # Copyright (c) 2020 NVIDIA. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,7 +11,6 @@ # 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 nemo.collections.cv import datasets, losses, models, modules from nemo.package_info import __version__ diff --git a/nemo/collections/cv/datasets/__init__.py b/nemo/collections/cv/datasets/__init__.py index b51615ae6..5df4a9aaa 100644 --- a/nemo/collections/cv/datasets/__init__.py +++ b/nemo/collections/cv/datasets/__init__.py @@ -1,4 +1,3 @@ -# ============================================================================= # Copyright (c) 2020 NVIDIA. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +11,5 @@ # 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 nemo.collections.cv.datasets.mnist_dataset import MNISTDataset, MNISTDatasetConfig diff --git a/nemo/collections/cv/datasets/mnist_dataset.py b/nemo/collections/cv/datasets/mnist_dataset.py index 77181544f..7f93b3db3 100644 --- a/nemo/collections/cv/datasets/mnist_dataset.py +++ b/nemo/collections/cv/datasets/mnist_dataset.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# ============================================================================= # Copyright (c) 2020 NVIDIA. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,7 +12,6 @@ # 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 dataclasses import dataclass from os.path import expanduser diff --git a/nemo/collections/cv/losses/__init__.py b/nemo/collections/cv/losses/__init__.py index 8190b6853..55421d3ab 100644 --- a/nemo/collections/cv/losses/__init__.py +++ b/nemo/collections/cv/losses/__init__.py @@ -1,4 +1,3 @@ -# ============================================================================= # Copyright (c) 2020 NVIDIA. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +11,5 @@ # 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 nemo.collections.cv.losses.nll_loss import NLLLoss diff --git a/nemo/collections/cv/losses/nll_loss.py b/nemo/collections/cv/losses/nll_loss.py index 6d20c5fb1..e922ecb08 100644 --- a/nemo/collections/cv/losses/nll_loss.py +++ b/nemo/collections/cv/losses/nll_loss.py @@ -1,4 +1,3 @@ -# ============================================================================= # Copyright (c) 2020 NVIDIA. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,7 +11,6 @@ # 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 typing import Optional diff --git a/nemo/collections/cv/models/__init__.py b/nemo/collections/cv/models/__init__.py index da06d9162..42f67b360 100644 --- a/nemo/collections/cv/models/__init__.py +++ b/nemo/collections/cv/models/__init__.py @@ -1,4 +1,3 @@ -# ============================================================================= # Copyright (c) 2020 NVIDIA. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +11,5 @@ # 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 nemo.collections.cv.models.mnist_lenet5 import MNISTLeNet5, MNISTLeNet5Config diff --git a/nemo/collections/cv/models/mnist_lenet5.py b/nemo/collections/cv/models/mnist_lenet5.py index bf8c47948..482f8f4a9 100644 --- a/nemo/collections/cv/models/mnist_lenet5.py +++ b/nemo/collections/cv/models/mnist_lenet5.py @@ -1,4 +1,3 @@ -# ============================================================================= # Copyright (c) 2020 NVIDIA. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,7 +11,6 @@ # 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 dataclasses import dataclass from typing import Any, Dict, Optional diff --git a/nemo/collections/cv/modules/__init__.py b/nemo/collections/cv/modules/__init__.py index fcd1e5bcd..a2064bdee 100644 --- a/nemo/collections/cv/modules/__init__.py +++ b/nemo/collections/cv/modules/__init__.py @@ -1,4 +1,3 @@ -# ============================================================================= # Copyright (c) 2020 NVIDIA. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +11,5 @@ # 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 nemo.collections.cv.modules.lenet5 import LeNet5 diff --git a/nemo/collections/cv/modules/lenet5.py b/nemo/collections/cv/modules/lenet5.py index da34c82a6..6d3cf7ee3 100644 --- a/nemo/collections/cv/modules/lenet5.py +++ b/nemo/collections/cv/modules/lenet5.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# ============================================================================= # Copyright (c) 2020 NVIDIA. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,7 +12,6 @@ # 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 typing import Optional diff --git a/nemo/core/config/__init__.py b/nemo/core/config/__init__.py index 1cf76361b..30d6f1837 100644 --- a/nemo/core/config/__init__.py +++ b/nemo/core/config/__init__.py @@ -1,4 +1,3 @@ -# ============================================================================= # Copyright (c) 2020 NVIDIA. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,7 +11,6 @@ # 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 nemo.core.config.base_config import Config from nemo.core.config.optimizers import ( diff --git a/nemo/core/config/base_config.py b/nemo/core/config/base_config.py index b2133d84a..961ad46e2 100644 --- a/nemo/core/config/base_config.py +++ b/nemo/core/config/base_config.py @@ -1,4 +1,3 @@ -# ============================================================================= # Copyright (c) 2020 NVIDIA. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,7 +11,6 @@ # 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 dataclasses import dataclass from typing import Optional diff --git a/nemo/core/config/optimizers.py b/nemo/core/config/optimizers.py index 2bd9d1cd1..64ec671f5 100644 --- a/nemo/core/config/optimizers.py +++ b/nemo/core/config/optimizers.py @@ -1,4 +1,3 @@ -# ============================================================================= # Copyright (c) 2020 NVIDIA. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,7 +11,6 @@ # 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 dataclasses import dataclass from functools import partial diff --git a/nemo/core/config/pytorch.py b/nemo/core/config/pytorch.py index fe24bdeb3..7a6a6f4b8 100644 --- a/nemo/core/config/pytorch.py +++ b/nemo/core/config/pytorch.py @@ -1,4 +1,3 @@ -# ============================================================================= # Copyright (c) 2020 NVIDIA. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,7 +11,6 @@ # 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 dataclasses import dataclass from typing import Any, Optional diff --git a/nemo/core/config/pytorch_lightning.py b/nemo/core/config/pytorch_lightning.py index 51a4467dc..3249e4c0a 100644 --- a/nemo/core/config/pytorch_lightning.py +++ b/nemo/core/config/pytorch_lightning.py @@ -1,4 +1,3 @@ -# ============================================================================= # Copyright (c) 2020 NVIDIA. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,7 +11,6 @@ # 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 dataclasses import dataclass from typing import Any, Dict, List, Optional diff --git a/nemo/core/config/set_config.py b/nemo/core/config/set_config.py index 5c66b5987..a7208fcff 100644 --- a/nemo/core/config/set_config.py +++ b/nemo/core/config/set_config.py @@ -1,4 +1,3 @@ -# ============================================================================= # Copyright (c) 2020 NVIDIA. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,7 +11,6 @@ # 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 functools from typing import Any, Callable, Optional diff --git a/nemo/utils/env_var_parsing.py b/nemo/utils/env_var_parsing.py index 063c9d14d..37247763d 100644 --- a/nemo/utils/env_var_parsing.py +++ b/nemo/utils/env_var_parsing.py @@ -22,7 +22,6 @@ # # Vendored dependency from : https://github.com/yunojuno/python-env-utils/blob/master/env_utils/utils.py # -# ========================================================================================================= # # Modified by NVIDIA # diff --git a/setup.cfg b/setup.cfg index ff9cef5bb..2180b4b1a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,4 +1,3 @@ -# ============================================================================= # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,7 +11,6 @@ # 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. -# ============================================================================= [aliases] test=pytest diff --git a/setup.py b/setup.py index 618fb980f..ccb7edc53 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,6 @@ # 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. -# ============================================================================= """Setup for pip package."""