debug output

parent e68791e3
Pipeline #109612 failed with stage
in 5 minutes and 21 seconds
...@@ -221,7 +221,6 @@ public class EMADLGenerator { ...@@ -221,7 +221,6 @@ public class EMADLGenerator {
String emadlHash = getChecksumForFile(emadlPath); String emadlHash = getChecksumForFile(emadlPath);
String cnntHash = getChecksumForFile(cnntPath); String cnntHash = getChecksumForFile(cnntPath);
// This is not the real path to the training data! Adapt accordingly once sub-task 4 is solved
String componentConfigFilename = componentInstance.getComponentType().getReferencedSymbol().getFullName().replaceAll("\\.", "/"); String componentConfigFilename = componentInstance.getComponentType().getReferencedSymbol().getFullName().replaceAll("\\.", "/");
String b = backend.getBackendString(backend); String b = backend.getBackendString(backend);
...@@ -236,6 +235,7 @@ public class EMADLGenerator { ...@@ -236,6 +235,7 @@ public class EMADLGenerator {
} }
String trainingHash = emadlHash + "#" + cnntHash + "#" + trainingDataHash + "#" + testDataHash; String trainingHash = emadlHash + "#" + cnntHash + "#" + trainingDataHash + "#" + testDataHash;
System.out.println("Hash: " + trainingHash);
boolean alreadyTrained = newHashes.contains(trainingHash) || isAlreadyTrained(trainingHash, componentInstance); boolean alreadyTrained = newHashes.contains(trainingHash) || isAlreadyTrained(trainingHash, componentInstance);
if(alreadyTrained && !forced.equals("y")) { if(alreadyTrained && !forced.equals("y")) {
Log.warn("Training of model " + componentInstance.getFullName() + " skipped"); Log.warn("Training of model " + componentInstance.getFullName() + " skipped");
......
...@@ -215,6 +215,8 @@ public class GenerationTest extends AbstractSymtabTest { ...@@ -215,6 +215,8 @@ public class GenerationTest extends AbstractSymtabTest {
Log.getFindings().clear(); Log.getFindings().clear();
createHashFile(); createHashFile();
System.out.println("============ Test 2 started ===============");
String[] args = {"-m", "src/test/resources/models/", "-r", "cifar10.Cifar10Classifier", "-b", "MXNET"}; String[] args = {"-m", "src/test/resources/models/", "-r", "cifar10.Cifar10Classifier", "-b", "MXNET"};
EMADLGeneratorCli.main(args); EMADLGeneratorCli.main(args);
assertTrue(Log.getFindings().size() == 1); assertTrue(Log.getFindings().size() == 1);
......
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