Summary:
What it does:
Adds a get_stride() method to the PermuteView class in torch/_inductor/ir.py. The method permutes the strides of the underlying data in the same order as the dimensions — mirroring the existing get_size() pattern
Why:
Previously, PermuteView didn't implement get_stride(), which caused a NotImplementedError when downstream operations (like aten.slice.Tensor) needed stride info from a PermuteView wrapping a ComputedBuffer. This was hit during AOTI lowering of models that do compute → permute → slice (e.g., pad → permute → slice in the GR model).
Test Plan:
- internal lowering passed with this patch
- CI for added unit test
Reviewed By: silverlakeli, ColinPeppler
Differential Revision: D107267848
Community-Analysen & Experten-Meinungen 0
Verwandte Story-Cluster & Quellen (Vektor-KI)
Ähnliche Beiträge
Auch interessante Nachrichten ciflow/torchtitan/185992: Implement get_stride for PermuteView (#185992)
Thematisch verwandte Begriffe: ciflowtorchtitan185992, Implement, getstride, PermuteView · 6 Treffer
[webapps] Langflow 1.8.4 - Path Traversal to Remote Code Execution
Cobalt Strike Beacon Extractor
🚨 Typosquatting packages on PyPI are targeting 𝗿𝗲𝗾𝘂𝗲𝘀𝘁𝘀, one of the most widely used Python packages. Catch them before compromise.
Videos werden geladen ...
Beiträge werden geladen ...
Videos werden geladen ...
Beiträge werden geladen ...
Videos werden geladen ...
Beiträge werden geladen ...
Videos werden geladen ...
Beiträge werden geladen ...
Videos werden geladen ...
SOCIAL SHARE CARD GENERATOR