Commit 165a3d2b authored by Christian Fuß's avatar Christian Fuß
Browse files

uncommented domain check in Embedding

parent f04f2298
Pipeline #182798 failed with stages
......@@ -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) {
......
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