Skip to content

String as input in petastorm dataloaders #795

Description

@freud14-tm

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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