← 返回事件
持续讨论AI发版

trunk/057b17cd29a79360252512fb8ec949dd4c364876: 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. 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…

摘要按规则整理自下方来源原文

为什么在扩散

来源