-
Notifications
You must be signed in to change notification settings - Fork 74k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return proper value for dynamic size when replacing Einsum with Batch…
…MatMul. Prior to this change, the added test case would result in a BatchMatMul op with an incorrect result shape of `2x?x0x1xf32`. The value representing dynamic size has changed from `-1` to `std::numeric_limits<int64_t>::min()`. The fixed conditional, which returns the value representing dynamic size if detected in the provided shape, would (previously) continue to multiply int64 min by subsequent shape values. This would result in a return value of `0` if int64 min was multiplied by other even values (or int64 min if multiplied by odd values) due to integer overflow. PiperOrigin-RevId: 495961505
- Loading branch information
1 parent
f1447ef
commit 2065b6f
Showing
2 changed files
with
12 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