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 .io import datafrombytes
|
||||||
from .misc import add_prefix, stack_batch
|
from .misc import add_prefix, stack_batch
|
||||||
from .set_env import register_all_modules
|
from .set_env import register_all_modules
|
||||||
from .typing import (ConfigType, ForwardResults, MultiConfig, OptConfigType,
|
from .typing_utils import (ConfigType, ForwardResults, MultiConfig,
|
||||||
OptMultiConfig, OptSampleList, SampleList, TensorDict,
|
OptConfigType, OptMultiConfig, OptSampleList,
|
||||||
TensorList)
|
SampleList, TensorDict, TensorList)
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
'collect_env', 'register_all_modules', 'stack_batch', 'add_prefix',
|
'collect_env', 'register_all_modules', 'stack_batch', 'add_prefix',
|
||||||
|
@ -5,7 +5,7 @@ import numpy as np
|
|||||||
import torch
|
import torch
|
||||||
import torch.nn.functional as F
|
import torch.nn.functional as F
|
||||||
|
|
||||||
from .typing import SampleList
|
from .typing_utils import SampleList
|
||||||
|
|
||||||
|
|
||||||
def add_prefix(inputs, prefix):
|
def add_prefix(inputs, prefix):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user