Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
monticore
EmbeddedMontiArc
generators
EMADL2CPP
Commits
69838eb5
Commit
69838eb5
authored
Nov 12, 2019
by
Sebastian N.
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated tests
parent
91616996
Pipeline
#205608
failed with stages
in 27 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
src/test/resources/target_code/gluon/CNNPredictor_mnist_mnistClassifier_net.h
...arget_code/gluon/CNNPredictor_mnist_mnistClassifier_net.h
+1
-1
src/test/resources/target_code/gluon/reinforcementModel/cartpole/CNNPredictor_cartpole_master_dqn.h
...orcementModel/cartpole/CNNPredictor_cartpole_master_dqn.h
+1
-1
src/test/resources/target_code/gluon/reinforcementModel/mountaincar/CNNPredictor_mountaincar_master_actor.h
...Model/mountaincar/CNNPredictor_mountaincar_master_actor.h
+1
-1
src/test/resources/target_code/gluon/reinforcementModel/torcs/CNNPredictor_torcs_agent_torcsAgent_dqn.h
...mentModel/torcs/CNNPredictor_torcs_agent_torcsAgent_dqn.h
+1
-1
src/test/resources/target_code/gluon/reinforcementModel/torcs_td3/CNNPredictor_torcs_agent_torcsAgent_actor.h
...del/torcs_td3/CNNPredictor_torcs_agent_torcsAgent_actor.h
+1
-1
No files found.
src/test/resources/target_code/gluon/CNNPredictor_mnist_mnistClassifier_net.h
View file @
69838eb5
...
...
@@ -44,7 +44,7 @@ public:
MXPredGetOutputShape
(
handle
,
output_index
,
&
shape
,
&
shape_len
);
size
=
1
;
for
(
mx_uint
i
=
0
;
i
<
shape_len
;
++
i
)
size
*=
shape
[
i
];
assert
(
size
==
out_predictions_
.
size
());
assert
(
out_predictions_
.
size
()
==
1
||
size
==
out_predictions_
.
size
());
MXPredGetOutput
(
handle
,
output_index
,
&
(
out_predictions_
[
0
]),
out_predictions_
.
size
());
}
...
...
src/test/resources/target_code/gluon/reinforcementModel/cartpole/CNNPredictor_cartpole_master_dqn.h
View file @
69838eb5
...
...
@@ -44,7 +44,7 @@ public:
MXPredGetOutputShape
(
handle
,
output_index
,
&
shape
,
&
shape_len
);
size
=
1
;
for
(
mx_uint
i
=
0
;
i
<
shape_len
;
++
i
)
size
*=
shape
[
i
];
assert
(
size
==
out_qvalues_
.
size
());
assert
(
out_qvalues_
.
size
()
==
1
||
size
==
out_qvalues_
.
size
());
MXPredGetOutput
(
handle
,
output_index
,
&
(
out_qvalues_
[
0
]),
out_qvalues_
.
size
());
}
...
...
src/test/resources/target_code/gluon/reinforcementModel/mountaincar/CNNPredictor_mountaincar_master_actor.h
View file @
69838eb5
...
...
@@ -44,7 +44,7 @@ public:
MXPredGetOutputShape
(
handle
,
output_index
,
&
shape
,
&
shape_len
);
size
=
1
;
for
(
mx_uint
i
=
0
;
i
<
shape_len
;
++
i
)
size
*=
shape
[
i
];
assert
(
size
==
out_action_
.
size
());
assert
(
out_action_
.
size
()
==
1
||
size
==
out_action_
.
size
());
MXPredGetOutput
(
handle
,
output_index
,
&
(
out_action_
[
0
]),
out_action_
.
size
());
}
...
...
src/test/resources/target_code/gluon/reinforcementModel/torcs/CNNPredictor_torcs_agent_torcsAgent_dqn.h
View file @
69838eb5
...
...
@@ -44,7 +44,7 @@ public:
MXPredGetOutputShape
(
handle
,
output_index
,
&
shape
,
&
shape_len
);
size
=
1
;
for
(
mx_uint
i
=
0
;
i
<
shape_len
;
++
i
)
size
*=
shape
[
i
];
assert
(
size
==
out_qvalues_
.
size
());
assert
(
out_qvalues_
.
size
()
==
1
||
size
==
out_qvalues_
.
size
());
MXPredGetOutput
(
handle
,
output_index
,
&
(
out_qvalues_
[
0
]),
out_qvalues_
.
size
());
}
...
...
src/test/resources/target_code/gluon/reinforcementModel/torcs_td3/CNNPredictor_torcs_agent_torcsAgent_actor.h
View file @
69838eb5
...
...
@@ -44,7 +44,7 @@ public:
MXPredGetOutputShape
(
handle
,
output_index
,
&
shape
,
&
shape_len
);
size
=
1
;
for
(
mx_uint
i
=
0
;
i
<
shape_len
;
++
i
)
size
*=
shape
[
i
];
assert
(
size
==
out_commands_
.
size
());
assert
(
out_commands_
.
size
()
==
1
||
size
==
out_commands_
.
size
());
MXPredGetOutput
(
handle
,
output_index
,
&
(
out_commands_
[
0
]),
out_commands_
.
size
());
}
...
...
Christian Fuß
@chrifuss
mentioned in commit
d42efa8c
·
Dec 06, 2019
mentioned in commit
d42efa8c
mentioned in commit d42efa8c18b80be3d6cc4c961ae222af5ba72f96
Toggle commit list
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