Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to Disable Compose list/tuple Expansion #7932

Open
ericspod opened this issue Jul 19, 2024 · 1 comment
Open

Option to Disable Compose list/tuple Expansion #7932

ericspod opened this issue Jul 19, 2024 · 1 comment

Comments

@ericspod
Copy link
Member

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.

@KumoLiu
Copy link
Contributor

KumoLiu commented Jul 19, 2024

Look like the similar request with this one: #7565

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants