Skip to content

Option to Disable Compose list/tuple Expansion #7932

Description

@ericspod

Is your feature request related to a problem? Please describe.
Here Compose will expand any data item which is a list or tuple and apply transforms individually to each element. This is used when a transform produces multiple outputs. This isn't always wanted if one wants to pass something iterable to transform as-is.

Describe the solution you'd like
A constructor argument to Compose to disable this behaviour.

Describe alternatives you've considered
Data needs to be wrapped as a dictionary or something not a list/tuple to route around this issue.

Additional context
This is using transforms for data processing rather than training so a somewhat niche use case.

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