... try{ //try to load weights from file simpleNet *ANN=new simpleNet(filename); } catch(ANN_ERROR::file_exception e){ cout << "Exception: " << e.p << endl; } ... |
... try{ //try to save weights to file ANN->SaveWeightsToFile(filename); } catch(ANN_ERROR::file_exception e){ cout << "Exception: " << e.p << endl; } ... |