MCPcopy
hub / github.com/NVIDIA/TensorRT-LLM / lazy_convert_sqlite

Function lazy_convert_sqlite

examples/layer_wise_benchmarks/parse.py:36–52  ·  view source on GitHub ↗
(nsys_rep_file_path, sqlite_file_path)

Source from the content-addressed store, hash-verified

34
35
36def lazy_convert_sqlite(nsys_rep_file_path, sqlite_file_path):
37 if (
38 not sqlite_file_path.is_file()
39 or nsys_rep_file_path.stat().st_mtime > sqlite_file_path.stat().st_mtime
40 ):
41 subprocess.check_call(
42 [
43 "nsys",
44 "export",
45 "--type",
46 "sqlite",
47 "-o",
48 sqlite_file_path,
49 "--force-overwrite=true",
50 nsys_rep_file_path,
51 ]
52 )
53
54
55def shortest_common_supersequence(a, b):

Callers 1

parse.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected