Skip to content

Use if chains instead of match case to avoid TF warnings#357

Merged
boomanaiden154 merged 1 commit intogoogle:mainfrom
boomanaiden154:switch-match-for-tf-tracing
Jul 7, 2025
Merged

Use if chains instead of match case to avoid TF warnings#357
boomanaiden154 merged 1 commit intogoogle:mainfrom
boomanaiden154:switch-match-for-tf-tracing

Conversation

@boomanaiden154
Copy link
Collaborator

TF will issue warnings around match case statements. We can annotate this with a function decorator to prevent autograph conversion, but the performance implications of this, especially for JIT compilation, are unclear. Use constructs that are supported even if they are slightly less clean/maintainable to get rid of the warning and avoid any performance penalties.

TF will issue warnings around match case statements. We can annotate
this with a function decorator to prevent autograph conversion, but the
performance implications of this, especially for JIT compilation, are
unclear. Use constructs that are supported even if they are slightly
less clean/maintainable to get rid of the warning and avoid any
performance penalties.
@boomanaiden154 boomanaiden154 merged commit 7f14ba1 into google:main Jul 7, 2025
7 checks passed
@boomanaiden154 boomanaiden154 deleted the switch-match-for-tf-tracing branch July 7, 2025 13:39
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