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

trunk/9d4b149c1eac79a8c40d279c90f2c7115a7602d8: Document that backward gradients have undefined strides (#195210)

发生了什么

In #194719 a triton_op backward kernel silently computed wrong gradients: torch.cat's backward passes each input a non-contiguous narrow view of the upstream gradient, and the kernel indexed the grads assuming they shared the forward output's contiguous layout. Nothing in the docs states that the autograd engine may do this, and neither gradcheck nor opcheck can surface it (both only exercise contiguous grad_outputs…

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

为什么在扩散

来源