Skip to content

Option to Disable Compose list/tuple Expansion #7932

@ericspod

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.

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