Skip to content

Commit

Permalink
Rename typing.py to typing_utils.py (open-mmlab#2548)
Browse files Browse the repository at this point in the history
## Motivation

Fix the bug in running ```collect_evn.py```. open-mmlab#2547 

## Modification

Rename typing.py to typing_utils.py
  • Loading branch information
zccjjj committed Feb 1, 2023
1 parent a092fea commit ce63ccf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions mmseg/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
from .io import datafrombytes
from .misc import add_prefix, stack_batch
from .set_env import register_all_modules
from .typing import (ConfigType, ForwardResults, MultiConfig, OptConfigType,
OptMultiConfig, OptSampleList, SampleList, TensorDict,
TensorList)
from .typing_utils import (ConfigType, ForwardResults, MultiConfig,
OptConfigType, OptMultiConfig, OptSampleList,
SampleList, TensorDict, TensorList)

__all__ = [
'collect_env', 'register_all_modules', 'stack_batch', 'add_prefix',
Expand Down
2 changes: 1 addition & 1 deletion mmseg/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import torch
import torch.nn.functional as F

from .typing import SampleList
from .typing_utils import SampleList


def add_prefix(inputs, prefix):
Expand Down
File renamed without changes.

0 comments on commit ce63ccf

Please sign in to comment.