Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Comment 'ie_device' related file and API [issue #130] #131

Merged
merged 2 commits into from
Mar 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion dynamic_vino_lib/include/dynamic_vino_lib/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

#include <cpp/ie_cnn_net_reader.h>
#include <cpp/ie_infer_request.hpp>
#include <ie_device.hpp>
// #include <ie_device.hpp>
#include <ie_plugin_dispatcher.hpp>
#include <ie_plugin_ptr.hpp>

Expand All @@ -64,6 +64,8 @@ inline std::string& trim(std::string& s)
return s;
}

// TargetDevice is not in openvino2020.3.341
#if 0
/**
* @brief Converts string to TargetDevice
* @param deviceName - string value representing device
Expand Down Expand Up @@ -111,6 +113,7 @@ static UNUSED InferenceEngine::InferenceEnginePluginPtr selectPlugin(const std::
{
return selectPlugin(pluginDirs, plugin, getDeviceFromStr(device));
}
#endif

/**
* @brief Gets filename without extension
Expand Down Expand Up @@ -228,6 +231,8 @@ inline void printPluginVersion(InferenceEngine::InferenceEnginePluginPtr ptr, st
stream << pluginVersion << std::endl;
}

// TargetDevice is not in openvino2020
#if 0
static UNUSED std::vector<std::vector<size_t>> blobToImageOutputArray(InferenceEngine::TBlob<float>::Ptr output,
size_t* pWidth, size_t* pHeight,
size_t* pChannels)
Expand Down Expand Up @@ -269,6 +274,7 @@ static UNUSED std::vector<std::vector<size_t>> blobToImageOutputArray(InferenceE

return outArray;
}
#endif

/**
* @class Color
Expand Down Expand Up @@ -642,6 +648,9 @@ static UNUSED void printPerformanceCounts(InferenceEngine::InferRequest request,
printPerformanceCounts(perfomanceMap, stream);
}


// TargetDevice is not in openvino2020
#if 0
/**
* @deprecated
*/
Expand All @@ -651,6 +660,7 @@ static UNUSED void printPerformanceCountsPlugin(InferenceEngine::InferenceEngine
plugin->GetPerformanceCounts(perfomanceMap, nullptr);
printPerformanceCounts(perfomanceMap, stream);
}
#endif

/**
* @brief This class represents an object that is found by an object detection
Expand Down