LayerPathParameter Tagging

parent 2c1612af
......@@ -32,6 +32,7 @@ public class ArchitectureSymbol extends CommonScopeSpanningSymbol {
private List<ConstantSymbol> constants = new ArrayList<>();
private String dataPath;
private String weightsPath;
private List<LayerPathParameterTagSymbol> layerPathParameterTagSymbols = new ArrayList<>();
private String componentName;
public ArchitectureSymbol() {
......@@ -82,6 +83,12 @@ public class ArchitectureSymbol extends CommonScopeSpanningSymbol {
this.weightsPath = weightsPath;
}
public void setLayerPathParameterTagSymbols(List<LayerPathParameterTagSymbol> layerPathParameterTagSymbols) { this.layerPathParameterTagSymbols = layerPathParameterTagSymbols; }
public List<LayerPathParameterTagSymbol> getLayerPathParameterTagSymbols() {
return layerPathParameterTagSymbols;
}
public void setComponentName(String componentName){
this.componentName = componentName;
}
......@@ -214,6 +221,16 @@ public class ArchitectureSymbol extends CommonScopeSpanningSymbol {
return copy;
}
public void processLayerPathParameterTags(){
for(NetworkInstructionSymbol networkInstruction : networkInstructions){
List<ArchitectureElementSymbol> elements = networkInstruction.getBody().getElements();
for (ArchitectureElementSymbol element : elements){
}
}
}
public void processForEpisodicReplayMemory(){
for(NetworkInstructionSymbol networkInstruction : networkInstructions){
List<ArchitectureElementSymbol> elements = networkInstruction.getBody().getElements();
......
/**
*
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package de.monticore.lang.monticar.cnnarch._symboltable;
import de.monticore.symboltable.SymbolKind;
public class LayerPathParameterTagKind implements SymbolKind {
private static final String NAME = "de.monticore.lang.monticar.cnnarch._symboltable.LayerPathParameterTagKind";
@Override
public String getName() {
return NAME;
}
@Override
public boolean isKindOf(SymbolKind kind) {
return NAME.equals(kind.getName()) || SymbolKind.super.isKindOf(kind);
}
}
/**
*
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
package de.monticore.lang.monticar.cnnarch._symboltable;
import de.monticore.symboltable.SymbolKind;
import de.monticore.symboltable.CommonSymbol;
import java.util.*;
public abstract class LayerPathParameterTagSymbol extends CommonSymbol {
public static final LayerPathParameterTagKind KIND = new LayerPathParameterTagKind();
private String path;
private String id;
protected LayerPathParameterTagSymbol(String name) {
super(name, KIND);
}
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
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