Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
C
CNNArchLang
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
monticore
EmbeddedMontiArc
languages
CNNArchLang
Commits
04607854
Commit
04607854
authored
May 27, 2020
by
Julian Johannes Steinsberger-Dührßen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug Fixes
parent
574bdfa8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
src/main/java/de/monticore/lang/monticar/cnnarch/predefined/AllPredefinedLayers.java
...lang/monticar/cnnarch/predefined/AllPredefinedLayers.java
+2
-1
src/main/java/de/monticore/lang/monticar/cnnarch/predefined/DotProductSelfAttention.java
.../monticar/cnnarch/predefined/DotProductSelfAttention.java
+1
-1
src/main/java/de/monticore/lang/monticar/cnnarch/predefined/Memory.java
...de/monticore/lang/monticar/cnnarch/predefined/Memory.java
+2
-2
No files found.
src/main/java/de/monticore/lang/monticar/cnnarch/predefined/AllPredefinedLayers.java
View file @
04607854
...
...
@@ -122,7 +122,7 @@ public class AllPredefinedLayers {
public
static
final
String
K_NAME
=
"k"
;
public
static
final
String
NUM_HEADS_NAME
=
"numHeads"
;
public
static
final
String
STORE_DIST_MEASURE_NAME
=
"storeDistMeasure"
;
public
static
final
String
VALUE
_SHAPE_NAME
=
"valueShape
"
;
public
static
final
String
VALUE
S_DIM_NAME
=
"valuesDim
"
;
//parameters for replay memory layer
public
static
final
String
MAX_STORED_SAMPLES_NAME
=
"maxStoredSamples"
;
...
...
@@ -184,6 +184,7 @@ public class AllPredefinedLayers {
SwapAxes
.
create
(),
BroadcastAdd
.
create
(),
Reshape
.
create
(),
DotProductSelfAttention
.
create
(),
Memory
.
create
(),
ReplayMemory
.
create
());
}
...
...
src/main/java/de/monticore/lang/monticar/cnnarch/predefined/DotProductSelfAttention.java
View file @
04607854
...
...
@@ -25,7 +25,7 @@ public class DotProductSelfAttention extends PredefinedLayerDeclaration {
@Override
public
List
<
ArchTypeSymbol
>
computeOutputTypes
(
List
<
ArchTypeSymbol
>
inputTypes
,
LayerSymbol
layer
,
VariableSymbol
.
Member
member
)
{
return
layer
.
getInputTypes
(
);
return
Arrays
.
asList
(
layer
.
getInputTypes
().
get
(
2
)
);
}
@Override
...
...
src/main/java/de/monticore/lang/monticar/cnnarch/predefined/Memory.java
View file @
04607854
...
...
@@ -89,8 +89,8 @@ public class Memory extends PredefinedLayerDeclaration {
.
defaultValue
(
1
)
.
build
(),
new
ParameterSymbol
.
Builder
()
.
name
(
AllPredefinedLayers
.
VALUE
_SHAPE
_NAME
)
.
constraints
(
Constraints
.
INTEGER
_OR_INTEGER_TUPLE
,
Constraints
.
POSITIVE_OR_MINUS_ONE
)
.
name
(
AllPredefinedLayers
.
VALUE
S_DIM
_NAME
)
.
constraints
(
Constraints
.
INTEGER
,
Constraints
.
POSITIVE_OR_MINUS_ONE
)
.
defaultValue
(-
1
)
.
build
()));
declaration
.
setParameters
(
parameters
);
...
...
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