-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[PT FE] [ONNX FE] Partially upcast random_normal to f32 #21400
[PT FE] [ONNX FE] Partially upcast random_normal to f32 #21400
Conversation
5e6eda3
to
ed857e9
Compare
Could you add test for this? |
Some existing tests are failing. Wil fix this |
392982c
to
e306867
Compare
@pavel-esir should we trigger any performance validation for this to check the potential regression? |
I think it's not necessary. These changes are very safe. RandomUniform and Logs are very computationally lightweight, compared to Convolutions, MatMuls. I took a look to execution graph and Log/RandomUniform both take ~2 microsecs, while Conv ~320 microsecs. |
…cast_randn_to_f32
Upcast randn to f32
|
||
#pragma once | ||
|
||
#include "ngraph/output_vector.hpp" |
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.
please, avoid use of legacy API
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.
will fix this in a separate PR
…kit#21400) * upcast randn to fp32 * style fix * corrected tests * add layer tests with statistics * style-fix * move make_random_normal to cmmmon * style-fix * added randn layer tests; updated CMakeLists.txt * moved to inline * fix problem with _USE_MATH_DEFINES on Win * pass NodeRegistry as reference; some other minor corrections * adjust thresholds to avoid sporadicity * move random_normal_helper and hide from public api * fix install * fix install: 2nd try * Frontend common * remove last frontend_common::static * build fix * try to fix mock1 build: 2nd attempt * try to fix mock1 build: 3rd attempt * Update src/core/tests/CMakeLists.txt * Fixed build: attemp 2 * Update src/plugins/intel_cpu/tests/unit/CMakeLists.txt * Update CMakeLists.txt --------- Co-authored-by: Ilya Lavrenov <[email protected]>
Details:
Tickets: