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
generators
CNNArch2X
Commits
acf49043
Commit
acf49043
authored
Aug 12, 2019
by
Sebastian Nickels
Browse files
Moved some MXNet-related code to CNNArch2MXNet and CNNArch2Gluon
parent
bbf3a334
Pipeline
#171052
passed with stages
in 5 minutes and 46 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/monticore/lang/monticar/cnnarch/generator/CNNArchGenerator.java
View file @
acf49043
...
...
@@ -126,18 +126,5 @@ public abstract class CNNArchGenerator {
}
}
public
Map
<
String
,
String
>
generateCMakeContent
(
String
rootModelName
)
{
// model name should start with a lower case letter. If it is a component, replace dot . by _
rootModelName
=
rootModelName
.
replace
(
'.'
,
'_'
).
replace
(
'['
,
'_'
).
replace
(
']'
,
'_'
);
rootModelName
=
rootModelName
.
substring
(
0
,
1
).
toLowerCase
()
+
rootModelName
.
substring
(
1
);
CMakeConfig
cMakeConfig
=
new
CMakeConfig
(
rootModelName
);
cMakeConfig
.
addModuleDependency
(
new
CMakeFindModule
(
"Armadillo"
,
true
));
cMakeConfig
.
addCMakeCommand
(
"set(LIBS ${LIBS} mxnet)"
);
Map
<
String
,
String
>
fileContentMap
=
new
HashMap
<>();
for
(
FileContent
fileContent
:
cMakeConfig
.
generateCMakeFiles
()){
fileContentMap
.
put
(
fileContent
.
getFileName
(),
fileContent
.
getFileContent
());
}
return
fileContentMap
;
}}
public
abstract
Map
<
String
,
String
>
generateCMakeContent
(
String
rootModelName
);
}
Write
Preview
Supports
Markdown
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