21 lines
456 B
C++
21 lines
456 B
C++
|
|
#include <inference_engine.hpp>
|
||
|
|
#include "ie_plugin_config.hpp"
|
||
|
|
#include <ie_input_info.hpp>
|
||
|
|
#include "hetero/hetero_plugin_config.hpp"
|
||
|
|
|
||
|
|
|
||
|
|
int main() {
|
||
|
|
using namespace InferenceEngine;
|
||
|
|
//! [part1]
|
||
|
|
Core ie;
|
||
|
|
auto netReader = ie.ReadNetwork("sample.xml");
|
||
|
|
InferenceEngine::InputsDataMap info(netReader.getInputsInfo());
|
||
|
|
auto& inputInfoFirst = info.begin()->second;
|
||
|
|
for (auto& it : info) {
|
||
|
|
it.second->setPrecision(Precision::U8);
|
||
|
|
}
|
||
|
|
//! [part1]
|
||
|
|
|
||
|
|
return 0;
|
||
|
|
}
|