bug fix with hash calculation

parent 7b03bf1e
Pipeline #177175 failed with stages
in 18 seconds
......@@ -21,7 +21,7 @@
<cnnarch-mxnet-generator.version>0.2.17-SNAPSHOT</cnnarch-mxnet-generator.version>
<cnnarch-caffe2-generator.version>0.2.13-SNAPSHOT</cnnarch-caffe2-generator.version>
<cnnarch-gluon-generator.version>0.2.8-SNAPSHOT</cnnarch-gluon-generator.version>
<cnnarch-tensorflow-generator.version>0.2.14-SNAPSHOT</cnnarch-tensorflow-generator.version>
<cnnarch-tensorflow-generator.version>0.1.0-SNAPSHOT</cnnarch-tensorflow-generator.version>
<embedded-montiarc-math-opt-generator>0.1.4</embedded-montiarc-math-opt-generator>
<!-- .. Libraries .................................................. -->
......
......@@ -202,7 +202,6 @@ public class EMADLGenerator {
}
}
// Only used for training data, since they can be large
public String getChecksumForLargerFile(String filePath) throws IOException {
try {
return (new File(filePath)).lastModified() + "";
......@@ -257,11 +256,11 @@ public class EMADLGenerator {
trainingDataHash = getChecksumForLargerFile(architecture.get().getDataPath() + "/train_lmdb/data.mdb");
testDataHash = getChecksumForLargerFile(architecture.get().getDataPath() + "/test_lmdb/data.mdb");
}else{
trainingDataHash = getChecksumForLargeFile(architecture.get().getDataPath() + "/train.h5");
trainingDataHash = getChecksumForLargerFile(architecture.get().getDataPath() + "/train.h5");
testDataHash = getChecksumForLargerFile(architecture.get().getDataPath() + "/test.h5");
}
}
String trainingHash = emadlHash + "#" + cnntHash; //+ "#" + trainingDataHash + "#" + testDataHash;
String trainingHash = emadlHash + "#" + cnntHash + "#" + trainingDataHash + "#" + testDataHash;
boolean alreadyTrained = newHashes.contains(trainingHash) || isAlreadyTrained(trainingHash, componentInstance);
if(alreadyTrained && !forced.equals("y")) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment