Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
languages
CNNArchLang
Commits
165a3d2b
Commit
165a3d2b
authored
Sep 12, 2019
by
Christian Fuß
Browse files
uncommented domain check in Embedding
parent
f04f2298
Pipeline
#182798
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/monticore/lang/monticar/cnnarch/predefined/Embedding.java
View file @
165a3d2b
...
...
@@ -90,10 +90,10 @@ public class Embedding extends PredefinedLayerDeclaration {
ASTElementType
domain
=
layer
.
getInputTypes
().
get
(
0
).
getDomain
();
/*
if (!domain.isWholeNumber() && !domain.isNaturalNumber()) {
if
(!
domain
.
isWholeNumber
()
&&
!
domain
.
isNaturalNumber
())
{
Log
.
error
(
"0"
+
ErrorCodes
.
INVALID_ELEMENT_INPUT_DOMAIN
+
" Invalid layer input domain: Input must be natural. "
,
layer
.
getSourcePosition
());
}
else
*/
if
(!
domain
.
isPresentRange
()
||
domain
.
getRange
().
hasNoUpperLimit
())
{
else
if
(!
domain
.
isPresentRange
()
||
domain
.
getRange
().
hasNoUpperLimit
())
{
Log
.
error
(
"0"
+
ErrorCodes
.
INVALID_ELEMENT_INPUT_DOMAIN
+
" Invalid layer input domain: Input range must have an upper limit. "
,
layer
.
getSourcePosition
());
}
else
if
(
domain
.
getRange
().
getStartValue
().
intValue
()
<
0
||
domain
.
getRange
().
getEndValue
().
intValue
()
>=
inputDim
)
{
...
...
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