Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
fc9036fc
Commit
fc9036fc
authored
Jul 25, 2019
by
Guoxin
Committed by
QuanluZhang
Jul 25, 2019
Browse files
Fix hyperband pop issue (#1340)
* fix pop issue
parent
3c785960
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/sdk/pynni/nni/bohb_advisor/bohb_advisor.py
src/sdk/pynni/nni/bohb_advisor/bohb_advisor.py
+1
-1
src/sdk/pynni/nni/hyperband_advisor/hyperband_advisor.py
src/sdk/pynni/nni/hyperband_advisor/hyperband_advisor.py
+1
-1
No files found.
src/sdk/pynni/nni/bohb_advisor/bohb_advisor.py
View file @
fc9036fc
...
@@ -427,7 +427,7 @@ class BOHB(MsgDispatcherBase):
...
@@ -427,7 +427,7 @@ class BOHB(MsgDispatcherBase):
send
(
CommandType
.
NoMoreTrialJobs
,
json_tricks
.
dumps
(
ret
))
send
(
CommandType
.
NoMoreTrialJobs
,
json_tricks
.
dumps
(
ret
))
return
None
return
None
assert
self
.
generated_hyper_configs
assert
self
.
generated_hyper_configs
params
=
self
.
generated_hyper_configs
.
pop
()
params
=
self
.
generated_hyper_configs
.
pop
(
0
)
ret
=
{
ret
=
{
'parameter_id'
:
params
[
0
],
'parameter_id'
:
params
[
0
],
'parameter_source'
:
'algorithm'
,
'parameter_source'
:
'algorithm'
,
...
...
src/sdk/pynni/nni/hyperband_advisor/hyperband_advisor.py
View file @
fc9036fc
...
@@ -340,7 +340,7 @@ class Hyperband(MsgDispatcherBase):
...
@@ -340,7 +340,7 @@ class Hyperband(MsgDispatcherBase):
self
.
curr_s
-=
1
self
.
curr_s
-=
1
assert
self
.
generated_hyper_configs
assert
self
.
generated_hyper_configs
params
=
self
.
generated_hyper_configs
.
pop
()
params
=
self
.
generated_hyper_configs
.
pop
(
0
)
ret
=
{
ret
=
{
'parameter_id'
:
params
[
0
],
'parameter_id'
:
params
[
0
],
'parameter_source'
:
'algorithm'
,
'parameter_source'
:
'algorithm'
,
...
...
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