Skip to content

Correct the sign definition of the result for the FloorMod operator (Sign should be like a divisor, not a dividend)#5188

Merged
lazarevevgeny merged 1 commit intoopenvinotoolkit:masterfrom
bsledz:floor_mod_documentation_fix
Apr 12, 2021
Merged

Correct the sign definition of the result for the FloorMod operator (Sign should be like a divisor, not a dividend)#5188
lazarevevgeny merged 1 commit intoopenvinotoolkit:masterfrom
bsledz:floor_mod_documentation_fix

Conversation

@bsledz
Copy link
Copy Markdown
Contributor

@bsledz bsledz commented Apr 12, 2021

Details:

This PR is related to:
#5173

This sentence:
The sign of the result is equal to a sign of a dividend
appears to conflict with:
It is the same behaviour like in Python programming language: floor(x / y) * y + floor_mod(x, y) = x.

Both the reference implementation and the CPU plugin take the sign from the divisor and it follows the formula above (see unit tests for this operator for details).

Tickets:

  • 38712

@bsledz bsledz requested review from jdanieck, mitruska and tomdol April 12, 2021 09:00
@bsledz bsledz requested a review from a team as a code owner April 12, 2021 09:00
@bsledz bsledz added the category: docs OpenVINO documentation label Apr 12, 2021
@bsledz bsledz mentioned this pull request Apr 12, 2021
@lazarevevgeny lazarevevgeny merged commit 4337a2f into openvinotoolkit:master Apr 12, 2021
mryzhov pushed a commit to mryzhov/openvino that referenced this pull request Apr 23, 2021
liubo-intel pushed a commit to liubo-intel/openvino that referenced this pull request Apr 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: docs OpenVINO documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants