-
Notifications
You must be signed in to change notification settings - Fork 17
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
[IENN-NGRAPH]Add support for quant deeplab model #56
Conversation
There are no regression for test cases and examples
|
@lisa0314 please rebase the PR based on latest code, thanks. |
@fujunwei rebase done! Please help to review again. Thanks! |
@fujunwei I have update the PR as your comments. Please help to review again. Thanks! |
@fujunwei Done! Please help to merge it. Thanks! |
LGTM, @huningxin PTAL. |
@huningxin PTAL. Thanks! |
@lisa0314 Please update the binary including windows and linux and regression checker for test cases and some examples like #58 (comment), thanks. |
LGTM. Thanks! |
On ICL I5 for Windows:
|
e31917c
to
7e7b7eb
Compare
@fujunwei code has bee updated! After this PR merged, ienn could both support NCHW and NHWC layout. Please help to review again! Thanks! |
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.
LGTM with one nit. Thanks @lisa0314
Please make sure it can be passed regression checker.
@@ -195,12 +195,13 @@ int32_t Compilation::Compile() { | |||
|
|||
OutputsDataMap output_info(network_->getOutputsInfo()); | |||
for (auto itr : output_info) { | |||
itr.second->setPrecision(Precision::FP32); | |||
SizeVector dims = itr.second->getTensorDesc().getDims(); |
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.
Why remove this line and add the unused code?
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.
@fujunwei I remove the itr.second->setPrecision(Precision::FP32)
since the output of argmax is int32. I remove the output process code int32 to float
in ie_execution.cpp
. The unused code has been removed.
@@ -588,8 +703,12 @@ int32_t Compilation::AddFullyConnectedV1(const Operation& operation) { | |||
try { | |||
const uint32_t weights_index = operation.inputs[1]; | |||
const uint32_t bias_index = operation.inputs[2]; | |||
AddConstant(weights_index, true); | |||
AddConstant(bias_index, true); | |||
if (index_op_map_.find(weights_index) == index_op_map_.end()) { |
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.
Line 244 has been added, so pls delete it here.
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.
done.
8cd087d
to
e471b4c
Compare
@fujunwei Regression checker and examples test have been updated for Linux and Windows. |
[ienn] Update ie_nn_c_api.dll file for windows
Let's merge, thanks @lisa0314 . |
This is used on the server side for logging purposes (cherry picked from commit 7389124) Bug: 1317443 Change-Id: Ib782da6dd4a33324381e2ada365dc2e7d92073c4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3585070 Reviewed-by: Vinny Persky <vinnypersky@google.com> Reviewed-by: Dominic Battré <battre@chromium.org> Commit-Queue: Siyu An <siyua@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#992785} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3595259 Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Reviewed-by: Mohamed Amir Yosef <mamir@chromium.org> Cr-Commit-Position: refs/branch-heads/5005@{#56} Cr-Branched-From: 5b4d945-refs/heads/main@{#992738}
@fujunwei @mingmingtasd Please help to review. Thanks!