neural_compressor.ux.components.benchmark.execute_benchmark
¶
Execute benchmark.
Module Contents¶
Functions¶
|
Execute benchmark. |
|
Update benchmark result. (TF, ONNX models). |
Update benchmark result. (PyTorch scripted models). |
|
|
Benchmark for PyTorch scripted models (on the optimizations). |
|
Benchmark for PyTorch scripted models (on the original model). |
|
Execute benchmark. |
- neural_compressor.ux.components.benchmark.execute_benchmark.execute_benchmark(data: Dict[str, Any]) None ¶
Execute benchmark.
Expected data: {
“request_id”: “asd”, “benchmark_id”: “1”
}
- neural_compressor.ux.components.benchmark.execute_benchmark.benchmark_result_update(benchmark: Any, logs: Any, executor: Any, request_id: Any) dict ¶
Update benchmark result. (TF, ONNX models).
- neural_compressor.ux.components.benchmark.execute_benchmark.benchmark_result_update_pytorch_script(benchmark: Any, request_id: Any, neural_coder_performance: Any, neural_coder_time: float) dict ¶
Update benchmark result. (PyTorch scripted models).
- neural_compressor.ux.components.benchmark.execute_benchmark.pytorch_script_bench_optimizations(benchmark: Any, command_line_of_script: str, logs: Any) float ¶
Benchmark for PyTorch scripted models (on the optimizations).
- neural_compressor.ux.components.benchmark.execute_benchmark.pytorch_script_bench_original_model(benchmark: Any, command_line_of_script: str, logs: Any) float ¶
Benchmark for PyTorch scripted models (on the original model).
- neural_compressor.ux.components.benchmark.execute_benchmark.execute_real_benchmark(request_id: str, project_details: dict, benchmark_details: dict) dict ¶
Execute benchmark.