Unverified Commit 6b8d3852 authored by SparkSnail's avatar SparkSnail Committed by GitHub
Browse files

Change WARNING to INFO (#574)

change the warning level to info level when expand relative path
add nnictl --version log
update readme.md
parent 816dd603
...@@ -83,11 +83,12 @@ You can use these commands to get more information about the experiment ...@@ -83,11 +83,12 @@ You can use these commands to get more information about the experiment
commands description commands description
1. nnictl experiment show show the information of experiments 1. nnictl experiment show show the information of experiments
2. nnictl trial ls list all of trial jobs 2. nnictl trial ls list all of trial jobs
3. nnictl log stderr show stderr log content 3. nnictl top monitor the status of running experiments
4. nnictl log stdout show stdout log content 4. nnictl log stderr show stderr log content
5. nnictl stop stop an experiment 5. nnictl log stdout show stdout log content
6. nnictl trial kill kill a trial job by id 6. nnictl stop stop an experiment
7. nnictl --help get help information about nnictl 7. nnictl trial kill kill a trial job by id
8. nnictl --help get help information about nnictl
----------------------------------------------------------------------- -----------------------------------------------------------------------
``` ```
......
...@@ -17,6 +17,7 @@ nnictl log ...@@ -17,6 +17,7 @@ nnictl log
nnictl webui nnictl webui
nnictl tensorboard nnictl tensorboard
nnictl top nnictl top
nnictl --version
``` ```
### Manage an experiment ### Manage an experiment
* __nnictl create__ * __nnictl create__
...@@ -362,4 +363,15 @@ nnictl top ...@@ -362,4 +363,15 @@ nnictl top
| Name, shorthand | Required|Default | Description | | Name, shorthand | Required|Default | Description |
| ------ | ------ | ------ |------ | | ------ | ------ | ------ |------ |
| id| False| |ID of the experiment you want to set| | id| False| |ID of the experiment you want to set|
\ No newline at end of file
### Check nni version
* __nnictl --version__
* Description
Describe the current version of nni installed.
* Usage
nnictl --version
\ No newline at end of file
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
import os import os
import json import json
from .config_schema import LOCAL_CONFIG_SCHEMA, REMOTE_CONFIG_SCHEMA, PAI_CONFIG_SCHEMA, KUBEFLOW_CONFIG_SCHEMA, FRAMEWORKCONTROLLER_CONFIG_SCHEMA from .config_schema import LOCAL_CONFIG_SCHEMA, REMOTE_CONFIG_SCHEMA, PAI_CONFIG_SCHEMA, KUBEFLOW_CONFIG_SCHEMA, FRAMEWORKCONTROLLER_CONFIG_SCHEMA
from .common_utils import get_json_content, print_error, print_warning from .common_utils import get_json_content, print_error, print_warning, print_normal
def expand_path(experiment_config, key): def expand_path(experiment_config, key):
'''Change '~' to user home directory''' '''Change '~' to user home directory'''
...@@ -32,7 +32,7 @@ def parse_relative_path(root_path, experiment_config, key): ...@@ -32,7 +32,7 @@ def parse_relative_path(root_path, experiment_config, key):
'''Change relative path to absolute path''' '''Change relative path to absolute path'''
if experiment_config.get(key) and not os.path.isabs(experiment_config.get(key)): if experiment_config.get(key) and not os.path.isabs(experiment_config.get(key)):
absolute_path = os.path.join(root_path, experiment_config.get(key)) absolute_path = os.path.join(root_path, experiment_config.get(key))
print_warning('expand %s: %s to %s ' % (key, experiment_config[key], absolute_path)) print_normal('expand %s: %s to %s ' % (key, experiment_config[key], absolute_path))
experiment_config[key] = absolute_path experiment_config[key] = absolute_path
def parse_time(experiment_config): def parse_time(experiment_config):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment