mirror of
https://github.com/open-mmlab/mmsegmentation.git
synced 2025-06-03 22:03:48 +08:00
Rename typing.py to typing_utils.py (#2548)
## Motivation Fix the bug in running ```collect_evn.py```. #2547 ## Modification Rename typing.py to typing_utils.py
This commit is contained in:
parent
a092fea8c1
commit
ce63ccf7ab
@ -13,9 +13,9 @@ from .collect_env import collect_env
|
||||
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',
|
||||
|
@ -5,7 +5,7 @@ import numpy as np
|
||||
import torch
|
||||
import torch.nn.functional as F
|
||||
|
||||
from .typing import SampleList
|
||||
from .typing_utils import SampleList
|
||||
|
||||
|
||||
def add_prefix(inputs, prefix):
|
||||
|
Loading…
x
Reference in New Issue
Block a user