Skip to content
Merged
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
12 changes: 8 additions & 4 deletions test/prototype/inductor/test_int8_sdpa_fusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,14 @@ def _check_common(
if has_fuse_pattern:
self.assertGreaterEqual(counters["inductor"]["int8_fuse_attention"], 1)
if contains:
# many of the patterns get re-expanded in dispatcher
self.assertIn(
"torchao.qscaled_dot_product",
source_code,
self.assertTrue(
any(
op_name in source_code
for op_name in [
"qscaled_dot_product",
"cpp_fused_quantize_per_tensor",
]
)
)

# some tests configured with very low dropout where we still want to check equality
Expand Down
5 changes: 5 additions & 0 deletions torchao/prototype/inductor/codegen/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .cpp_int8_sdpa_template import CppInt8SdpaTemplate

__all__ = [
"CppInt8SdpaTemplate",
]
Loading
Loading