Skip to content

Commit 02ca522

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 5d40a3a commit 02ca522

File tree

5 files changed

+522
-305
lines changed

5 files changed

+522
-305
lines changed

backends/cadence/aot/ref_implementations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ 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(f"out_shift must be an int32. Got {out_shift.dtype} instead")
510510

511511
_out_shift = int(out_shift.item())
512512
_out_multiplier = int(out_multiplier[0].item())

0 commit comments

Comments
 (0)