@@ -118,7 +118,7 @@ def create_new_row(category, model, value_type, value, args_dict):
118118 }
119119
120120
121- def update_best_performance (best_data , category , model , value_type ,
121+ def update_best_performance (best_data , category , model , value_type ,
122122 new_value , args_dict ):
123123 """
124124 Update best performance data with new value if better.
@@ -149,7 +149,7 @@ def update_best_performance(best_data, category, model, value_type,
149149 # Add new row
150150 new_row = create_new_row (category , model , value_type , new_value , args_dict )
151151 best_data = pd .concat ([
152- best_data ,
152+ best_data ,
153153 pd .DataFrame ([new_row ])
154154 ], ignore_index = True )
155155
@@ -162,25 +162,25 @@ def main():
162162 description = "Get Best Performance" ,
163163 formatter_class = argparse .ArgumentDefaultsHelpFormatter
164164 )
165- parser .add_argument ("--best" , required = True ,
165+ parser .add_argument ("--best" , required = True ,
166166 help = "Saved best performance file" )
167- parser .add_argument ("--new" , required = True ,
167+ parser .add_argument ("--new" , required = True ,
168168 help = "New performance results directory" )
169- parser .add_argument ("--device" , type = str ,
169+ parser .add_argument ("--device" , type = str ,
170170 help = "Device name, such as PVC1100" )
171- parser .add_argument ("--os" , type = str ,
171+ parser .add_argument ("--os" , type = str ,
172172 help = "OS version, such as Ubuntu 22.04" )
173- parser .add_argument ("--driver" , type = str ,
173+ parser .add_argument ("--driver" , type = str ,
174174 help = "Driver version, such as 25.05.32567" )
175- parser .add_argument ("--oneapi" , type = str ,
175+ parser .add_argument ("--oneapi" , type = str ,
176176 help = "OneAPI version, such as 2025.1" )
177- parser .add_argument ("--gcc" , type = str ,
177+ parser .add_argument ("--gcc" , type = str ,
178178 help = "GCC version, such as 11" )
179- parser .add_argument ("--python" , type = str ,
179+ parser .add_argument ("--python" , type = str ,
180180 help = "Python version, such as 3.10" )
181- parser .add_argument ("--pytorch" , type = str ,
181+ parser .add_argument ("--pytorch" , type = str ,
182182 help = "PyTorch version" )
183- parser .add_argument ("--torch-xpu-ops" , type = str ,
183+ parser .add_argument ("--torch-xpu-ops" , type = str ,
184184 help = "Torch XPU Ops version" )
185185
186186 args = parser .parse_args ()
@@ -223,7 +223,7 @@ def main():
223223
224224 for new_file in new_files :
225225 category = multiple_replace (new_file )
226- print (f"Processing category: { category } " )
226+ # print(f"Processing category: {category}")
227227
228228 try :
229229 new_data = pd .read_csv (new_file )
@@ -235,7 +235,7 @@ def main():
235235 # Process eager performance
236236 eager_perf = row ["abs_latency" ] * row ["speedup" ]
237237 best_data = update_best_performance (
238- best_data , category , model_name , "eager" ,
238+ best_data , category , model_name , "eager" ,
239239 eager_perf , system_config
240240 )
241241
0 commit comments