[IE[[VPU] Coverity issues fix (#8598)
- Coverity issues fix - profinfo.execution_index was uninitialized in some cases - Removal deadcode
This commit is contained in:
parent
af19b26980
commit
b9b50527fd
@ -47,9 +47,8 @@ std::map<std::string, ie::InferenceEngineProfileInfo> parsePerformanceReport(
|
|||||||
stageMeta.layerType.copy(profInfo.layer_type, sizeof(profInfo.layer_type) / sizeof(profInfo.layer_type[0]), 0);
|
stageMeta.layerType.copy(profInfo.layer_type, sizeof(profInfo.layer_type) / sizeof(profInfo.layer_type[0]), 0);
|
||||||
stageMeta.stageType.copy(profInfo.exec_type, sizeof(profInfo.exec_type) / sizeof(profInfo.exec_type[0]), 0);
|
stageMeta.stageType.copy(profInfo.exec_type, sizeof(profInfo.exec_type) / sizeof(profInfo.exec_type[0]), 0);
|
||||||
|
|
||||||
if (stageMeta.stageType == "<Receive-Tensor>") {
|
profInfo.execution_index = 0;
|
||||||
profInfo.execution_index = 0;
|
if (stageMeta.status == ie::InferenceEngineProfileInfo::EXECUTED) {
|
||||||
} else if (stageMeta.status == ie::InferenceEngineProfileInfo::EXECUTED) {
|
|
||||||
profInfo.execution_index = execIndex;
|
profInfo.execution_index = execIndex;
|
||||||
execIndex++;
|
execIndex++;
|
||||||
}
|
}
|
||||||
|
@ -159,7 +159,7 @@ ncStatus_t MyriadExecutor::bootNextDevice(std::vector<DevicePtr> &devicePool, co
|
|||||||
if (status != NC_OK) {
|
if (status != NC_OK) {
|
||||||
_log->warning("Failed to get device platform");
|
_log->warning("Failed to get device platform");
|
||||||
ncDeviceClose(&device._deviceHandle, _mvnc->watchdogHndl());
|
ncDeviceClose(&device._deviceHandle, _mvnc->watchdogHndl());
|
||||||
return status != NC_OK ? status : NC_ERROR; // for dataLength error
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get device platform
|
// Get device platform
|
||||||
|
Loading…
Reference in New Issue
Block a user