Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
generators
CNNArch2Gluon
Commits
028ead95
Commit
028ead95
authored
Sep 06, 2019
by
Sebastian Nickels
Browse files
Updated execute.ftl
parent
82c6d14f
Pipeline
#180737
failed with stages
in 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/resources/templates/gluon/execute.ftl
View file @
028ead95
...
...
@@ -10,11 +10,17 @@
</#
list
>
<#
list
tc.architecture.networkInstructions as networkInstruction>
<#
if
networkInstruction.isUnroll()>
<#
list
networkInstruction.toUnrollInstruction().resolvedBodies as resolvedBody>
_predictor_$
{
networkInstruction
?
index
}
_.predict($
{
tc
.join
(
tc
.getStreamInputNames
(
networkInstruction
.body
,
resolvedBody
),
", "
)}
, $
{
tc
.join
(
tc
.getStreamOutputNames
(
networkInstruction
.body
,
resolvedBody
),
", "
)}
);
</#
list
>
<#
else
>
<#
if
networkInstruction.body.isTrainable()>
_predictor_$
{
networkInstruction
?
index
}
_.predict($
{
tc
.join
(
tc
.getStreamInputNames
(
networkInstruction
.body
),
", "
)}
, $
{
tc
.join
(
tc
.getStreamOutputNames
(
networkInstruction
.body
),
", "
)}
);
<#
else
>
${
tc
.include
(
networkInstruction
.body
,
"CPP_INLINE")
}
</#
if
>
</#
if
>
</#
list
>
<#
list
tc.architectureOutputSymbols as output>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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