Skip to content
Closed
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 mlir/examples/standalone/test/python/smoketest.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,12 @@
# CHECK: %[[C:.*]] = arith.constant 2 : i32
# CHECK: standalone.foo %[[C]] : i32
print(str(module))

from mlir_standalone.dialects import quant

try:
from mlir_standalone.dialects import quant
except ImportError as e:
assert "symbol not found in flat namespace '_mlirTypeIsAAnyQuantizedType'" not in e.args[0]
else:
assert False, "expected exception not raised"
Loading