Commit 7ba90a06 authored by Sebastian Nickels's avatar Sebastian Nickels
Browse files

Some small changes to enable architecture support checking in EMADL2CPP

parent 074e4f3c
Pipeline #144200 passed with stages
in 22 minutes and 4 seconds
......@@ -60,14 +60,16 @@ public abstract class CNNArchGenerator {
return this.modelsDirPath;
public boolean generate(Path modelsDirPath, String rootModelName){
public void generate(Path modelsDirPath, String rootModelName){
this.modelsDirPath = modelsDirPath.toString();
final ModelPath mp = new ModelPath(modelsDirPath);
GlobalScope scope = new GlobalScope(mp, new CNNArchLanguage());
return generate(scope, rootModelName);
generate(scope, rootModelName);
public abstract boolean generate(Scope scope, String rootModelName);
public abstract void checkSupport(ArchitectureSymbol architecture);
public abstract void generate(Scope scope, String rootModelName);
//check cocos with CNNArchCocos.checkAll(architecture) before calling this method.
public abstract Map<String, String> generateStrings(ArchitectureSymbol architecture);
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