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
languages
CNNArchLang
Commits
3d9809dd
Commit
3d9809dd
authored
Feb 25, 2019
by
Evgeny Kusmenko
Browse files
Merge branch 'oneclick_nn_training' into 'master'
Store model path to allow its usage in the templates See merge request
!21
parents
c92c3107
1872a256
Pipeline
#155663
passed with stages
in 18 minutes and 34 seconds
Changes
2
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
3d9809dd
...
...
@@ -30,7 +30,7 @@
<groupId>
de.monticore.lang.monticar
</groupId>
<artifactId>
cnn-arch
</artifactId>
<version>
0.
2.9
</version>
<version>
0.
3.0-SNAPSHOT
</version>
...
...
src/main/java/de/monticore/lang/monticar/cnnarch/CNNArchGenerator.java
View file @
3d9809dd
...
...
@@ -34,6 +34,7 @@ import java.util.Map;
public
abstract
class
CNNArchGenerator
{
private
String
generationTargetPath
;
private
String
modelsDirPath
;
public
static
void
quitGeneration
(){
Log
.
error
(
"Code generation is aborted"
);
...
...
@@ -55,7 +56,12 @@ public abstract class CNNArchGenerator {
this
.
generationTargetPath
=
generationTargetPath
;
}
protected
String
getModelsDirPath
()
{
return
this
.
modelsDirPath
;
}
public
void
generate
(
Path
modelsDirPath
,
String
rootModelName
){
this
.
modelsDirPath
=
modelsDirPath
.
toString
();
final
ModelPath
mp
=
new
ModelPath
(
modelsDirPath
);
GlobalScope
scope
=
new
GlobalScope
(
mp
,
new
CNNArchLanguage
());
generate
(
scope
,
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