-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ARM CPU] Fix eltwise op tests (Divide) #17029
Conversation
…into an/fix_tetsts
…into an/fix_tetsts
…into an/fix_tetsts
if (!divide) { | ||
return false; | ||
} | ||
if (divide->get_element_type() != ov::element::i32) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would propose to use divide->get_element_type().is_integral_number()
instead. We are going to merge I64 native support, so it would be nice to make this transofmration suitable for upcoming change.
namespace ov { | ||
namespace intel_cpu { | ||
|
||
ConvertI32Div::ConvertI32Div() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe: DecomposeIntegerDivide
?
File name should also be changed
@@ -262,6 +263,7 @@ void Transformations::PreLpt(const std::vector<ov::element::Type>& defaultPrecis | |||
CPU_REGISTER_PASS_ARM(manager, ConvertConv1D); | |||
CPU_REGISTER_PASS_ARM(manager, ConvertGroupConv1D); | |||
CPU_REGISTER_PASS_ARM(manager, ConvertGroupConvolution); | |||
CPU_REGISTER_PASS_ARM(manager, ConvertI32Div); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets put the explanation here: The plugin computes Divide in floating point precision. To preserve correct math for integer division we need to insert explicit Floor operation.
…to an/fix_tetsts
…into an/fix_tetsts
@dmitry-gorokhov done |
No description provided.