SIGN IN SIGN UP

[ET-VK][int4] patch 4-bit linear op for ensuring w-packed in/out

Pull Request resolved: https://github.com/pytorch/executorch/pull/8225

If the partitioner is using channels-packed setting for activations, then the checks will throw.

Remove the checks and conditionally re-pack the input/output tensors if they are not width-packed.
ghstack-source-id: 264952605
@exported-using-ghexport

Differential Revision: [D68813946](https://our.internmc.facebook.com/intern/diff/D68813946/)

---------

Co-authored-by: Nathanael See <nathanaelsee@fb.com>
P
pytorchbot committed
8f0d7978618d2a5dd58efd0e2a2700bce10696ab
Parent: 8ec08f9
Committed by GitHub <noreply@github.com> on 2/6/2025, 6:16:04 PM