def process_result(inference_time, batch_size, min_infer_time): correct_time = pp.delete_incorrect_time(inference_time, min_infer_time) correct_time = pp.three_sigma_rule(correct_time) average_time = pp.calculate_average_time(correct_time) latency = pp.calculate_latency(correct_time) fps = pp.calculate_fps(batch_size, latency) return average_time, latency, fps
def process_result(batch_size, inference_time): inference_time = pp.three_sigma_rule(inference_time) average_time = pp.calculate_average_time(inference_time) latency = pp.calculate_latency(inference_time) fps = pp.calculate_fps(batch_size, latency) return average_time, latency, fps
def process_result(inference_time, batch_size, iteration_count): average_time = inference_time / iteration_count fps = pp.calculate_fps(batch_size * iteration_count, inference_time) return average_time, fps