Skip to content
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

[AUTO] Implement auto-plugin limited devices feature #5545

Merged

Conversation

mashoujiang
Copy link
Contributor

@mashoujiang mashoujiang commented May 7, 2021

Details:

  • Implement limited device list feature for AUTO plugin

Tickets:

  • 53296

@mashoujiang mashoujiang requested review from a team May 7, 2021 07:30
@openvino-pushbot openvino-pushbot added category: inference OpenVINO Runtime library - Inference category: IE Tests OpenVINO Test: plugins and common labels May 7, 2021
@mashoujiang mashoujiang marked this pull request as draft May 7, 2021 07:49
@mashoujiang mashoujiang force-pushed the msj/auto_limited_devices branch 17 times, most recently from 9599c0a to fb70e8c Compare May 14, 2021 03:42
@mashoujiang
Copy link
Contributor Author

I closed #5549 , let's focus on this PR. Sorry to bring confuse.
I notice only one comment from Ilya, if @myshevts @ilya-lavrenov have some review comments which are not submitted, please commit here. I have not changed any code yet.

@mashoujiang mashoujiang force-pushed the msj/auto_limited_devices branch from 804e29e to 4e1bed6 Compare May 19, 2021 13:20
@mashoujiang
Copy link
Contributor Author

Hi @myshevts @ilya-lavrenov , thanks for your review, I just rebased to the latest master branch.
Note that since there are some conflicts during rebase, so the last commit may not reflect the related modification very well.
Compared to ilya's approved version:

  1. I fixed the GetNetworkPrecision logic according to Maxim's comment
  2. refactor the template function LoadNetworkImpl
  3. and rebased to master branch, change related code.

@mashoujiang mashoujiang force-pushed the msj/auto_limited_devices branch 2 times, most recently from 97684e5 to c59e0b0 Compare May 19, 2021 13:34
coneypo and others added 16 commits May 19, 2021 22:24
Signed-off-by: Shoujiang Ma <[email protected]>
Signed-off-by: Shoujiang Ma <[email protected]>
Signed-off-by: Shoujiang Ma <[email protected]>
Signed-off-by: Shoujiang Ma <[email protected]>
// and AUTO select CPU but not GPU (GPU has this capability).
if (cap == METRIC_VALUE(BATCHED_BLOB)) {
continue;
}
Copy link
Contributor

@ilya-lavrenov ilya-lavrenov May 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like we need to respect KEY_AUTO_DEVICE_LIST here as well. E.i. if only CPU is passed, only CPU optimization capabilities should be taken into account

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's fix in future PR

@ilya-lavrenov ilya-lavrenov merged commit 90a18d9 into openvinotoolkit:master May 19, 2021
@mashoujiang mashoujiang deleted the msj/auto_limited_devices branch May 20, 2021 00:42
yekruglov pushed a commit to yekruglov/openvino that referenced this pull request Jun 7, 2021
…#5545)

* Update SelectDevice policy in auto plugin

Signed-off-by: Zhengtian Xie <[email protected]>

* Implement limit device list for AUTO plugin

Signed-off-by: Shoujiang Ma <[email protected]>

* Add tests for AUTO limit device feature

Signed-off-by: Shoujiang Ma <[email protected]>

* Add gpu tests for auto-plugin

Signed-off-by: Shoujiang Ma <[email protected]>

* Fix CI cpuFuncTests issue due to BATCHED_BLOB

Signed-off-by: Shoujiang Ma <[email protected]>

* Override LoadNetwork(modelPath, config) in AUTO plugin

Signed-off-by: Shoujiang Ma <[email protected]>

* Update SelectDevice() logic for LoadNetwork(model, config)

Signed-off-by: Shoujiang Ma <[email protected]>

* Update GetNetworkPrecision logic for auto-plugin

Signed-off-by: Zhengtian Xie <[email protected]>

* Address reviewers' comments

Signed-off-by: Shoujiang Ma <[email protected]>

* Add tests for AUTO:GPU,CPU case

Signed-off-by: Shoujiang Ma <[email protected]>

* Update logic in GetNetworkPrecision for auto-plugin

Signed-off-by: Zhengtian Xie <[email protected]>

* Address reviewer's comment: clean and simplify code

Signed-off-by: Shoujiang Ma <[email protected]>

* Fix wrong usage of convolution weight index

Signed-off-by: Shoujiang Ma <[email protected]>

* Address reviewer comment: fix get network precision logic

Signed-off-by: Shoujiang Ma <[email protected]>

* Fix rebase issue

Signed-off-by: Shoujiang Ma <[email protected]>

* Fix ie_core.cpp header change

Signed-off-by: Shoujiang Ma <[email protected]>

Co-authored-by: zhengtian.xie <[email protected]>
rnugmanx pushed a commit to rnugmanx/openvino that referenced this pull request Aug 26, 2021
…#5545)

* Update SelectDevice policy in auto plugin

Signed-off-by: Zhengtian Xie <[email protected]>

* Implement limit device list for AUTO plugin

Signed-off-by: Shoujiang Ma <[email protected]>

* Add tests for AUTO limit device feature

Signed-off-by: Shoujiang Ma <[email protected]>

* Add gpu tests for auto-plugin

Signed-off-by: Shoujiang Ma <[email protected]>

* Fix CI cpuFuncTests issue due to BATCHED_BLOB

Signed-off-by: Shoujiang Ma <[email protected]>

* Override LoadNetwork(modelPath, config) in AUTO plugin

Signed-off-by: Shoujiang Ma <[email protected]>

* Update SelectDevice() logic for LoadNetwork(model, config)

Signed-off-by: Shoujiang Ma <[email protected]>

* Update GetNetworkPrecision logic for auto-plugin

Signed-off-by: Zhengtian Xie <[email protected]>

* Address reviewers' comments

Signed-off-by: Shoujiang Ma <[email protected]>

* Add tests for AUTO:GPU,CPU case

Signed-off-by: Shoujiang Ma <[email protected]>

* Update logic in GetNetworkPrecision for auto-plugin

Signed-off-by: Zhengtian Xie <[email protected]>

* Address reviewer's comment: clean and simplify code

Signed-off-by: Shoujiang Ma <[email protected]>

* Fix wrong usage of convolution weight index

Signed-off-by: Shoujiang Ma <[email protected]>

* Address reviewer comment: fix get network precision logic

Signed-off-by: Shoujiang Ma <[email protected]>

* Fix rebase issue

Signed-off-by: Shoujiang Ma <[email protected]>

* Fix ie_core.cpp header change

Signed-off-by: Shoujiang Ma <[email protected]>

Co-authored-by: zhengtian.xie <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: IE Tests OpenVINO Test: plugins and common category: inference OpenVINO Runtime library - Inference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants