Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
languages
CNNArchLang
Commits
5636a8dd
Commit
5636a8dd
authored
Oct 24, 2019
by
Sebastian Nickels
Browse files
More cleaning up
parent
09af254b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/monticore/lang/monticar/cnnarch/predefined/FullyConnected.java
View file @
5636a8dd
...
...
@@ -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
()
...
...
src/main/java/de/monticore/lang/monticar/cnnarch/predefined/ReduceSum.java
View file @
5636a8dd
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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