We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ccd9fbb + eab83a8 commit dc6f189Copy full SHA for dc6f189
1 file changed
scoring/run_workloads.py
@@ -128,7 +128,10 @@ def main(_):
128
if FLAGS.hparam_end_index:
129
hparam_end_index_flag = f'--hparam_end_index {FLAGS.hparam_end_index} '
130
study_start_index = FLAGS.study_start_index if FLAGS.study_start_index else 0
131
- study_end_index = FLAGS.study_end_index if FLAGS.study_end_index else num_studies - 1
+ if FLAGS.study_end_index is not None:
132
+ study_end_index = FLAGS.study_end_index
133
+ else:
134
+ study_end_index = num_studies - 1
135
submission_id = FLAGS.submission_id
136
rng_seed = FLAGS.seed
137
@@ -232,4 +235,4 @@ def main(_):
232
235
233
236
if __name__ == '__main__':
234
237
flags.mark_flag_as_required('workload_metadata_path')
- app.run(main)
238
+ app.run(main)
0 commit comments