mirror of
https://github.com/wassname/ray.git
synced 2026-07-12 11:59:20 +08:00
Fix Jenkins issue introduced by Variant Generator (#1194)
* try fix * shorten * added a flag * finish * Fix linting.
This commit is contained in:
committed by
Robert Nishihara
parent
1bf276cc08
commit
6197b260b8
@@ -215,6 +215,15 @@ if __name__ == '__main__':
|
||||
},
|
||||
}
|
||||
|
||||
# These arguments are only for testing purposes.
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--fast', action='store_true',
|
||||
help='Run minimal iterations.')
|
||||
args, _ = parser.parse_known_args()
|
||||
|
||||
if args.fast:
|
||||
spec['stop']['training_iteration'] = 2
|
||||
|
||||
for trial in generate_trials(spec):
|
||||
runner.add_trial(trial)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user