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
6ccdf121
Commit
6ccdf121
authored
Nov 12, 2019
by
Sebastian Nickels
Browse files
Fixed another bug in CNNPredictor
parent
976665f7
Pipeline
#205598
failed with stages
in 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/resources/templates/gluon/CNNPredictor.ftl
View file @
6ccdf121
...
...
@@ -22,7 +22,7 @@ public:
<#
list
tc
.getStreamInputNames
(
networkInstruction
.body
,
true
)
as
variable
>
"data${variable?index}"
<#
sep
>
,
</#
list
>
</#
if
>
}
;
const
std
::
vector
<
std
::
vector
<
mx_uint
>>
input_shapes
=
{
<#
list
tc
.getStreamInputDimensions
(
networkInstruction
.body
)
as
dimensions
>
{
1
,
$
{
tc
.join
(
dimensions
,
", "
)}}
<#
sep
>
,
</#
list
>
}
;
const
std
::
vector
<
std
::
vector
<
mx_uint
>>
input_shapes
=
{
<#
list
tc
.getStreamInputDimensions
(
networkInstruction
.body
)
as
dimensions
>
{
1
,
$
{
tc
.join
(
tc
.cutDimensions
(
dimensions
)
,
", "
)}}
<#
sep
>
,
</#
list
>
}
;
const
bool
use_gpu
=
false
;
P
redictorHandle
handle
;
...
...
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