-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make hk.switch support multiple operands just like jax.lax.switch.
jax.lax.switch remained backwards compatible with passing `operand` as a keyword, but because hk.switch is not widely used I propose we make this a breaking change and remove the `operand` kwarg. PiperOrigin-RevId: 500190018
- Loading branch information
1 parent
9c9624a
commit 057878b
Showing
2 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters