Fix run.py run_ipex_fp16_gpu (#11361)
* fix a bug on run.py * Update run.py fixed the format problem --------- Co-authored-by: sgwhat <ge.song@intel.com>
This commit is contained in:
parent
b2f62a8561
commit
05a8d051f6
1 changed files with 1 additions and 1 deletions
|
|
@ -698,7 +698,7 @@ def run_ipex_fp16_gpu(repo_id,
|
||||||
print(output[0])
|
print(output[0])
|
||||||
if i >= warm_up:
|
if i >= warm_up:
|
||||||
result[in_out].append([model.first_cost, model.rest_cost_mean, model.encoder_time,
|
result[in_out].append([model.first_cost, model.rest_cost_mean, model.encoder_time,
|
||||||
actual_in_len, actual_out_len, load_time])
|
actual_in_len, actual_out_len, load_time, model.peak_memory])
|
||||||
del model
|
del model
|
||||||
torch.xpu.empty_cache()
|
torch.xpu.empty_cache()
|
||||||
return result
|
return result
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue