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 # Java Maven CircleCI 2.0 configuration file
# #
......
# (c) https://github.com/MontiCore/monticore
stages: stages:
- windows - windows
......
# (c) https://github.com/MontiCore/monticore
script: script:
- git checkout ${TRAVIS_BRANCH} - git checkout ${TRAVIS_BRANCH}
- mvn clean install cobertura:cobertura org.eluder.coveralls:coveralls-maven-plugin:report --settings "settings.xml" - 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) ![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) ![coverage](https://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMADL2CPP/badges/master/coverage.svg)
# EMADL2CPP # EMADL2CPP
......
<!-- (c) https://github.com/MontiCore/monticore -->
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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"> 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"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- (c) https://github.com/MontiCore/monticore -->
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
......
/* (c) https://github.com/MontiCore/monticore */
package de.monticore.lang.monticar.emadl.generator; package de.monticore.lang.monticar.emadl.generator;
...@@ -74,4 +75,4 @@ public enum Backend { ...@@ -74,4 +75,4 @@ public enum Backend {
return "MXNET"; return "MXNET";
} }
} }
} }
\ No newline at end of file
/** /* (c) https://github.com/MontiCore/monticore */
*
* ******************************************************************************
* 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/>.
* *******************************************************************************
*/
package de.monticore.lang.monticar.emadl.generator; package de.monticore.lang.monticar.emadl.generator;
import de.monticore.ModelingLanguageFamily; import de.monticore.ModelingLanguageFamily;
......
/** /* (c) https://github.com/MontiCore/monticore */
*
* ******************************************************************************
* 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/>.
* *******************************************************************************
*/
package de.monticore.lang.monticar.emadl.generator; package de.monticore.lang.monticar.emadl.generator;
import com.google.common.base.Charsets; import com.google.common.base.Charsets;
......
/** /* (c) https://github.com/MontiCore/monticore */
*
* ******************************************************************************
* 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/>.
* *******************************************************************************
*/
package de.monticore.lang.monticar.emadl.generator; package de.monticore.lang.monticar.emadl.generator;
import de.se_rwth.commons.logging.Log; import de.se_rwth.commons.logging.Log;
......
/* (c) https://github.com/MontiCore/monticore */
package de.monticore.lang.monticar.emadl.generator.reinforcementlearning; package de.monticore.lang.monticar.emadl.generator.reinforcementlearning;
import de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.instanceStructure.EMAComponentInstanceSymbol; import de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.instanceStructure.EMAComponentInstanceSymbol;
......
/* (c) https://github.com/MontiCore/monticore */
#ifndef CNNTRANSLATOR_H #ifndef CNNTRANSLATOR_H
#define CNNTRANSLATOR_H #define CNNTRANSLATOR_H
#include <armadillo> #include <armadillo>
......
/** /* (c) https://github.com/MontiCore/monticore */
*
* ******************************************************************************
* 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/>.
* *******************************************************************************
*/
package de.monticore.lang.monticar.emadl; package de.monticore.lang.monticar.emadl;
import de.monticore.lang.monticar.emadl.generator.EMADLAbstractSymtab; import de.monticore.lang.monticar.emadl.generator.EMADLAbstractSymtab;
......
/** /* (c) https://github.com/MontiCore/monticore */
*
* ******************************************************************************
* 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/>.
* *******************************************************************************
*/
package de.monticore.lang.monticar.emadl; package de.monticore.lang.monticar.emadl;
import de.monticore.lang.monticar.emadl.generator.Backend; import de.monticore.lang.monticar.emadl.generator.Backend;
......
/** /* (c) https://github.com/MontiCore/monticore */
*
* ******************************************************************************
* 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/>.
* *******************************************************************************
*/
package de.monticore.lang.monticar.emadl; package de.monticore.lang.monticar.emadl;
import org.junit.Ignore; import org.junit.Ignore;
...@@ -27,4 +8,4 @@ public class IntegrationCaffe2Test extends IntegrationTest { ...@@ -27,4 +8,4 @@ public class IntegrationCaffe2Test extends IntegrationTest {
public IntegrationCaffe2Test() { public IntegrationCaffe2Test() {
super("CAFFE2", "39253EC049D4A4E5FA0536AD34874B9D#1DBAEE1B1BD83FB7CB5F70AE91B29638#13D139510DC5681639AA91D7250288D3#1A42D4842D0664937A9F6B727BD60CEF"); super("CAFFE2", "39253EC049D4A4E5FA0536AD34874B9D#1DBAEE1B1BD83FB7CB5F70AE91B29638#13D139510DC5681639AA91D7250288D3#1A42D4842D0664937A9F6B727BD60CEF");
} }
} }
\ No newline at end of file
/** /* (c) https://github.com/MontiCore/monticore */
*
* ******************************************************************************
* 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/>.
* *******************************************************************************
*/
package de.monticore.lang.monticar.emadl; package de.monticore.lang.monticar.emadl;
import de.monticore.lang.monticar.emadl.generator.EMADLGeneratorCli; import de.monticore.lang.monticar.emadl.generator.EMADLGeneratorCli;
......
/** /* (c) https://github.com/MontiCore/monticore */
*
* ******************************************************************************
* 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/>.
* *******************************************************************************
*/
package de.monticore.lang.monticar.emadl; package de.monticore.lang.monticar.emadl;
import org.junit.Ignore; import org.junit.Ignore;
......
/* (c) https://github.com/MontiCore/monticore */
package de.monticore.lang.monticar.emadl; package de.monticore.lang.monticar.emadl;
import de.monticore.lang.monticar.emadl.generator.EMADLGeneratorCli; import de.monticore.lang.monticar.emadl.generator.EMADLGeneratorCli;
...@@ -70,4 +71,4 @@ public class IntegrationPythonWrapperTest extends AbstractSymtabTest { ...@@ -70,4 +71,4 @@ public class IntegrationPythonWrapperTest extends AbstractSymtabTest {
"./target/generated-sources-emadl/reinforcement_learning/torcs_agent_dqn_reward_executor.py") "./target/generated-sources-emadl/reinforcement_learning/torcs_agent_dqn_reward_executor.py")
.toFile().exists()); .toFile().exists());
} }
} }
\ No newline at end of file
/** /* (c) https://github.com/MontiCore/monticore */
*
* ******************************************************************************
* 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/>.
* *******************************************************************************
*/
package de.monticore.lang.monticar.emadl; package de.monticore.lang.monticar.emadl;
import de.monticore.lang.monticar.emadl.generator.Backend; import de.monticore.lang.monticar.emadl.generator.Backend;
......
/** /* (c) https://github.com/MontiCore/monticore */
*
* ******************************************************************************
* 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/>.
* *******************************************************************************
*/
package de.monticore.lang.monticar.emadl; package de.monticore.lang.monticar.emadl;
import de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.cncModel.EMAComponentSymbol; 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 && \ ...@@ -13,4 +13,4 @@ RUN git clone https://github.com/apache/incubator-mxnet.git mxnet-source && \
rm -r mxnet-source rm -r mxnet-source
RUN wget https://bootstrap.pypa.io/get-pip.py RUN wget https://bootstrap.pypa.io/get-pip.py
RUN python get-pip.py RUN python get-pip.py
RUN pip install mxnet h5py RUN pip install mxnet h5py
\ No newline at end of file
/* (c) https://github.com/MontiCore/monticore */
component Add{ component Add{
ports ports
in (0 m : 10 m) a, in (0 m : 10 m) a,
...@@ -7,4 +8,4 @@ component Add{ ...@@ -7,4 +8,4 @@ component Add{
implementation Math{ implementation Math{
c = a + b; c = a + b;
} }
} }
\ No newline at end of file
/* (c) https://github.com/MontiCore/monticore */
configuration Alexnet{ configuration Alexnet{
num_epoch : 100 num_epoch : 100
batch_size : 500 batch_size : 500
......
/* (c) https://github.com/MontiCore/monticore */
component Alexnet{ component Alexnet{
ports in Z(0:255)^{3, 224, 224} image, ports in Z(0:255)^{3, 224, 224} image,
out Q(0:1)^{1000} predictions; out Q(0:1)^{1000} predictions;
...@@ -44,4 +45,4 @@ component Alexnet{ ...@@ -44,4 +45,4 @@ component Alexnet{
predictions; predictions;
} }
} }
\ No newline at end of file
/* (c) https://github.com/MontiCore/monticore */
package CalculatorTest; package CalculatorTest;
import NumberDetector; import NumberDetector;
......
/* (c) https://github.com/MontiCore/monticore */
package CalculatorTest; package CalculatorTest;
component NumberDetector{ component NumberDetector{
......
/* (c) https://github.com/MontiCore/monticore */
package InstanceTest; package InstanceTest;
component CalculateClassB{ component CalculateClassB{
...@@ -19,4 +20,4 @@ component CalculateClassB{ ...@@ -19,4 +20,4 @@ component CalculateClassB{
digit = max; digit = max;
} }
} }
\ No newline at end of file
/* (c) https://github.com/MontiCore/monticore */
package InstanceTest; package InstanceTest;
import NetworkB; import NetworkB;
import CalculateClassB; import CalculateClassB;
...@@ -19,4 +20,4 @@ component MainB{ ...@@ -19,4 +20,4 @@ component MainB{
connect net2.predictions -> outCalc2.probabilities; connect net2.predictions -> outCalc2.probabilities;
connect outCalc1.digit -> digit1; connect outCalc1.digit -> digit1;
connect outCalc2.digit -> digit2; connect outCalc2.digit -> digit2;
} }
\ No newline at end of file
/* (c) https://github.com/MontiCore/monticore */
configuration NetworkB{ configuration NetworkB{
num_epoch:10 num_epoch:10
batch_size:64 batch_size:64
......
/* (c) https://github.com/MontiCore/monticore */
package InstanceTest; package InstanceTest;
component NetworkB<Z classes = 10> (Z convChannels){ component NetworkB<Z classes = 10> (Z convChannels){
...@@ -21,4 +22,4 @@ component NetworkB<Z classes = 10> (Z convChannels){ ...@@ -21,4 +22,4 @@ component NetworkB<Z classes = 10> (Z convChannels){
predictions; predictions;
} }
} }
\ No newline at end of file
/* (c) https://github.com/MontiCore/monticore */
configuration NetworkB_net2{ configuration NetworkB_net2{
num_epoch:10 num_epoch:10
batch_size:32 batch_size:32
......
/* (c) https://github.com/MontiCore/monticore */
component InvalidLayerInput{ component InvalidLayerInput{
ports in Z(0:255)^{3, 224, 224} image[2], ports in Z(0:255)^{3, 224, 224} image[2],
out Q(0:1)^{10} predictions; out Q(0:1)^{10} predictions;
...@@ -29,4 +30,4 @@ component InvalidLayerInput{ ...@@ -29,4 +30,4 @@ component InvalidLayerInput{
Softmax() -> Softmax() ->
predictions; predictions;
} }
} }
\ No newline at end of file
/* (c) https://github.com/MontiCore/monticore */
configuration Invariant{ configuration Invariant{
num_epoch:10 num_epoch:10
batch_size:5 batch_size:5
......
/* (c) https://github.com/MontiCore/monticore */
component Invariant{ component Invariant{
ports in Z(0:3)^{1} data[2], ports in Z(0:3)^{1} data[2],
out Q(0:1)^{4} pred[3]; out Q(0:1)^{4} pred[3];
...@@ -16,4 +17,4 @@ component Invariant{ ...@@ -16,4 +17,4 @@ component Invariant{
OneHot(size=4) -> OneHot(size=4) ->
pred[2]; pred[2];
} }
} }
\ No newline at end of file
/* (c) https://github.com/MontiCore/monticore */
configuration MultipleInputs{ configuration MultipleInputs{
num_epoch:10 num_epoch:10
batch_size:5 batch_size:5
......
/* (c) https://github.com/MontiCore/monticore */
component MultipleInputs{ component MultipleInputs{
ports in Z(0:255)^{3, 32, 32} data[2], ports in Z(0:255)^{3, 32, 32} data[2],
out Q(0:1)^{10} softmax; out Q(0:1)^{10} softmax;
...@@ -21,4 +22,4 @@ component MultipleInputs{ ...@@ -21,4 +22,4 @@ component MultipleInputs{
Softmax() -> Softmax() ->
softmax; softmax;
} }
} }
\ No newline at end of file
/* (c) https://github.com/MontiCore/monticore */
configuration MultipleOutputs{ configuration MultipleOutputs{
num_epoch:10 num_epoch:10
batch_size:5 batch_size:5
......
/* (c) https://github.com/MontiCore/monticore */
component MultipleOutputs{ component MultipleOutputs{
ports in Z(0:255)^{3, 32, 32} data, ports in Z(0:255)^{3, 32, 32} data,
out Q(0:1)^{10} pred[2]; out Q(0:1)^{10} pred[2];
...@@ -17,4 +18,4 @@ component MultipleOutputs{ ...@@ -17,4 +18,4 @@ component MultipleOutputs{
pred[1] pred[1]
); );
} }
} }
\ No newline at end of file
/* (c) https://github.com/MontiCore/monticore */
configuration MultipleOutputs{ configuration MultipleOutputs{
num_epoch:10 num_epoch:10
batch_size:64 batch_size:64
......
/* (c) https://github.com/MontiCore/monticore */
component MultipleOutputs{ component MultipleOutputs{
ports in Q(-oo:+oo)^{10,1,1} data, ports in Q(-oo:+oo)^{10,1,1} data,
out Q(0:1)^{4} pred[2]; out Q(0:1)^{4} pred[2];
...@@ -26,4 +27,4 @@ component MultipleOutputs{ ...@@ -26,4 +27,4 @@ component MultipleOutputs{
pred[1] pred[1]
); );