Skip to content

Commit

Permalink
add license note
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Sep 6, 2022
1 parent be6d484 commit aa8e33f
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 20 deletions.
9 changes: 0 additions & 9 deletions src/lightning_utilities/core/apply_func.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
# Copyright The PyTorch Lightning team.
#
# 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 dataclasses
from collections import defaultdict, OrderedDict
from copy import deepcopy
Expand Down
4 changes: 4 additions & 0 deletions src/lightning_utilities/core/enums.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright The PyTorch Lightning team.
# Licensed under the Apache License, Version 2.0 (the "License");
# http://www.apache.org/licenses/LICENSE-2.0
#
from enum import Enum
from typing import Optional

Expand Down
12 changes: 1 addition & 11 deletions src/lightning_utilities/core/imports.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
# Copyright The PyTorch Lightning team.
#
# 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 importlib
#import importlib
import operator
from functools import lru_cache
from importlib.util import find_spec
Expand Down
4 changes: 4 additions & 0 deletions src/lightning_utilities/core/inheritance.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright The PyTorch Lightning team.
# Licensed under the Apache License, Version 2.0 (the "License");
# http://www.apache.org/licenses/LICENSE-2.0
#
from typing import Iterator, Set, Type


Expand Down
4 changes: 4 additions & 0 deletions src/lightning_utilities/core/overrides.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright The PyTorch Lightning team.
# Licensed under the Apache License, Version 2.0 (the "License");
# http://www.apache.org/licenses/LICENSE-2.0
#
from functools import partial
from typing import Type
from unittest.mock import Mock
Expand Down
4 changes: 4 additions & 0 deletions src/lightning_utilities/core/rank_zero.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright The PyTorch Lightning team.
# Licensed under the Apache License, Version 2.0 (the "License");
# http://www.apache.org/licenses/LICENSE-2.0
#
"""Utilities that can be used for calling functions on a particular rank."""
import logging
import warnings
Expand Down
4 changes: 4 additions & 0 deletions src/lightning_utilities/dev/__main__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright The PyTorch Lightning team.
# Licensed under the Apache License, Version 2.0 (the "License");
# http://www.apache.org/licenses/LICENSE-2.0
#
import fire

from lightning_utilities.dev.dependencies import prune_pkgs_in_requirements, replace_oldest_ver
Expand Down
4 changes: 4 additions & 0 deletions src/lightning_utilities/dev/dependencies.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright The PyTorch Lightning team.
# Licensed under the Apache License, Version 2.0 (the "License");
# http://www.apache.org/licenses/LICENSE-2.0
#
import glob
import os.path
from pprint import pprint
Expand Down

0 comments on commit aa8e33f

Please sign in to comment.