Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
af5551f9
Unverified
Commit
af5551f9
authored
Jun 25, 2021
by
SparkSnail
Committed by
GitHub
Jun 25, 2021
Browse files
Fix trainingService initialize error in View mode (#3872)
parent
e5d61809
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
ts/nni_manager/core/nnimanager.ts
ts/nni_manager/core/nnimanager.ts
+6
-5
No files found.
ts/nni_manager/core/nnimanager.ts
View file @
af5551f9
...
...
@@ -204,11 +204,6 @@ class NNIManager implements Manager {
const
experimentId
:
string
=
getExperimentId
();
this
.
log
.
info
(
`Resuming experiment:
${
experimentId
}
`
);
this
.
experimentProfile
=
await
this
.
dataStore
.
getExperimentProfile
(
experimentId
);
this
.
readonly
=
readonly
;
if
(
readonly
)
{
this
.
setStatus
(
'
VIEWED
'
);
return
Promise
.
resolve
();
}
const
config
:
ExperimentConfig
=
this
.
experimentProfile
.
params
;
this
.
config
=
config
;
...
...
@@ -217,6 +212,12 @@ class NNIManager implements Manager {
this
.
trainingService
=
await
this
.
initTrainingService
(
config
);
}
this
.
readonly
=
readonly
;
if
(
readonly
)
{
this
.
setStatus
(
'
VIEWED
'
);
return
;
}
this
.
log
.
info
(
'
Setup tuner...
'
);
const
dispatcherCommand
:
string
=
getMsgDispatcherCommand
(
config
);
this
.
log
.
debug
(
`dispatcher command:
${
dispatcherCommand
}
`
);
...
...
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