Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
monticore
EmbeddedMontiArc
generators
CNNArch2X
Commits
8190a3b7
Commit
8190a3b7
authored
Dec 29, 2019
by
Julian Dierkes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added preprocessing
parent
89c82a29
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
pom.xml
pom.xml
+1
-1
src/main/java/de/monticore/lang/monticar/cnnarch/generator/ArchitectureElementData.java
...g/monticar/cnnarch/generator/ArchitectureElementData.java
+0
-4
src/main/java/de/monticore/lang/monticar/cnnarch/generator/ConfigurationData.java
...re/lang/monticar/cnnarch/generator/ConfigurationData.java
+7
-0
No files found.
pom.xml
View file @
8190a3b7
...
...
@@ -19,7 +19,7 @@
<CNNArch.version>
0.3.3-SNAPSHOT
</CNNArch.version>
<CNNTrain.version>
0.3.8-SNAPSHOT
</CNNTrain.version>
<embedded-montiarc-math-opt-generator>
0.1.
4
</embedded-montiarc-math-opt-generator>
<embedded-montiarc-math-opt-generator>
0.1.
5
</embedded-montiarc-math-opt-generator>
<!-- .. Libraries .................................................. -->
<guava.version>
18.0
</guava.version>
...
...
src/main/java/de/monticore/lang/monticar/cnnarch/generator/ArchitectureElementData.java
View file @
8190a3b7
...
...
@@ -171,10 +171,6 @@ public class ArchitectureElementData {
return
getLayerSymbol
().
getBooleanValue
(
AllPredefinedLayers
.
FLATTEN_PARAMETER_NAME
).
get
();
}
public
List
<
Integer
>
getShape
()
{
return
getLayerSymbol
().
getIntTupleValue
(
AllPredefinedLayers
.
SHAPE_NAME
).
get
();
}
@Nullable
public
String
getPoolType
(){
return
getLayerSymbol
().
getStringValue
(
AllPredefinedLayers
.
POOL_TYPE_NAME
).
get
();
...
...
src/main/java/de/monticore/lang/monticar/cnnarch/generator/ConfigurationData.java
View file @
8190a3b7
...
...
@@ -55,6 +55,13 @@ public class ConfigurationData {
return
(
Boolean
)
getConfiguration
().
getEntry
(
"normalize"
).
getValue
().
getValue
();
}
public
String
getPreprocessingName
()
{
if
(!
getConfiguration
().
getEntryMap
().
containsKey
(
"preprocessing_name"
))
{
return
null
;
}
return
(
String
)
getConfiguration
().
getEntry
(
"preprocessing_name"
).
getValue
().
toString
();
}
public
String
getContext
()
{
if
(!
getConfiguration
().
getEntryMap
().
containsKey
(
"context"
))
{
return
null
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment