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
726a46de
Unverified
Commit
726a46de
authored
Jul 27, 2021
by
J-shang
Committed by
GitHub
Jul 27, 2021
Browse files
fix bug (#3977)
parent
a7846135
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
ts/nni_manager/training_service/reusable/trialDispatcher.ts
ts/nni_manager/training_service/reusable/trialDispatcher.ts
+5
-2
No files found.
ts/nni_manager/training_service/reusable/trialDispatcher.ts
View file @
726a46de
...
...
@@ -709,8 +709,11 @@ class TrialDispatcher implements TrainingService {
throw
new
Error
(
`
${
environment
.
id
}
environmentService not initialized!`
);
}
trial
.
message
=
`Platform:
${
environment
.
environmentService
.
getName
}
, environment:
${
environment
.
id
}
`
;
if
(
environment
.
environmentService
.
hasStorageService
)
{
const
storageService
=
component
.
get
<
StorageService
>
(
StorageService
);
if
(
this
.
useSharedStorage
)
{
const
storageService
=
component
.
get
<
SharedStorageService
>
(
SharedStorageService
).
storageService
;
trial
.
workingDirectory
=
storageService
.
joinPath
(
'
trials
'
,
trial
.
id
);
}
else
if
(
environment
.
environmentService
.
hasStorageService
)
{
const
storageService
=
component
.
get
<
StorageService
>
(
StorageService
);
trial
.
workingDirectory
=
storageService
.
joinPath
(
'
trials
'
,
trial
.
id
);
}
trial
.
settings
=
{
...
...
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