Deprecated ov::Any implicit cast to any types (#9409)
* Depricated Any implicit cast * Fixed test * fixed gna build * Fixed warnings in benchmark_app * Fixed test build * ncc exception for PrintTo * Error mesage in test * Error mesage in test * fixed build
This commit is contained in:
1 parent
6677079821
commit
8993c4c18a
15 files changed
+130
-180
No files matched your search
@@ -579,7 +579,7 @@ RemoteContext::Ptr AutoBatchInferencePlugin::CreateContext(const InferenceEngine
|
||||
if (it == cfg.end())
|
||||
IE_THROW() << "Value for KEY_AUTO_BATCH is not set";
|
||||
|
||||
auto val = it->second;
|
||||
auto val = it->second.as<std::string>();
|
||||
auto metaDevice = ParseMetaDevice(val, std::map<std::string, std::string>());
|
||||
cfg.erase(it);
|
||||
return GetCore()->CreateContext(metaDevice.deviceName, cfg);
|
||||
@@ -766,7 +766,8 @@ InferenceEngine::IExecutableNetworkInternal::Ptr AutoBatchInferencePlugin::LoadN
|
||||
if (deviceName.find("GPU") != std::string::npos) {
|
||||
batch1_footprint = report_footprint(GetCore(), deviceName) - batch1_footprint;
|
||||
if (batch1_footprint) {
|
||||
const uint64_t total_mem = GetCore()->GetMetric(deviceName, GPU_METRIC_KEY(DEVICE_TOTAL_MEM_SIZE));
|
||||
const auto total_mem =
|
||||
GetCore()->GetMetric(deviceName, GPU_METRIC_KEY(DEVICE_TOTAL_MEM_SIZE)).as<uint64_t>();
|
||||
const int estimated_batch = (total_mem - batch1_footprint) / batch1_footprint;
|
||||
int closest = pow(2, floor(log(estimated_batch) / log(2)));
|
||||
closest = std::max(1, closest);
|
||||
|
||||
Reference in new issue
Block a user