Skip to content

Commit

Permalink
tools: Opset coverage notebook
Browse files Browse the repository at this point in the history
Signed-off-by: Naren Dasan <naren@narendasan.com>
Signed-off-by: Naren Dasan <narens@nvidia.com>
  • Loading branch information
narendasan committed May 13, 2024
1 parent 4dc9acf commit a811c4a
Show file tree
Hide file tree
Showing 3 changed files with 616 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,8 @@ bazel-tensorrt
bazel-project
build/
wheelhouse/
*_status.json
tests/py/dynamo/models/*.ts
tests/py/dynamo/models/*.ep
*.deb
*.tar.xz
9 changes: 9 additions & 0 deletions py/torch_tensorrt/dynamo/tools/opset_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,15 @@ def opset_coverage(
)


def get_coverage_status(opset: List[Tuple[str, str]], name: str) -> OpsetCoverage:
coverage = opset_coverage(opset)
return coverage


ATEN_COVERAGE = get_coverage_status(ATEN_OPS, "ATen")
PRIMS_COVERAGE = get_coverage_status(PRIM_OPS, "prim")
PY_OVERLOAD_COVERAGE = get_coverage_status(OVERLOADED_PY_OPS, "py_overload")

if __name__ == "__main__":

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

0 comments on commit a811c4a

Please sign in to comment.