Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
monticore
EmbeddedMontiArc
generators
CNNArch2X
Commits
acf49043
Commit
acf49043
authored
Aug 12, 2019
by
Sebastian N.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
15 deletions
+2
-15
src/main/java/de/monticore/lang/monticar/cnnarch/generator/CNNArchGenerator.java
...ore/lang/monticar/cnnarch/generator/CNNArchGenerator.java
+2
-15
No files found.
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
Markdown
is supported
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