Skip to content

Commit fa9cd43

Browse files
committed
make sure loadgen is still unaware of Interactive
1 parent 661f175 commit fa9cd43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base_loadgen_program/code_axs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
def generate_user_conf(loadgen_param_dictionary, param_to_conf_pair, shortened_mlperf_model_name, loadgen_scenario, target_user_conf_path, submission_compliance_tests_dir, target_audit_conf_path, loadgen_compliance_test, compliance_test_config):
88

9+
mlperf_conf_scenario = 'Server' if loadgen_scenario=='Interactive' else loadgen_scenario
910

1011
user_conf = []
1112
for param_name in loadgen_param_dictionary.keys():
@@ -15,7 +16,7 @@ def generate_user_conf(loadgen_param_dictionary, param_to_conf_pair, shortened_m
1516
new_value = float(orig_value * multiplier)
1617
if float(int(new_value)) == new_value:
1718
new_value = int(new_value)
18-
user_conf.append("{}.{}.{} = {}\n".format(shortened_mlperf_model_name, loadgen_scenario, config_category_name, new_value))
19+
user_conf.append("{}.{}.{} = {}\n".format(shortened_mlperf_model_name, mlperf_conf_scenario, config_category_name, new_value))
1920

2021
with open(target_user_conf_path, 'w') as user_conf_file:
2122
user_conf_file.writelines(user_conf)

0 commit comments

Comments
 (0)