-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In cudnn_fused_conv_rewriter.h, allow clamp to omitted when convertin…
…g f32 to s8. As an implementation detail, XLA already clamps when converting float to int, so it's ok to pattern-match a fused_conv_outputting_f32->convert_to_s8 into a fused_conv_outputting_s8, even without a clamp in between the fused conv and convert. Even so, I would still recommend users have a clamp in their code, since the implicit clamping behavior is unspecified. PiperOrigin-RevId: 726550567
- Loading branch information
1 parent
95cd71a
commit 5d0a237
Showing
3 changed files
with
63 additions
and
1 deletion.
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
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