Commit ad2d3fa0 authored by Sebastian Nickels's avatar Sebastian Nickels

Added unroll check to ArchitectureSupportChecker

parent 984e0361
Pipeline #180307 failed with stages
in 2 minutes and 2 seconds
......@@ -130,6 +130,16 @@ public abstract class ArchitectureSupportChecker {
return true;
}
protected boolean checkUnroll(ArchitectureSymbol architecture) {
if (!architecture.getUnrolls().isEmpty()) {
Log.error("This cnn architecture uses unrolls, which are currently not supported by the code generator."
, architecture.getSourcePosition());
return false;
}
return true;
}
public boolean check(ArchitectureSymbol architecture) {
return checkMultipleStreams(architecture)
&& checkMultipleInputs(architecture)
......@@ -137,6 +147,7 @@ public abstract class ArchitectureSupportChecker {
&& checkMultiDimensionalOutput(architecture)
&& checkConstants(architecture)
&& checkLayerVariables(architecture)
&& checkOutputAsInput(architecture);
&& checkOutputAsInput(architecture)
&& checkUnroll(architecture);
}
}
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