Helper function to handle check failures with consistent messaging
(error_msg)
| 34 | |
| 35 | |
| 36 | def handle_check_failure(error_msg): |
| 37 | """Helper function to handle check failures with consistent messaging""" |
| 38 | |
| 39 | print(f"\nError: {error_msg}") |
| 40 | print( |
| 41 | "Please refer to our coding style guidelines at: https://github.com/NVIDIA/TensorRT-LLM/blob/main/CONTRIBUTING.md#coding-style to fix this issue" |
| 42 | ) |
| 43 | sys.exit(1) |
| 44 | |
| 45 | |
| 46 | def main(): |