Comments (16)
Hi @nashez, the issue is still under development. I have everything implemented but this test for set_property()
. I'm waiting for a response to my issue.
from openvino.
@almilosz I found that if you change 1
in cm.set_property({'AUTO_BATCH_TIMEOUT': 1})
to be a string it doesn't throw error so I guess there is a problem with converting this variable under the hood.
Is it enough reason for not exposing auto_batch_timeout
in this issue?
Should I also create separate file for testing compiled_model
?
Thank you for your hint!
Poznań? Never heard of it ;)
Must be like a GitHub project - constantly under 'maintenance' with occasional surprise updates.
from openvino.
.take
from openvino.
Thank you for looking into this issue! Please let us know if you have any questions or require any help.
from openvino.
Hello @Aryan8912, there are currently three issues with open PRs assigned to you. Please finish them before picking more tasks.
from openvino.
hello, Is it possible being assigned to this issue?
from openvino.
.take
from openvino.
Thank you for looking into this issue! Please let us know if you have any questions or require any help.
from openvino.
hey @Plomo-02 do you need any help?
will you have a time to continue work on this task?
from openvino.
.take
from openvino.
Thank you for looking into this issue! Please let us know if you have any questions or require any help.
from openvino.
Hi @almilosz @vishniakov-nikolai, I have encountered an issue while testing the implementation of CompiledModel::set_property()
Exception from src/inference/src/cpp/compiled_model.cpp:136:
Exception from src/plugins/intel_cpu/src/compiled_model.h:39:
Not Implemented:
It's not possible to set property of an already compiled model. Set property to Core::compile_model during compilation
It seems like there is a template:
openvino/src/plugins/template/src/compiled_model.cpp
Lines 83 to 87 in 3056b53
But only one plugin implements that:
openvino/src/plugins/auto_batch/src/compiled_model.cpp
Lines 163 to 175 in 3056b53
Other have:
openvino/src/plugins/intel_cpu/src/compiled_model.h
Lines 38 to 41 in 3056b53
My implementation so far:
Napi::Value CompiledModelWrap::set_property(const Napi::CallbackInfo &info) {
Napi::Env env = info.Env();
try{
if (info.Length() != 1 || !info[0].IsObject()) {
OPENVINO_THROW("Expected a single object argument for setting properties");
}
const auto properties = to_anyMap(env, info[0]);
_compiled_model.set_property(properties);
}catch (const std::exception& e) {
reportError(env, e.what());
}
return env.Undefined();
}
My question
How should I test it?
from openvino.
@hub-bla @mlukasze Is this still under development?
If not can I take this up?
from openvino.
Hi @hub-bla!
Thanks for taking this issue.
CompiledModel::set_property()
can be tested in Python like this:
timeout = 10
cm = core.compile_model(model, "BATCH:CPU")
cm.set_property(props.auto_batch_timeout(timeout))
assert timeout == cm.get_property('AUTO_BATCH_TIMEOUT')
To do that in Node.js API you will have to expose ov::auto_batch_timeout
additionally, which may require more work.
Alternatively, you can wait as we look into the reasons why the option below is not working:
cm.set_property({'AUTO_BATCH_TIMEOUT': 1})
Let me know what you decide to do. If you have any questions, don't hesitate to ask them. You can reach me on Discord _almilosz
and ask directly.
Greetings from Poznań,
Alicja
from openvino.
Yes, please create a test like this in a new file compiled_model.test.js
file
Exposing properties will be a separate issue :)
from openvino.
I looked into the problem with conversion and I think I found the reason why.
openvino/src/bindings/js/node/src/helper.cpp
Lines 153 to 180 in dd2f614
js_to_cpp
which is used in to_anyMap returns int32_t
But in auto-batch
CompiledModel::set_property
we can see it tries to convert it as uint32_t
openvino/src/plugins/auto_batch/src/compiled_model.cpp
Lines 163 to 175 in d253f4f
and
.as<std::uint32_t>()
is the operation that failsopenvino/src/core/include/openvino/core/any.hpp
Lines 850 to 865 in d253f4f
from openvino.
Related Issues (20)
- [Bug]: Inference on npu occure oom
- [Bug]: Intel Myriad X, "current Interpolate supports 'nearest' and 'linear' modes only"
- [Bug]: Argument shapes are inconsistent HOT 1
- [Build]: How can i build openvino in x86 windows 10
- [Bug]: For NVIDIA Gefore RTX4070 issue with OpenCL versions
- Using"GPU", openvino also doesn't work HOT 4
- [Bug]: When `openvino.dll` absolution path contain East Asian character, OpenVINO would not found the device HOT 3
- [Bug]: Bug report from static analysis 2. HOT 2
- [Performance]: Static ViT model significantly slower than dynamic with same input shape HOT 3
- [Bug]: Inconsistent inference result from CPU plugins HOT 2
- [Bug]: Shape inference of Reshape node with name Reshape_315 failed | Corrupted tensor data HOT 4
- [Bug]: ov.convert_model(tf_quantized_model, share_weights=False) convert fail. HOT 2
- Yolo classes select HOT 1
- [Feature Request]: Tool / Webpage with all supported ops per plugin per frontend HOT 3
- [Bug]:The prediction results using PaddleOCR model are inconsistent between versions before 2024.0.0 and after 2024.1.0
- Inquiry About OpenVINO Conversion Best Practices HOT 5
- [Performance]: Model Compilation is slower with multi threads HOT 4
- [Bug]: aten::pad_sequence is not supported HOT 1
- [Bug]: hello_classification applicaiton fails at preprocessing. HOT 3
- TypeError: StableDiffusionPipeline.__init__() got an unexpected keyword argument 'tokenizer_2' HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openvino.