Commit 5636a8dd authored by Sebastian Nickels's avatar Sebastian Nickels
Browse files

More cleaning up

parent 09af254b
......@@ -59,21 +59,12 @@ public class FullyConnected extends PredefinedLayerDeclaration {
.build());
}
// if input is an RNN state or output. Can be used to store states in layer variables
if(layer.getInputElement().get() instanceof VariableSymbol && (((VariableSymbol)(layer.getInputElement().get())).getMember() == VariableSymbol.Member.STATE || ((VariableSymbol)((ArchitectureElementSymbol)layer.getInputElement().get())).getMember() == VariableSymbol.Member.OUTPUT)){
return Collections.singletonList(new ArchTypeSymbol.Builder()
.channels(inputType.getChannels())
.height(units)
.elementType("-oo", "oo")
.build());
}else {
return Collections.singletonList(new ArchTypeSymbol.Builder()
.channels(inputType.getChannels())
.height(units)
.width(1)
.elementType("-oo", "oo")
.build());
}
return Collections.singletonList(new ArchTypeSymbol.Builder()
.channels(inputType.getChannels())
.height(units)
.width(1)
.elementType("-oo", "oo")
.build());
}
return Collections.singletonList(new ArchTypeSymbol.Builder()
......
......@@ -23,7 +23,6 @@ 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 org.fusesource.jansi.internal.Kernel32;
import java.util.ArrayList;
import java.util.Arrays;
......
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