trunk/057b17cd29a79360252512fb8ec949dd4c364876: Size the output of rrelu_with_noise (#196087)
- PyTorch: 2247 events in the last 90 days
- PyTorch: 2218th Release in the last 90 days
- Previous: earlier the same day · trunk/c332b0e20e9d9b2ab49f16c1310130162f814fed
What happened
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 au…
Summary assembled by rule from the sources below