Skip to content

[Feature Request] Choice spec #2712

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

Closed
1 task done
kurtamohler opened this issue Jan 22, 2025 · 1 comment
Closed
1 task done

[Feature Request] Choice spec #2712

kurtamohler opened this issue Jan 22, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@kurtamohler
Copy link
Collaborator

kurtamohler commented Jan 22, 2025

Motivation

Add a Choice spec that chooses between a stack of specs or non-tensor data.

Initially proposed here: #2698 (comment)

Solution

When generating a sample, Choice spec should choose between the specs in the stack and then generate a sample from that spec.

Alternatives

Additional context

Checklist

  • I have checked that there is no similar issue in the repo (required)
@kurtamohler kurtamohler added the enhancement New feature or request label Jan 22, 2025
@kurtamohler kurtamohler self-assigned this Jan 22, 2025
@kurtamohler
Copy link
Collaborator Author

Closed by #2713

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

No branches or pull requests

1 participant