Skip to content

Type of the return value is error. #632

@YushunXiang

Description

@YushunXiang

System Info

all system

Information

  • The official example scripts
  • My own modified scripts

Reproduction

def load_model(
model: torch.nn.Module,
filename: Union[str, os.PathLike],
strict: bool = True,
device: Union[str, int] = "cpu",
) -> Tuple[List[str], List[str]]:

The type of the return value should be Tuple[Set[str], Set[str]] instead of Tuple[List[str], List[str]]

Expected behavior

The type of the return value is Tuple[Set[str], Set[str]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions