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
dfe3c27b
Unverified
Commit
dfe3c27b
authored
May 21, 2021
by
SparkSnail
Committed by
GitHub
May 21, 2021
Browse files
Fix aml v2 config (#3655)
parent
8f002c8b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ts/nni_manager/training_service/reusable/environments/amlEnvironmentService.ts
...ng_service/reusable/environments/amlEnvironmentService.ts
+3
-1
No files found.
ts/nni_manager/training_service/reusable/environments/amlEnvironmentService.ts
View file @
dfe3c27b
...
@@ -101,7 +101,9 @@ export class AMLEnvironmentService extends EnvironmentService {
...
@@ -101,7 +101,9 @@ export class AMLEnvironmentService extends EnvironmentService {
amlEnvironment
.
command
=
`mv envs outputs/envs && cd outputs &&
${
amlEnvironment
.
command
}
`
;
amlEnvironment
.
command
=
`mv envs outputs/envs && cd outputs &&
${
amlEnvironment
.
command
}
`
;
}
}
amlEnvironment
.
command
=
`import os\nos.system('
${
amlEnvironment
.
command
}
')`
;
amlEnvironment
.
command
=
`import os\nos.system('
${
amlEnvironment
.
command
}
')`
;
amlEnvironment
.
useActiveGpu
=
!!
this
.
config
.
deprecated
.
useActiveGpu
;
if
(
this
.
config
.
deprecated
&&
this
.
config
.
deprecated
.
useActiveGpu
!==
undefined
)
{
amlEnvironment
.
useActiveGpu
=
this
.
config
.
deprecated
.
useActiveGpu
;
}
amlEnvironment
.
maxTrialNumberPerGpu
=
this
.
config
.
maxTrialNumberPerGpu
;
amlEnvironment
.
maxTrialNumberPerGpu
=
this
.
config
.
maxTrialNumberPerGpu
;
await
fs
.
promises
.
writeFile
(
path
.
join
(
environmentLocalTempFolder
,
'
nni_script.py
'
),
amlEnvironment
.
command
,
{
encoding
:
'
utf8
'
});
await
fs
.
promises
.
writeFile
(
path
.
join
(
environmentLocalTempFolder
,
'
nni_script.py
'
),
amlEnvironment
.
command
,
{
encoding
:
'
utf8
'
});
...
...
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