Skip to content

String as input in petastorm dataloaders #795

Open
@freud14-tm

Description

In the _sanitize_pytorch_types function used in petastorm dataloaders, an exception is raised when an input is a string:

elif re.search('[SaUO]', value.dtype.str):

Is this really necessary? Maybe the default_collate function from PyTorch might not always like, although it seems to support it according to the documentation, but this prevents making other types of collate functions.

Would you consider removing the exception? Thank you.

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