Commit 08256da2 authored by Bernhard Rumpe's avatar Bernhard Rumpe

BR-sy

parent 99b141ce
Pipeline #175146 failed with stages
in 1 minute and 20 seconds
# (c) https://github.com/MontiCore/monticore
# Java Maven CircleCI 2.0 configuration file
#
......
# (c) https://github.com/MontiCore/monticore
stages:
- windows
......
# (c) https://github.com/MontiCore/monticore
script:
- git checkout ${TRAVIS_BRANCH}
- mvn clean install cobertura:cobertura org.eluder.coveralls:coveralls-maven-plugin:report --settings "settings.xml"
......
<!-- (c) https://github.com/MontiCore/monticore -->
![pipeline](https://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMADL2CPP/badges/master/build.svg)
![coverage](https://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMADL2CPP/badges/master/coverage.svg)
# EMADL2CPP
......
<!-- (c) https://github.com/MontiCore/monticore -->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
......
<?xml version="1.0" encoding="UTF-8"?>
<!-- (c) https://github.com/MontiCore/monticore -->
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
......
/* (c) https://github.com/MontiCore/monticore */
package de.monticore.lang.monticar.emadl.generator;
......@@ -74,4 +75,4 @@ public enum Backend {
return "MXNET";
}
}
}
\ No newline at end of file
}
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
/* (c) https://github.com/MontiCore/monticore */
package de.monticore.lang.monticar.emadl.generator;
import de.monticore.ModelingLanguageFamily;
......
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
/* (c) https://github.com/MontiCore/monticore */
package de.monticore.lang.monticar.emadl.generator;
import com.google.common.base.Charsets;
......
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
/* (c) https://github.com/MontiCore/monticore */
package de.monticore.lang.monticar.emadl.generator;
import de.se_rwth.commons.logging.Log;
......
/* (c) https://github.com/MontiCore/monticore */
package de.monticore.lang.monticar.emadl.generator.reinforcementlearning;
import de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.instanceStructure.EMAComponentInstanceSymbol;
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef CNNTRANSLATOR_H
#define CNNTRANSLATOR_H
#include <armadillo>
......
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
/* (c) https://github.com/MontiCore/monticore */
package de.monticore.lang.monticar.emadl;
import de.monticore.lang.monticar.emadl.generator.EMADLAbstractSymtab;
......
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
/* (c) https://github.com/MontiCore/monticore */
package de.monticore.lang.monticar.emadl;
import de.monticore.lang.monticar.emadl.generator.Backend;
......
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
/* (c) https://github.com/MontiCore/monticore */
package de.monticore.lang.monticar.emadl;
import org.junit.Ignore;
......@@ -27,4 +8,4 @@ public class IntegrationCaffe2Test extends IntegrationTest {
public IntegrationCaffe2Test() {
super("CAFFE2", "39253EC049D4A4E5FA0536AD34874B9D#1DBAEE1B1BD83FB7CB5F70AE91B29638#13D139510DC5681639AA91D7250288D3#1A42D4842D0664937A9F6B727BD60CEF");
}
}
\ No newline at end of file
}
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
/* (c) https://github.com/MontiCore/monticore */
package de.monticore.lang.monticar.emadl;
import de.monticore.lang.monticar.emadl.generator.EMADLGeneratorCli;
......
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
/* (c) https://github.com/MontiCore/monticore */
package de.monticore.lang.monticar.emadl;
import org.junit.Ignore;
......
/* (c) https://github.com/MontiCore/monticore */
package de.monticore.lang.monticar.emadl;
import de.monticore.lang.monticar.emadl.generator.EMADLGeneratorCli;
......@@ -70,4 +71,4 @@ public class IntegrationPythonWrapperTest extends AbstractSymtabTest {
"./target/generated-sources-emadl/reinforcement_learning/torcs_agent_dqn_reward_executor.py")
.toFile().exists());
}
}
\ No newline at end of file
}
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
/* (c) https://github.com/MontiCore/monticore */
package de.monticore.lang.monticar.emadl;
import de.monticore.lang.monticar.emadl.generator.Backend;
......
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
/* (c) https://github.com/MontiCore/monticore */
package de.monticore.lang.monticar.emadl;
import de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.cncModel.EMAComponentSymbol;
......
......@@ -13,4 +13,4 @@ RUN git clone https://github.com/apache/incubator-mxnet.git mxnet-source && \
rm -r mxnet-source
RUN wget https://bootstrap.pypa.io/get-pip.py
RUN python get-pip.py
RUN pip install mxnet h5py
\ No newline at end of file
RUN pip install mxnet h5py
/* (c) https://github.com/MontiCore/monticore */
component Add{
ports
in (0 m : 10 m) a,
......@@ -7,4 +8,4 @@ component Add{
implementation Math{
c = a + b;
}
}
\ No newline at end of file
}
/* (c) https://github.com/MontiCore/monticore */
configuration Alexnet{
num_epoch : 100
batch_size : 500
......
/* (c) https://github.com/MontiCore/monticore */
component Alexnet{
ports in Z(0:255)^{3, 224, 224} image,
out Q(0:1)^{1000} predictions;
......@@ -44,4 +45,4 @@ component Alexnet{
predictions;
}
}
\ No newline at end of file
}
/* (c) https://github.com/MontiCore/monticore */
package CalculatorTest;
import NumberDetector;
......
/* (c) https://github.com/MontiCore/monticore */
package CalculatorTest;
component NumberDetector{
......
/* (c) https://github.com/MontiCore/monticore */
package InstanceTest;
component CalculateClassB{
......@@ -19,4 +20,4 @@ component CalculateClassB{
digit = max;
}
}
\ No newline at end of file
}
/* (c) https://github.com/MontiCore/monticore */
package InstanceTest;
import NetworkB;
import CalculateClassB;
......@@ -19,4 +20,4 @@ component MainB{
connect net2.predictions -> outCalc2.probabilities;
connect outCalc1.digit -> digit1;
connect outCalc2.digit -> digit2;
}
\ No newline at end of file
}
/* (c) https://github.com/MontiCore/monticore */
configuration NetworkB{
num_epoch:10
batch_size:64
......
/* (c) https://github.com/MontiCore/monticore */
package InstanceTest;
component NetworkB<Z classes = 10> (Z convChannels){
......@@ -21,4 +22,4 @@ component NetworkB<Z classes = 10> (Z convChannels){
predictions;
}
}
\ No newline at end of file
}
/* (c) https://github.com/MontiCore/monticore */
configuration NetworkB_net2{
num_epoch:10
batch_size:32
......
/* (c) https://github.com/MontiCore/monticore */
component InvalidLayerInput{
ports in Z(0:255)^{3, 224, 224} image[2],
out Q(0:1)^{10} predictions;
......@@ -29,4 +30,4 @@ component InvalidLayerInput{
Softmax() ->
predictions;
}
}
\ No newline at end of file
}
/* (c) https://github.com/MontiCore/monticore */
configuration Invariant{
num_epoch:10
batch_size:5
......
/* (c) https://github.com/MontiCore/monticore */
component Invariant{
ports in Z(0:3)^{1} data[2],
out Q(0:1)^{4} pred[3];
......@@ -16,4 +17,4 @@ component Invariant{
OneHot(size=4) ->
pred[2];
}
}
\ No newline at end of file
}
/* (c) https://github.com/MontiCore/monticore */
configuration MultipleInputs{
num_epoch:10
batch_size:5
......
/* (c) https://github.com/MontiCore/monticore */
component MultipleInputs{
ports in Z(0:255)^{3, 32, 32} data[2],
out Q(0:1)^{10} softmax;
......@@ -21,4 +22,4 @@ component MultipleInputs{
Softmax() ->
softmax;
}
}
\ No newline at end of file
}
/* (c) https://github.com/MontiCore/monticore */
configuration MultipleOutputs{
num_epoch:10
batch_size:5
......
/* (c) https://github.com/MontiCore/monticore */
component MultipleOutputs{
ports in Z(0:255)^{3, 32, 32} data,
out Q(0:1)^{10} pred[2];
......@@ -17,4 +18,4 @@ component MultipleOutputs{
pred[1]
);
}
}
\ No newline at end of file
}
/* (c) https://github.com/MontiCore/monticore */
configuration MultipleOutputs{
num_epoch:10
batch_size:64
......
/* (c) https://github.com/MontiCore/monticore */
component MultipleOutputs{
ports in Q(-oo:+oo)^{10,1,1} data,
out Q(0:1)^{4} pred[2];
......@@ -26,4 +27,4 @@ component MultipleOutputs{
pred[1]
);
}
}
\ No newline at end of file
}
/* (c) https://github.com/MontiCore/monticore */
configuration MultipleStreams{
num_epoch:10
batch_size:5
......
/* (c) https://github.com/MontiCore/monticore */
component MultipleStreams{
ports in Z(0:255)^{3, 32, 32} data[2],
out Q(0:1)^{10} softmax[2];
......@@ -21,4 +22,4 @@ component MultipleStreams{
Softmax() ->
softmax[1];
}
}
\ No newline at end of file
}
/* (c) https://github.com/MontiCore/monticore */
configuration RNNtest{
num_epoch:10
batch_size:5
......
/* (c) https://github.com/MontiCore/monticore */
component RNNtest{
ports in Q(-oo:oo)^{50, 30001} source[2],
out Q(-oo:oo)^{50, 30001} target[2];
......@@ -19,4 +20,4 @@ component RNNtest{
decoder ->
target[1];
}
}
\ No newline at end of file
}
/* (c) https://github.com/MontiCore/monticore */
configuration ResNeXt50{
num_epoch:10
batch_size:64
......
/* (c) https://github.com/MontiCore/monticore */
component ResNeXt50{
ports in Z(0:255)^{3, 224, 224} image,
out Q(0:1)^{1000} predictions;
......@@ -42,4 +43,4 @@ component ResNeXt50{
Softmax() ->
predictions;
}
}
\ No newline at end of file
}
/* (c) https://github.com/MontiCore/monticore */