sayakpaul HF staff commited on
Commit
c37b8d0
1 Parent(s): 434a537

enable benchmarking.

Browse files
Files changed (1) hide show
  1. main.py +5 -5
main.py CHANGED
@@ -71,12 +71,12 @@ def run(hf_token: str) -> str:
71
  tensorrt_path = "trt_resnet50_keras"
72
  convert_to_trt(saved_model_path, tensorrt_path)
73
 
74
- # tf_throughput = benchmark(model)
75
- # tf_trt_throughput = benchmark(tensorrt_path)
76
 
77
- # benchmark_str = post_optimization([tf_throughput, tf_trt_throughput])
78
- # benchmark_str += "\n"
79
- benchmark_str = push_to_hub(hf_token, tensorrt_path)
80
 
81
  return benchmark_str
82
 
 
71
  tensorrt_path = "trt_resnet50_keras"
72
  convert_to_trt(saved_model_path, tensorrt_path)
73
 
74
+ tf_throughput = benchmark(model)
75
+ tf_trt_throughput = benchmark(tensorrt_path)
76
 
77
+ benchmark_str = post_optimization([tf_throughput, tf_trt_throughput])
78
+ benchmark_str += "\n"
79
+ benchmark_str += push_to_hub(hf_token, tensorrt_path)
80
 
81
  return benchmark_str
82