Commit b50aa9ef authored by Christopher Jan-Steffen Brix's avatar Christopher Jan-Steffen Brix
Browse files

Skip hasing for components without NN, use correct instance name

parent f2f1c5db
Pipeline #98383 passed with stages
in 5 minutes and 27 seconds
......@@ -196,18 +196,25 @@ public class EMADLGenerator {
}
for (ExpandedComponentInstanceSymbol componentInstance : allInstances) {
String fullName = componentInstance.getFullName().replaceAll("\\.", "_");
ComponentSymbol component = componentInstance.getComponentType().getReferencedSymbol();
Optional<ArchitectureSymbol> architecture = component.getSpannedScope().resolve("", ArchitectureSymbol.KIND);
if(!architecture.isPresent()) {
continue;
}
String fullName = componentInstance.getFullName().replaceAll("\\.", "_");
String creatorScriptName = "CNNCreator_" + fullName + ".py";
String creatorScript = fileContentMap.get(creatorScriptName);
int creatorScriptHash = creatorScript.hashCode();
String trainerScriptName = "CNNTrainer_" + fullName + ".py";
String parsedFullName = fullName.substring(0, 1).toLowerCase() + fullName.substring(1);
String trainerScriptName = "CNNTrainer_" + parsedFullName + ".py";
String trainerScript = fileContentMap.get(trainerScriptName);
int trainerScriptHash = trainerScript.hashCode();
// This is not the real path to the training data! Adapt accordingly once sub-task 4 is solved
ComponentSymbol component = componentInstance.getComponentType().getReferencedSymbol();
String trainConfigFilename = "NOT_FOUND";
String componentConfigFilename = component.getFullName().replaceAll("\\.", "/");
String instanceConfigFilename = component.getFullName().replaceAll("\\.", "/") + "_" + component.getName();
......
Supports Markdown
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