Skip to content

Commit a811c4a

Browse files
committed
tools: Opset coverage notebook
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent 4dc9acf commit a811c4a

File tree

3 files changed

+616
-0
lines changed

3 files changed

+616
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,8 @@ bazel-tensorrt
6969
bazel-project
7070
build/
7171
wheelhouse/
72+
*_status.json
73+
tests/py/dynamo/models/*.ts
74+
tests/py/dynamo/models/*.ep
75+
*.deb
76+
*.tar.xz

py/torch_tensorrt/dynamo/tools/opset_coverage.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,15 @@ def opset_coverage(
206206
)
207207

208208

209+
def get_coverage_status(opset: List[Tuple[str, str]], name: str) -> OpsetCoverage:
210+
coverage = opset_coverage(opset)
211+
return coverage
212+
213+
214+
ATEN_COVERAGE = get_coverage_status(ATEN_OPS, "ATen")
215+
PRIMS_COVERAGE = get_coverage_status(PRIM_OPS, "prim")
216+
PY_OVERLOAD_COVERAGE = get_coverage_status(OVERLOADED_PY_OPS, "py_overload")
217+
209218
if __name__ == "__main__":
210219

211220
def find_coverage_status(opset: List[Tuple[str, str]], name: str) -> None:

0 commit comments

Comments
 (0)