forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TF FE] Fix centernet and correct FloorDiv translator for signed inte…
…ger type (openvinotoolkit#22684) ### Details: - Centernet's topk operation returns large int32 values (greater than 1000000), even though they are integer `FloorDiv`/`Div(inp_1, inp_2) + Floor` operation is performed in float16 and because of that it causes accuracy problems. - To solve this need to performs FloorDiv operation in integer with a subgraph: ``` res = x / y; if x > 0 and y > 0 res = x / y - 1; if (x < 0 xor y < 0) and (x mod y != 0) ``` - checked on separate bus: no degradations caused. ### Tickets: - CVS-130526 --------- Co-authored-by: Roman Kazantsev <[email protected]>
- Loading branch information
1 parent
b53fa91
commit 88b792e
Showing
4 changed files
with
108 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
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