Skip to content

Make all Switch inputs optional#2867

Merged
joeyballentine merged 2 commits intochaiNNer-org:mainfrom
RunDevelopment:opt-switch
May 18, 2024
Merged

Make all Switch inputs optional#2867
joeyballentine merged 2 commits intochaiNNer-org:mainfrom
RunDevelopment:opt-switch

Conversation

@RunDevelopment
Copy link
Member

I made the A and B inputs optional, because this makes the Switch node easier to use. Whether users switch A and B or C and D doesn't matter, so why should we force users to have a connection to A and B?

This change doesn't affect correctness, because the type system already ensure that users don't select an input without a value.

joeyballentine
joeyballentine previously approved these changes May 18, 2024
@joeyballentine joeyballentine merged commit 202c9a5 into chaiNNer-org:main May 18, 2024
@RunDevelopment RunDevelopment deleted the opt-switch branch May 18, 2024 17:11
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

Successfully merging this pull request may close these issues.

2 participants