-DataPtr FormatParser::ParseInputData(pugi::xml_node& root) const {
- auto inputNode = root.child("input");
- if (inputNode.empty()) {
- THROW_IE_EXCEPTION << "No input node in network, missing <input>";
- }
-
- auto inputName = GetStrAttr(inputNode, "name", "input");
- SizeVector inputDims;
-
- ParseDims(inputDims, inputNode);
-
- DataPtr& inputData = _network->getData(inputName);
- inputData.reset(new Data(inputName, {_network->getPrecision(), inputDims, TensorDesc::getLayoutByDims(inputDims)}));
- return inputData;
-}
-