forked from tensorflow/tensorflow
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR tensorflow#17170: Code dedup in execution_trace_utils LiteralToValue
Imported from GitHub PR openxla/xla#17170 Code dedup in execution_trace_utils LiteralToValue ### Issue descr: To avoid having to modify this every time a new FP8 type is added, remove all these FP8 cases and check if IsF8Type(literal.shape().element_type() before the switch statement. Copybara import of the project: -- 2b50deff921dd98b530df1994b3317073ac528f7 by Alexander Pivovarov <pivovaa@amazon.com>: Code dedup in execution_trace_utils LiteralToValue Merging this change closes tensorflow#17170 PiperOrigin-RevId: 675361983
- Loading branch information
1 parent
3ecd4ca
commit 6ed0d07
Showing
2 changed files
with
9 additions
and
11 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