Spaces:
Sleeping
Sleeping
enable benchmarking.
Browse files
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 |
-
|
75 |
-
|
76 |
|
77 |
-
|
78 |
-
|
79 |
-
benchmark_str
|
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 |
|