File tree Expand file tree Collapse file tree 4 files changed +0
-9
lines changed Expand file tree Collapse file tree 4 files changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,6 @@ def benchmark_perf_2x2_tpu_bf16_seq128_10k_steps_mlir(self):
228
228
'benchmark_perf_2x2_tpu_bf16_seq128_10k_steps_mlir' )
229
229
summary_path = os .path .join (FLAGS .model_dir ,
230
230
'summaries/training_summary.txt' )
231
- tf .config .experimental .enable_mlir_bridge ()
232
231
# Disable accuracy check.
233
232
self ._run_and_report_benchmark (
234
233
summary_path = summary_path ,
@@ -267,7 +266,6 @@ def benchmark_perf_4x4_tpu_bf16_seq128_10k_steps_mlir(self):
267
266
'benchmark_perf_4x4_tpu_bf16_seq128_10k_steps_mlir' )
268
267
summary_path = os .path .join (FLAGS .model_dir ,
269
268
'summaries/training_summary.txt' )
270
- tf .config .experimental .enable_mlir_bridge ()
271
269
# Disable accuracy check.
272
270
self ._run_and_report_benchmark (
273
271
summary_path = summary_path ,
Original file line number Diff line number Diff line change @@ -414,7 +414,6 @@ def benchmark_2x2_tpu_mlir(self):
414
414
FLAGS .keras_use_ctl = True
415
415
FLAGS .num_gpus = 0
416
416
FLAGS .train_epochs = 1
417
- tf .config .experimental .enable_mlir_bridge ()
418
417
self ._run_and_report_benchmark ()
419
418
420
419
Original file line number Diff line number Diff line change @@ -403,7 +403,6 @@ def benchmark_2x2_tpu_bf16_mlir(self):
403
403
self ._set_df_common ()
404
404
FLAGS .batch_size = 1024
405
405
FLAGS .dtype = 'bf16'
406
- tf .config .experimental .enable_mlir_bridge ()
407
406
FLAGS .model_dir = self ._get_model_dir ('benchmark_2x2_tpu_bf16_mlir' )
408
407
self ._run_and_report_benchmark ()
409
408
@@ -426,7 +425,6 @@ def benchmark_4x4_tpu_bf16_mlir(self):
426
425
FLAGS .batch_size = 4096
427
426
FLAGS .dtype = 'bf16'
428
427
FLAGS .model_dir = self ._get_model_dir ('benchmark_4x4_tpu_bf16_mlir' )
429
- tf .config .experimental .enable_mlir_bridge ()
430
428
self ._run_and_report_benchmark ()
431
429
432
430
def benchmark_8x8_tpu_bf16 (self ):
@@ -444,7 +442,6 @@ def benchmark_8x8_tpu_bf16_mlir(self):
444
442
FLAGS .batch_size = 8192
445
443
FLAGS .dtype = 'bf16'
446
444
FLAGS .model_dir = self ._get_model_dir ('benchmark_8x8_tpu_bf16_mlir' )
447
- tf .config .experimental .enable_mlir_bridge ()
448
445
self ._run_and_report_benchmark ()
449
446
450
447
def benchmark_8x8_tpu (self ):
@@ -460,7 +457,6 @@ def benchmark_8x8_tpu_mlir(self):
460
457
self ._set_df_common ()
461
458
FLAGS .batch_size = 8192
462
459
FLAGS .model_dir = self ._get_model_dir ('benchmark_8x8_tpu_mlir' )
463
- tf .config .experimental .enable_mlir_bridge ()
464
460
self ._run_and_report_benchmark ()
465
461
466
462
def benchmark_8x16_tpu_bf16 (self ):
Original file line number Diff line number Diff line change @@ -299,7 +299,6 @@ def benchmark_2x2_tpu_coco_mlir(self):
299
299
params ['train' ]['iterations_per_loop' ] = 500
300
300
FLAGS .model_dir = self ._get_model_dir ('real_benchmark_2x2_tpu_coco_mlir' )
301
301
FLAGS .strategy_type = 'tpu'
302
- tf .config .experimental .enable_mlir_bridge ()
303
302
self ._run_and_report_benchmark (params , do_eval = False , warmup = 0 )
304
303
305
304
@flagsaver .flagsaver
@@ -312,7 +311,6 @@ def benchmark_4x4_tpu_coco_mlir(self):
312
311
params ['train' ]['iterations_per_loop' ] = 500
313
312
FLAGS .model_dir = self ._get_model_dir ('real_benchmark_4x4_tpu_coco_mlir' )
314
313
FLAGS .strategy_type = 'tpu'
315
- tf .config .experimental .enable_mlir_bridge ()
316
314
self ._run_and_report_benchmark (params , do_eval = False , warmup = 0 )
317
315
318
316
@flagsaver .flagsaver
You can’t perform that action at this time.
0 commit comments