Skip to content

Commit 8772a44

Browse files
committed
Update on "[ET-VK] Modifying should_squeeze function in SqueezeUnsqueezeInputs to not squeeze if significant axis are all 1 and trailing axis are all > 1."
This diff modifies the `should_squeeze` function in `SqueezeUnsqueezeInputs` to not squeeze (return False) if significant axes are all 1 and trailing axes are all > 1. Differential Revision: [D75483587](https://our.internmc.facebook.com/intern/diff/D75483587/) [ghstack-poisoned]
2 parents 1d2ef82 + a5f894f commit 8772a44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/vulkan/vulkan_preprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,14 @@ def preprocess( # noqa: C901
150150
program = apply_passes(
151151
program,
152152
[
153+
RemoveRedundantOpsTransform(),
153154
AddmmToLinearTransform(),
154155
FuseQuantizedOpsTransform(program),
155156
SqueezeUnsqueezeInputs(),
156157
FuseViewCopyTransform(),
157158
ViewCopyToSqueezeUnsqueezePass(),
158159
FuseBatchNormWithConvPass(program),
159160
FuseClampPass(),
160-
RemoveRedundantOpsTransform(),
161161
],
162162
)
163163

0 commit comments

Comments
 (0)