(name)
| 58 | |
| 59 | @contextmanager |
| 60 | def log_duration(name): |
| 61 | start = time.time() |
| 62 | try: |
| 63 | yield |
| 64 | finally: |
| 65 | print(f'{name}: {time.time()-start:.3f}') |
| 66 | |
| 67 | |
| 68 | def load_safetensors(path): |
nothing calls this directly
no outgoing calls
no test coverage detected