(instance)
| 145 | |
| 146 | |
| 147 | def is_llm_response(instance): |
| 148 | # Duck typing, expect one of: |
| 149 | # tensorrt_llm.bindings.executor.Response |
| 150 | # tensorrt_llm._torch.pyexecutor.llm_request.LlmResponse |
| 151 | # Avoid testing for "result", because an error bindings.executor.Response |
| 152 | # throws when accessing its result property. |
| 153 | return hasattr(instance, "has_error") |
| 154 | |
| 155 | |
| 156 | def print_alive_threads(): |
no outgoing calls
no test coverage detected