Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions tests/py/dynamo/conversion/harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ def run_test(
immutable_weights=True,
use_explicit_typing=False,
decompose_attention=False,
require_full_compilation=False,
):
# TODO: lan to remove this and set use_dynamo_traccer to True by default
# once all the converter test files are moved to use_dynamo_tracer
Expand All @@ -434,6 +435,7 @@ def run_test(
immutable_weights=immutable_weights,
use_explicit_typing=use_explicit_typing,
decompose_attention=decompose_attention,
require_full_compilation=require_full_compilation,
)

mod = self.generate_graph(
Expand Down Expand Up @@ -499,6 +501,13 @@ def run_test(
compilation_settings=compilation_settings,
)

if require_full_compilation:
missing = interp.validate_conversion()
self.assertFalse(
missing,
f"require_full_compilation=True but the following ops have no TRT converter: {missing}",
)

super().run_test(
mod,
trt_inputs,
Expand Down
Empty file added tests/py/dynamo/hlo/__init__.py
Empty file.
Loading
Loading