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:
zccjjj 2023-02-01 19:11:38 +08:00 committed by GitHub
parent a092fea8c1
commit ce63ccf7ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -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',

View File

@ -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):