InfEngineBackendNet::InfEngineBackendNet(InferenceEngine::CNNNetwork& net) { inputs = net.getInputsInfo(); outputs = net.getOutputsInfo(); layers.resize(net.layerCount()); // A hack to execute InfEngineBackendNet::layerCount correctly. initPlugin(net); }
InfEngineBackendNet::InfEngineBackendNet(InferenceEngine::CNNNetwork& net) { targetDevice = InferenceEngine::TargetDevice::eCPU; precision = InferenceEngine::Precision::FP32; inputs = net.getInputsInfo(); outputs = net.getOutputsInfo(); layers.resize(net.layerCount()); // A hack to execute InfEngineBackendNet::layerCount correctly. netOwner = net; }