[IE Sample] incorrect nstreams retrieved from plugin (#16849)
* Retrieve the ov::num_streams through compiledModel rather than through plugin. * Update python version.
This commit is contained in:
parent
920900fbda
commit
3740ba9226
@ -863,9 +863,9 @@ int main(int argc, char* argv[]) {
|
|||||||
for (auto&& ds : device_nstreams) {
|
for (auto&& ds : device_nstreams) {
|
||||||
try {
|
try {
|
||||||
const std::string key = getDeviceTypeFromName(ds.first) + "_THROUGHPUT_STREAMS";
|
const std::string key = getDeviceTypeFromName(ds.first) + "_THROUGHPUT_STREAMS";
|
||||||
device_nstreams[ds.first] = core.get_property(ds.first, key).as<std::string>();
|
device_nstreams[ds.first] = compiledModel.get_property(key).as<std::string>();
|
||||||
} catch (const ov::Exception&) {
|
} catch (const ov::Exception&) {
|
||||||
device_nstreams[ds.first] = core.get_property(ds.first, ov::num_streams.name()).as<std::string>();
|
device_nstreams[ds.first] = compiledModel.get_property(ov::num_streams.name()).as<std::string>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -476,10 +476,10 @@ def main():
|
|||||||
for device in device_number_streams.keys():
|
for device in device_number_streams.keys():
|
||||||
try:
|
try:
|
||||||
key = get_device_type_from_name(device) + '_THROUGHPUT_STREAMS'
|
key = get_device_type_from_name(device) + '_THROUGHPUT_STREAMS'
|
||||||
device_number_streams[device] = benchmark.core.get_property(device, key)
|
device_number_streams[device] = compiled_model.get_property(key)
|
||||||
except:
|
except:
|
||||||
key = 'NUM_STREAMS'
|
key = 'NUM_STREAMS'
|
||||||
device_number_streams[device] = benchmark.core.get_property(device, key)
|
device_number_streams[device] = compiled_model.get_property(key)
|
||||||
|
|
||||||
# ------------------------------------ 9. Creating infer requests and preparing input data ----------------------
|
# ------------------------------------ 9. Creating infer requests and preparing input data ----------------------
|
||||||
next_step()
|
next_step()
|
||||||
|
Loading…
Reference in New Issue
Block a user