Commit 0ecebbff authored by Bernhard Rumpe's avatar Bernhard Rumpe

BR-sy

parent c2945f78
Pipeline #249188 failed with stage
in 2 minutes and 26 seconds
#
#
# ******************************************************************************
# 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
stages:
- linux
......@@ -48,4 +29,4 @@ TestGLUON:
- cd gluon
- ./build.sh
- RES=$(./build/src/cpp/DigitCalculator resources/images/1.png resources/images/2.png resources/images/3.png resources/images/4.png resources/images/5.png resources/images/6.png)
- "if [[ $RES != *\"SUM: 579\"* ]]; then echo \"Wrong result:\" $RES; exit 1; fi;"
\ No newline at end of file
- "if [[ $RES != *\"SUM: 579\"* ]]; then echo \"Wrong result:\" $RES; exit 1; fi;"
<!-- (c) https://github.com/MontiCore/monticore -->
# MNISTCalculator
......@@ -9,4 +10,4 @@
4. OpenCV
## MXNet and Caffe2
For detailed instructions on how to run the MXNet and Caffe2 example, see the README in the corresponding folder.
\ No newline at end of file
For detailed instructions on how to run the MXNet and Caffe2 example, see the README in the corresponding folder.
train.log
target/
model/
build/
\ No newline at end of file
build/
<!-- (c) https://github.com/MontiCore/monticore -->
# MNISTCalculator Caffe2
......
rm -rf target
# (c) https://github.com/MontiCore/monticore
java -jar ../embedded-montiarc-emadl-generator-0.3.0-jar-with-dependencies.jar -m src/emadl/models/ -r cNNCalculator.Connector -o target -b CAFFE2
rm -rf build
......
FROM registry.git.rwth-aachen.de/monticore/embeddedmontiarc/generators/emadl2cpp/integrationtests/caffe2:v0.0.5
RUN apt-get update
RUN apt-get install -y libopenblas-dev
\ No newline at end of file
RUN apt-get install -y libopenblas-dev
/* (c) https://github.com/MontiCore/monticore */
#include "CNNTranslator.h"
#include "cNNCalculator_connector.h"
#include <opencv2/core/core.hpp>
......
/* (c) https://github.com/MontiCore/monticore */
package cNNCalculator;
component Add{
......
/* (c) https://github.com/MontiCore/monticore */
package cNNCalculator;
component ArgMax<Z(1:oo) n = 2>{
......
/* (c) https://github.com/MontiCore/monticore */
package cNNCalculator;
component Calculator {
......
/* (c) https://github.com/MontiCore/monticore */
package cNNCalculator;
component Connector {
......
/* (c) https://github.com/MontiCore/monticore */
package cNNCalculator;
component DigitCombiner{
......
/* (c) https://github.com/MontiCore/monticore */
configuration Network{
num_epoch:10
batch_size:64
......
/* (c) https://github.com/MontiCore/monticore */
package cNNCalculator;
component Network<Z(2:oo) classes = 10>{
......
/* (c) https://github.com/MontiCore/monticore */
configuration VGG16{
num_epoch:1
batch_size:64
......
/* (c) https://github.com/MontiCore/monticore */
package cNNCalculator;
component VGG16{
......
train.log
target/
model/
build/
\ No newline at end of file
build/
<!-- (c) https://github.com/MontiCore/monticore -->
# Calculator MXNET
......
MXNET_PATH=$(python -c "import mxnet; print(mxnet.__file__)")
# (c) https://github.com/MontiCore/monticore
MXNET_FOLDER=$(dirname $MXNET_PATH)
echo $MXNET_FOLDER
......
......@@ -28,4 +28,4 @@ RUN cd OpenCV/build && make -j4
RUN cd OpenCV/build && make install
RUN cd OpenCV/build && ldconfig
RUN apt-get install -y libopenblas-dev
\ No newline at end of file
RUN apt-get install -y libopenblas-dev
# (c) https://github.com/MontiCore/monticore
from __future__ import print_function
from __future__ import division
import h5py
......
......@@ -14,4 +14,4 @@ set(INCLUDE_DIRS ${INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS})
set(LIBS ${LIBS} ${OpenCV_LIBS})
target_link_libraries(DigitCalculator cNNCalculator_connector ${LIBS} -lblas -lopenblas)
target_include_directories(DigitCalculator PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
export(TARGETS DigitCalculator FILE DigitCalculator.cmake)
\ No newline at end of file
export(TARGETS DigitCalculator FILE DigitCalculator.cmake)
/* (c) https://github.com/MontiCore/monticore */
#include "CNNTranslator.h"
#include "cNNCalculator_connector.h"
#include <opencv2/core/core.hpp>
......
/* (c) https://github.com/MontiCore/monticore */
package cNNCalculator;
component Add{
......
/* (c) https://github.com/MontiCore/monticore */
package cNNCalculator;
component ArgMax<Z(1:oo) n = 2>{
......
/* (c) https://github.com/MontiCore/monticore */
package cNNCalculator;
component Calculator {
......
/* (c) https://github.com/MontiCore/monticore */
package cNNCalculator;
component Connector {
......
/* (c) https://github.com/MontiCore/monticore */
package cNNCalculator;
component DigitCombiner{
......
/* (c) https://github.com/MontiCore/monticore */
configuration Network{
num_epoch:1
batch_size:10
......
/* (c) https://github.com/MontiCore/monticore */
package cNNCalculator;
component Network<Z(2:oo) classes = 10>{
......
/* (c) https://github.com/MontiCore/monticore */
configuration VGG16{
num_epoch:1
batch_size:64
......
/* (c) https://github.com/MontiCore/monticore */
package cNNCalculator;
component VGG16{
......
train.log
target/
model/
build/
\ No newline at end of file
build/
<!-- (c) https://github.com/MontiCore/monticore -->
# Calculator MXNET
......
MXNET_PATH=$(python -c "import mxnet; print(mxnet.__file__)")
# (c) https://github.com/MontiCore/monticore
MXNET_FOLDER=$(dirname $MXNET_PATH)
echo $MXNET_FOLDER
......
......@@ -28,4 +28,4 @@ RUN cd OpenCV/build && make -j4
RUN cd OpenCV/build && make install
RUN cd OpenCV/build && ldconfig
RUN apt-get install -y libopenblas-dev
\ No newline at end of file
RUN apt-get install -y libopenblas-dev
# (c) https://github.com/MontiCore/monticore
from __future__ import print_function
from __future__ import division
import h5py
......
......@@ -14,4 +14,4 @@ set(INCLUDE_DIRS ${INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS})
set(LIBS ${LIBS} ${OpenCV_LIBS})
target_link_libraries(DigitCalculator cNNCalculator_connector ${LIBS} -lblas -lopenblas)
target_include_directories(DigitCalculator PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
export(TARGETS DigitCalculator FILE DigitCalculator.cmake)
\ No newline at end of file
export(TARGETS DigitCalculator FILE DigitCalculator.cmake)
/* (c) https://github.com/MontiCore/monticore */
#include "CNNTranslator.h"
#include "cNNCalculator_connector.h"
#include <opencv2/core/core.hpp>
......
/* (c) https://github.com/MontiCore/monticore */
package cNNCalculator;
component Add{
......
/* (c) https://github.com/MontiCore/monticore */
package cNNCalculator;
component ArgMax<Z(1:oo) n = 2>{
......
/* (c) https://github.com/MontiCore/monticore */
package cNNCalculator;
component Calculator {
......
/* (c) https://github.com/MontiCore/monticore */
package cNNCalculator;
component Connector {
......
/* (c) https://github.com/MontiCore/monticore */
package cNNCalculator;
component DigitCombiner{
......
/* (c) https://github.com/MontiCore/monticore */
configuration Network{
num_epoch:1
batch_size:10
......
/* (c) https://github.com/MontiCore/monticore */
package cNNCalculator;
component Network<Z(2:oo) classes = 10>{
......
/* (c) https://github.com/MontiCore/monticore */
configuration VGG16{
num_epoch:1
batch_size:64
......
/* (c) https://github.com/MontiCore/monticore */
package cNNCalculator;
component VGG16{
......
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