-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Conversation
fb412bc
to
a3c1318
Compare
cbfdc27
to
75f9545
Compare
63e66d3
to
1b73e96
Compare
0fc0381
to
3af82d1
Compare
3221ce8
to
963e473
Compare
test/nni_test/nnitest/run_tests.py
Outdated
@@ -53,6 +53,18 @@ def update_training_service_config(config, training_service, config_file_path): | |||
it_ts_config[training_service]['trial']['codeDir'] = containerCodeDir | |||
it_ts_config[training_service]['trial']['command'] = 'cd {0} && {1}'.format(containerCodeDir, config['trial']['command']) | |||
|
|||
if training_service == 'remote': | |||
testcase_config = get_yml_content(args.nni_source_dir + config_file_path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where we define args
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
test/nni_test/nnitest/run_tests.py
Outdated
def match_remoteConfig(test_case_config): | ||
trainingservice_config = get_yml_content(os.path.join('config', 'training_service.yml')) | ||
trainingservice_config_reuse_value = str(trainingservice_config['remote']['remoteConfig']['reuse']).lower() | ||
testcase_config = get_yml_content(args.nni_source_dir + test_case_config['configFile']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
args
defination
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
test/nni_test/nnitest/run_tests.py
Outdated
@@ -258,6 +279,11 @@ def run(args): | |||
print('skipped {}, training service {} not match [{}]'.format( | |||
name, args.ts, test_case_config['trainingService'])) | |||
continue | |||
|
|||
if not match_remoteConfig(test_case_config): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a little strange if we do not test remote but we need to judge match_remoteConfig
, maybe put these lines under line 288 is better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@@ -0,0 +1,24 @@ | |||
""" | |||
A deep MNIST classifier using convolutional layers. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we don't use the nni example, I think create a new folder to handle trial code and config parallel with test/config/examples
is better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
963e473
to
2fab534
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need test this in the pipeline before merge.
fb96d8e
to
045cb62
Compare
01a91dd
to
0613e57
Compare
0613e57
to
7e45e81
Compare
Blocked by NFS mounting issue (maybe port issue). Needs Quanlu's help.