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
847c07f1
Commit
847c07f1
authored
Jul 20, 2019
by
Nicola Gatto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix wrong tests
parent
fc007f99
Pipeline
#163026
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/test/resources/models/reinforcementModel/mountaincar/agent/MountaincarCritic.emadl
...nforcementModel/mountaincar/agent/MountaincarCritic.emadl
+1
-1
src/test/resources/target_code/gluon/reinforcementModel/mountaincar/reinforcement_learning/CNNCreator_mountaincar_agent_MountaincarCritic.py
...earning/CNNCreator_mountaincar_agent_MountaincarCritic.py
+1
-1
No files found.
src/test/resources/models/reinforcementModel/mountaincar/agent/MountaincarCritic.emadl
View file @
847c07f1
...
...
@@ -3,7 +3,7 @@ package mountaincar.agent;
component
MountaincarCritic
{
ports
in
Q
^{
2
}
state
,
in
Q
^{
2
}
action
,
in
Q
(-
1
:
1
)
^{
1
}
action
,
out
Q
(-
oo
:
oo
)^{
1
}
qvalues
;
implementation
CNN
{
...
...
src/test/resources/target_code/gluon/reinforcementModel/mountaincar/reinforcement_learning/CNNCreator_mountaincar_agent_MountaincarCritic.py
View file @
847c07f1
...
...
@@ -50,7 +50,7 @@ class CNNCreator_mountaincar_agent_mountaincarCritic:
self
.
networks
[
0
]
=
Net_0
(
data_mean
=
data_mean
,
data_std
=
data_std
)
self
.
networks
[
0
].
collect_params
().
initialize
(
self
.
weight_initializer
,
ctx
=
context
)
self
.
networks
[
0
].
hybridize
()
self
.
networks
[
0
](
mx
.
nd
.
zeros
((
1
,
2
,),
ctx
=
context
),
mx
.
nd
.
zeros
((
1
,
2
,),
ctx
=
context
))
self
.
networks
[
0
](
mx
.
nd
.
zeros
((
1
,
2
,),
ctx
=
context
),
mx
.
nd
.
zeros
((
1
,
1
,),
ctx
=
context
))
if
not
os
.
path
.
exists
(
self
.
_model_dir_
):
os
.
makedirs
(
self
.
_model_dir_
)
...
...
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