trunk/057b17cd29a79360252512fb8ec949dd4c364876: Size the output of rrelu_with_noise (#196087)
- PyTorch 近 90 天出现 2249 次
- PyTorch 近 90 天第 2220 次发版
- 上一次:同一天稍早 · trunk/c332b0e20e9d9b2ab49f16c1310130162f814fed
发生了什么
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…
摘要按规则整理自下方来源原文