Skip to content

Commit 08bf060

Browse files
Andrew Grebenisanfacebook-github-bot
authored andcommitted
Update more passes to use new pass interface/correctly set their modified bits
Summary: Update - SinkOpsCloserToUsePass - HoistOpsCloserToDefPass - PostponePermuteOpBelowSqueezeOrUnsqueezeLikeView - SimplifySliceOpPass - BindOptionalArgsPass - ReplaceConstantPadWithTuringExtendPass to either use new pass interface (which is more efficient/correctly sets modified bit) or just correctly set modified bit if doesn't fit the interface well. Differential Revision: D87898571
1 parent 0686e6a commit 08bf060

File tree

5 files changed

+554
-307
lines changed

5 files changed

+554
-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)