Moved QueryNetworkResult to ie_common.h (#1648)

This commit is contained in:
Ilya Lavrenov 2020-08-06 06:17:29 +03:00 committed by GitHub
parent 7a314f216a
commit b9c3825897
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 24 deletions

View File

@ -15,6 +15,7 @@
#include <ostream>
#include <string>
#include <vector>
#include <map>
namespace InferenceEngine {
/**
@ -234,6 +235,29 @@ struct ResponseDesc {
char msg[4096] = {};
};
/**
* @brief Responce structure encapsulating information about supported layer
*/
struct QueryNetworkResult {
/**
* @brief A map of supported layers:
* - key - a layer name
* - value - a device name on which layer is assigned
*/
std::map<std::string, std::string> supportedLayersMap;
/**
* @brief A status code
*/
StatusCode rc = OK;
/**
* @brief Response message
*/
ResponseDesc resp;
};
/** @brief This class represents StatusCode::GENERIC_ERROR exception */
class GeneralError : public std::logic_error {
using std::logic_error::logic_error;

View File

@ -22,28 +22,6 @@
namespace InferenceEngine {
/**
* @brief Responce structure encapsulating information about supported layer
*/
struct QueryNetworkResult {
/**
* @brief A map of supported layers:
* - key - a layer name
* - value - a device name on which layer is assigned
*/
std::map<std::string, std::string> supportedLayersMap;
/**
* @brief A status code
*/
StatusCode rc = OK;
/**
* @brief Response message
*/
ResponseDesc resp;
};
/**
* @brief This class represents Inference Engine Core entity.
*

View File

@ -11,7 +11,6 @@
#include <ie_iextension.h>
#include <ie_icnn_network.hpp>
#include <ie_core.hpp>
#include <ie_icore.hpp>
#include <map>

View File

@ -16,7 +16,6 @@
#include <ie_parameter.hpp>
#include <cpp/ie_cnn_network.h>
#include <cpp/ie_executable_network.hpp>
#include <ie_core.hpp> // for QueryNetworkResult
#include "threading/ie_itask_executor.hpp"