PyTorch: Size the output of rrelu_with_noise (#196087)
rrelu_with_noise.out is not structured, so nothing sizes out before the kernel writes self.numel() elements into it; a shorter out corrupts the heap.
Executive Summary
rrelu_with_noise.out is not structured, so nothing sizes out before the kernel writes self.numel() elements into it; a shorter out corrupts the heap. resize_output fixes that. noise has the same defect through an expanded tensor whose storage holds fewer elements than its size claims, so noise must now be contiguous too. Test Plan: python test/test_nn.py -k test_rrelu_with_noise_out_smaller_than_input This PR was authored with the assistance of an AI coding assistant.
Distribution Engineering & Packaging Ecosystem Audit
From a Linux distribution, deployment reliability, and systems engineering perspective: - **Dependency Determinism:** Declarative and isolated package trees guarantee reproducible execution across production hosts. - **Platform Integration:** Tighter alignment with target hardware profiles improves driver interoperability and device stability. - **Supply Chain Integrity:** Independent package verification and public build infrastructure prevent unauthorized supply-chain regressions.
Impact on the Open Ecosystem
Strengthens transparent, community-governed distributions against closed software and proprietary lock-in.