Machine Learning: Saving Model Fixed, crating necesary folders before the file.
This commit is contained in:
1 parent
77c52824fb
commit
f22a679046
4 files changed
+48
-37
No files matched your search
+5
-1
@@ -319,7 +319,11 @@ exports.newTensorFlowBotModulesTensorFlowLibrary = function (processIndex) {
|
||||
}
|
||||
|
||||
async function saveModel() {
|
||||
await tensorFlowModel.save('file://' + getModelPath())
|
||||
let fileLocation = getModelPath()
|
||||
/* If necesary a folder or folders are created before writing the file to disk. */
|
||||
TS.projects.superalgos.utilities.miscellaneousFunctions.mkDirByPathSync(fileLocation)
|
||||
|
||||
await tensorFlowModel.save('file://' + fileLocation)
|
||||
}
|
||||
|
||||
function getModelPath() {
|
||||
|
||||
Reference in new issue
Block a user