* Added error check after attempting to create input file stream and
throw FileNotFoundException in case of failure
Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com>
Change-Id: I46b77e21c5330bb60e1190ddbefa6473e43085d9
}
m_RequestedOutputs = requestedOutputs;
- //FILE * fp = fopen(graphFile, "rb");
std::ifstream ifs(graphFile, std::ifstream::in|std::ifstream::binary);
+ if (ifs.fail())
+ {
+ throw armnn::FileNotFoundException("Failed to open graph file '" + std::string(graphFile) + "'");
+ }
+
std::vector<LayerParameterInfo> layerInfo;
NetParameterInfo netParameterInfo;
while(true)
return move(m_Network);
}
-
-
-