Skip to content

Commit 5b4900c

Browse files
authored
Update more passes to use new pass interface/correctly set their modified bits
Differential Revision: D87898571 Pull Request resolved: #16228
1 parent 55fe42b commit 5b4900c

File tree

5 files changed

+529
-307
lines changed

5 files changed

+529
-307
lines changed

backends/cadence/aot/ref_implementations.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,9 @@ def variant(
506506
raise ValueError("out_shift must be a scalar")
507507

508508
if out_shift.dtype != torch.int32:
509-
raise ValueError("out_shift must be an int32")
509+
raise ValueError(
510+
f"out_shift must be an int32. Got {out_shift.dtype} instead"
511+
)
510512

511513
_out_shift = int(out_shift.item())
512514
_out_multiplier = int(out_multiplier[0].item())

0 commit comments

Comments
 (0)