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
12410686
Unverified
Commit
12410686
authored
Jun 21, 2019
by
chicm-ms
Committed by
GitHub
Jun 21, 2019
Browse files
Merge pull request #20 from microsoft/master
pull code
parents
611a45fc
61fec446
Changes
242
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
tools/nni_trial_tool/trial_keeper.py
tools/nni_trial_tool/trial_keeper.py
+2
-2
uninstall.ps1
uninstall.ps1
+1
-1
No files found.
tools/nni_trial_tool/trial_keeper.py
View file @
12410686
...
@@ -42,10 +42,10 @@ regular = re.compile('v?(?P<version>[0-9](\.[0-9]){0,1}).*')
...
@@ -42,10 +42,10 @@ regular = re.compile('v?(?P<version>[0-9](\.[0-9]){0,1}).*')
def
main_loop
(
args
):
def
main_loop
(
args
):
'''main loop logic for trial keeper'''
'''main loop logic for trial keeper'''
if
not
os
.
path
.
exists
(
LOG_DIR
):
if
not
os
.
path
.
exists
(
LOG_DIR
):
os
.
makedirs
(
LOG_DIR
)
os
.
makedirs
(
LOG_DIR
)
stdout_file
=
open
(
STDOUT_FULL_PATH
,
'a+'
)
stdout_file
=
open
(
STDOUT_FULL_PATH
,
'a+'
)
stderr_file
=
open
(
STDERR_FULL_PATH
,
'a+'
)
stderr_file
=
open
(
STDERR_FULL_PATH
,
'a+'
)
trial_keeper_syslogger
=
RemoteLogger
(
args
.
nnimanager_ip
,
args
.
nnimanager_port
,
'trial_keeper'
,
StdOutputType
.
Stdout
,
args
.
log_collection
)
trial_keeper_syslogger
=
RemoteLogger
(
args
.
nnimanager_ip
,
args
.
nnimanager_port
,
'trial_keeper'
,
StdOutputType
.
Stdout
,
args
.
log_collection
)
...
...
uninstall.ps1
View file @
12410686
...
@@ -15,7 +15,7 @@ else{
...
@@ -15,7 +15,7 @@ else{
$PIP_UNINSTALL
=
"""
$NNI_PYTHON3
\python"" -m pip uninstall -y "
$PIP_UNINSTALL
=
"""
$NNI_PYTHON3
\python"" -m pip uninstall -y "
$NNI_NODE_FOLDER
=
$NNI_DEPENDENCY_FOLDER
+
"\nni-node"
$NNI_NODE_FOLDER
=
$NNI_DEPENDENCY_FOLDER
+
"\nni-node"
$NNI_YARN_FOLDER
=
$NNI_DEPENDENCY_FOLDER
+
"\nni-yarn"
$NNI_YARN_FOLDER
=
$NNI_DEPENDENCY_FOLDER
+
"\nni-yarn"
# uninstall
# uninstall
Remove-Item
$NNI_PKG_FOLDER
-Recurse
-Force
Remove-Item
$NNI_PKG_FOLDER
-Recurse
-Force
cmd
/C
$PIP_UNINSTALL
"nni"
cmd
/C
$PIP_UNINSTALL
"nni"
...
...
Prev
1
…
9
10
11
12
13
Next
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