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
8238ddc6
"...composable_kernel_onnxruntime.git" did not exist on "ebe38f3d480b5f6ebec59d6f89fbbcec692073fb"
Unverified
Commit
8238ddc6
authored
May 12, 2020
by
Yan Ni
Committed by
GitHub
May 12, 2020
Browse files
Fix it local windows (#2421)
parent
bf7daa8f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
3 deletions
+36
-3
src/nni_manager/training_service/local/localTrainingService.ts
...ni_manager/training_service/local/localTrainingService.ts
+5
-3
test/config/integration_tests.yml
test/config/integration_tests.yml
+8
-0
test/config/metrics_test/config_failure.yml
test/config/metrics_test/config_failure.yml
+20
-0
tools/nni_cmd/nnictl_utils.py
tools/nni_cmd/nnictl_utils.py
+3
-0
No files found.
src/nni_manager/training_service/local/localTrainingService.ts
View file @
8238ddc6
...
@@ -334,9 +334,11 @@ class LocalTrainingService implements TrainingService {
...
@@ -334,9 +334,11 @@ class LocalTrainingService implements TrainingService {
throw
new
Error
(
`Could not find stream in trial
${
trialJob
.
id
}
`
);
throw
new
Error
(
`Could not find stream in trial
${
trialJob
.
id
}
`
);
}
}
//Refer https://github.com/Juul/tail-stream/issues/20
//Refer https://github.com/Juul/tail-stream/issues/20
setTimeout
(()
=>
{
stream
.
end
(
0
);
stream
.
end
(
0
);
stream
.
emit
(
'
end
'
);
stream
.
emit
(
'
end
'
);
this
.
jobStreamMap
.
delete
(
trialJob
.
id
);
this
.
jobStreamMap
.
delete
(
trialJob
.
id
);
},
5000
);
}
}
}
}
if
(
trialJob
.
gpuIndices
!==
undefined
&&
trialJob
.
gpuIndices
.
length
>
0
&&
this
.
gpuScheduler
!==
undefined
)
{
if
(
trialJob
.
gpuIndices
!==
undefined
&&
trialJob
.
gpuIndices
.
length
>
0
&&
this
.
gpuScheduler
!==
undefined
)
{
...
...
test/config/integration_tests.yml
View file @
8238ddc6
...
@@ -85,6 +85,14 @@ testCases:
...
@@ -85,6 +85,14 @@ testCases:
validator
:
validator
:
class
:
ExportValidator
class
:
ExportValidator
-
name
:
export-zero-trial
configFile
:
test/config/metrics_test/config_failure.yml
config
:
maxTrialNum
:
1
trialConcurrency
:
1
validator
:
class
:
ExportValidator
-
name
:
metrics-dict
-
name
:
metrics-dict
configFile
:
test/config/metrics_test/config_dict_metrics.yml
configFile
:
test/config/metrics_test/config_dict_metrics.yml
config
:
config
:
...
...
test/config/metrics_test/config_failure.yml
0 → 100644
View file @
8238ddc6
authorName
:
nni
experimentName
:
default_test
maxExecDuration
:
3m
maxTrialNum
:
1
trialConcurrency
:
1
searchSpacePath
:
./search_space.json
tuner
:
builtinTunerName
:
Random
trial
:
codeDir
:
.
command
:
python3 not_exist.py
gpuNum
:
0
useAnnotation
:
false
multiPhase
:
false
multiThread
:
false
trainingServicePlatform
:
local
tools/nni_cmd/nnictl_utils.py
View file @
8238ddc6
...
@@ -705,6 +705,9 @@ def export_trials_data(args):
...
@@ -705,6 +705,9 @@ def export_trials_data(args):
else
:
else
:
formated_record
=
{
**
record
[
'parameter'
],
**
{
'reward'
:
record_value
,
'id'
:
record
[
'id'
]}}
formated_record
=
{
**
record
[
'parameter'
],
**
{
'reward'
:
record_value
,
'id'
:
record
[
'id'
]}}
trial_records
.
append
(
formated_record
)
trial_records
.
append
(
formated_record
)
if
not
trial_records
:
print_error
(
'No trial results collected! Please check your trial log...'
)
exit
(
0
)
with
open
(
args
.
path
,
'w'
,
newline
=
''
)
as
file
:
with
open
(
args
.
path
,
'w'
,
newline
=
''
)
as
file
:
writer
=
csv
.
DictWriter
(
file
,
set
.
union
(
*
[
set
(
r
.
keys
())
for
r
in
trial_records
]))
writer
=
csv
.
DictWriter
(
file
,
set
.
union
(
*
[
set
(
r
.
keys
())
for
r
in
trial_records
]))
writer
.
writeheader
()
writer
.
writeheader
()
...
...
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