"vscode:/vscode.git/clone" did not exist on "5c11d245aeb3b505af83b6386fdb4d41319acceb"
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
commands description
1. nnictl experiment show show the information of experiments
2. nnictl trial ls list all of trial jobs
3. nnictl log stderr show stderr log content
4. nnictl log stdout show stdout log content
5. nnictl stop stop an experiment
6. nnictl trial kill kill a trial job by id
7. nnictl --help get help information about nnictl
3. nnictl top monitor the status of running experiments
4. nnictl log stderr show stderr log content
5. nnictl log stdout show stdout log content
6. nnictl stop stop an experiment
7. nnictl trial kill kill a trial job by id
8. nnictl --help get help information about nnictl
-----------------------------------------------------------------------
```
......
......@@ -17,6 +17,7 @@ nnictl log
nnictl webui
nnictl tensorboard
nnictl top
nnictl --version
```
### Manage an experiment
* __nnictl create__
......@@ -362,4 +363,15 @@ nnictl top
| Name, shorthand | Required|Default | Description |
| ------ | ------ | ------ |------ |
| id| False| |ID of the experiment you want to set|
\ No newline at end of file
| id| False| |ID of the experiment you want to set|
### 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 @@
import os
import json
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):
'''Change '~' to user home directory'''
......@@ -32,7 +32,7 @@ def parse_relative_path(root_path, experiment_config, key):
'''Change relative path to absolute path'''
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))
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
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