Commit f8ef9f0d authored by Julian Treiber's avatar Julian Treiber
Browse files

added crop README entry

parent 22e0efb9
This diff is collapsed.
......@@ -8,6 +8,8 @@
package de.monticore.lang.monticar.cnnarch.predefined;
import de.monticore.lang.monticar.cnnarch._symboltable.*;
import de.monticore.lang.monticar.cnnarch.helper.ErrorCodes;
import de.se_rwth.commons.logging.Log;
import java.util.ArrayList;
import java.util.Arrays;
......@@ -37,10 +39,12 @@ public class Crop extends PredefinedLayerDeclaration {
new ParameterSymbol.Builder()
.name(AllPredefinedLayers.START_NAME)
.constraints(Constraints.INTEGER)
.defaultValue(0)
.build(),
new ParameterSymbol.Builder()
.name(AllPredefinedLayers.END_NAME)
.constraints(Constraints.INTEGER)
.defaultValue(0)
.build()));
declaration.setParameters(parameters);
return declaration;
......
......@@ -43,6 +43,7 @@ public class AllCoCoTest extends AbstractCoCoTest {
checkValid("architectures", "CropTest");
checkValid("valid_tests", "ArgumentSequenceTest");
checkValid("valid_tests", "CropTest");
checkValid("valid_tests", "Fixed_Alexnet");
checkValid("valid_tests", "Fixed_ThreeInputCNN_M14");
checkValid("valid_tests", "ThreeInputCNN_M14_alternative");
......
/* (c) https://github.com/MontiCore/monticore */
architecture CropTest(){
def input Z(0:255)^{3, 50, 50} image
def output Z(0:255)^{3, 48, 48} cropped
image ->
Crop(start=(1), until=(-1)) ->
cropped;
}
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