Skip to content

Commit

Permalink
Merge pull request #416 from mlcommons/anandhu-eng-patch-1
Browse files Browse the repository at this point in the history
fix batch size duplication issue
  • Loading branch information
arjunsuresh authored Oct 24, 2024
2 parents 77882c5 + c7cdc80 commit 358347c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/app-mlperf-inference-mlcommons-python/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,12 @@ def get_run_cmd_reference(os_info, env, scenario_extra_options, mode_extra_optio
" --dataset-path " + env['CM_DATASET_PATH_ROOT'] + \
' --dtype ' + env['CM_MLPERF_MODEL_PRECISION'].replace("bfloat", "bf").replace("float", "fp") + \
" --device " + device + \
" --max-batchsize " + max_batchsize + \
env['CM_MLPERF_LOADGEN_EXTRA_OPTIONS'] + \
scenario_extra_options + mode_extra_options + \
" --output " + env['CM_MLPERF_OUTPUT_DIR'] + \
" --model-path " + env['CM_ML_MODEL_PATH']
if "--max-batchsize" not in cmd:
cmd += " --max-batchsize " + max_batchsize
if env.get('CM_COCO2014_SAMPLE_ID_PATH','') != '':
cmd += " --ids-path " + env['CM_COCO2014_SAMPLE_ID_PATH']

Expand Down

0 comments on commit 358347c

Please sign in to comment.